svn-gvsig-desktop / tags / v1_1_2_1_Build_1046 / extensions / extPublish / build.xml @ 47840
History | View | Annotate | Download (6.24 KB)
1 | 6893 | luisw2 | <project name="Generar extension en Andami" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Instala el plugin en Andami |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <property name="src" location="src"/> |
||
7 | <property name="build" location="bin"/> |
||
8 | <property name="dist" location="dist"/> |
||
9 | 17797 | jvhigon | <property name="dist-src" location="dist-src"/> |
10 | <property name="build-doc" location="doc"/> |
||
11 | 6893 | luisw2 | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
12 | 13962 | jvhigon | <property name="plugin" value="org.gvsig.publish"/> |
13 | 13570 | jvhigon | <property name="gvsiglibjar" value="gvsig-publish"/> |
14 | 6893 | luisw2 | <property name="fmapjar" value="fmap-wms"/> |
15 | <property name="driverjar" value="confwms"/> |
||
16 | <property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/> |
||
17 | <property name="drivers-dir" location="${extensionDir}/${mainplugin}/drivers" /> |
||
18 | 13570 | jvhigon | <!-- <property name="lib-dir" location="${extensionDir}/${mainplugin}/lib"/> -->
|
19 | 6893 | luisw2 | <property name="fmap" location="../libFMap"/> |
20 | <property name="andami" location="../_fwAndami"/> |
||
21 | 17797 | jvhigon | <property name="encoding" value="ISO-8859-1"/> |
22 | 6893 | luisw2 | |
23 | <target name="init"> |
||
24 | <!-- Create the time stamp -->
|
||
25 | <tstamp/> |
||
26 | <!-- Create the build directory structure used by compile -->
|
||
27 | <mkdir dir="${build}"/> |
||
28 | <mkdir dir="${dist}"/> |
||
29 | |||
30 | </target>
|
||
31 | 14510 | jvhigon | |
32 | |||
33 | <target name="generate-source-package"> |
||
34 | <!-- Prepara un zip con los fuentes -->
|
||
35 | |||
36 | <delete dir="${dist-src}" quiet="yes"/> |
||
37 | <mkdir dir="${dist-src}"/> |
||
38 | <basename file="${basedir}" property="extensionProjectDir"/> |
||
39 | <mkdir dir="${dist-src}/${extensionProjectDir}"/> |
||
40 | <copy todir="${dist-src}/${extensionProjectDir}"> |
||
41 | <fileset dir="${basedir}"/> |
||
42 | </copy>
|
||
43 | <copy todir="${dist-src}"> |
||
44 | <fileset dir="${basedir}/install/resources" includes="Leeme-publish.txt, Readme-publish.txt"/> |
||
45 | </copy>
|
||
46 | <delete dir="${dist-src}/${extensionProjectDir}/bin"/> |
||
47 | <mkdir dir="${dist-src}/${extensionProjectDir}/bin"/> |
||
48 | <delete dir="${dist-src}/${extensionProjectDir}/src-test"/> |
||
49 | <mkdir dir="${dist-src}/${extensionProjectDir}/src-test"/> |
||
50 | <delete dir="${dist-src}/${extensionProjectDir}/install"/> |
||
51 | <delete dir="${dist-src}/${extensionProjectDir}/dist" quiet="yes"/> |
||
52 | <delete dir="${dist-src}/${extensionProjectDir}/dist-src" quiet="yes"/> |
||
53 | <delete dir="${dist-src}/${extensionProjectDir}/test-files" quiet="yes"/> |
||
54 | <delete dir="${dist-src}/${extensionProjectDir}/test-file" quiet="yes"/> |
||
55 | <loadproperties srcFile="build.number"/> |
||
56 | <replace casesensitive="true" |
||
57 | token="#build.number#" |
||
58 | value="${build.number}" |
||
59 | dir="${dist-src}" |
||
60 | includes="Leeme-publish.txt, Readme-publish.txt"/> |
||
61 | <zip destfile="${dist-src}/gvSIG_extPublish-10_${build.number}-src.zip" |
||
62 | 17797 | jvhigon | basedir="${dist-src}" |
63 | excludes="*.zip,**/.svn" /> |
||
64 | 14510 | jvhigon | </target>
|
65 | |||
66 | |||
67 | <target name="buildNumber"> |
||
68 | <propertyfile
|
||
69 | file="build.number" |
||
70 | comment="Build Number for ANT. Do not edit!"> |
||
71 | <entry key="build.number" default="0" type="int" operation="+"/> |
||
72 | </propertyfile>
|
||
73 | <property file="build.number"/> |
||
74 | </target>
|
||
75 | |||
76 | |||
77 | <target name="distribution" |
||
78 | description="increment build number and generate the distribution without the source file" |
||
79 | depends="buildNumber,generate-without-source"> |
||
80 | </target>
|
||
81 | |||
82 | |||
83 | 6893 | luisw2 | <target name="batch-build" |
84 | description="compile the sources, create the jar file" |
||
85 | depends="compile,generate-without-source"> |
||
86 | </target>
|
||
87 | |||
88 | <target name="compile" |
||
89 | description="compile the source" > |
||
90 | <!-- Compile the Java code from ${src} to ${bin} -->
|
||
91 | <mkdir dir="${build}" /> |
||
92 | <javac srcdir="${src}" |
||
93 | destdir="${build}" |
||
94 | classpath="${andami}/lib/log4j-1.2.8.jar:${andami}/andami.jar:${andami}/lib/beans.jar:${andami}/gvSIG/extensiones/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar:${andami}/gvSIG/extensiones/com.iver.cit.gvsig/lib/fmap.jar:${andami}/lib/castor-0.9.5.3-xml.jar:${fmap}/lib/cms.jar:${fmap}/lib/driver-manager-1.1.jar"/> |
||
95 | </target>
|
||
96 | <!-- classpath="${andami}/lib/log4j-1.2.8.jar:${andami}/andami.jar:${andami}/lib/beans.jar:${andami}/gvSIG/extensiones/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar:${andami}/gvSIG/extensiones/com.iver.cit.gvsig/lib/fmap.jar:${andami}/lib/castor-0.9.5.3-xml.jar:${fmap}/lib/cms.jar:${fmap}/lib/driver-manager-1.1.jar:${andami}/lib/tempFileManager.jar:${andami}/lib/iver-utiles.jar:${fmap}/lib/kxml2.jar:${fmap}/lib/remote-clients.jar"/> -->
|
||
97 | 14510 | jvhigon | |
98 | |||
99 | |||
100 | 6893 | luisw2 | <target name="generate-without-source" |
101 | description="generate the distribution without the source file"> |
||
102 | <!-- Create the distribution directory -->
|
||
103 | <mkdir dir="${dist}"/> |
||
104 | <copy todir="${build}/com/iver/cit/gvsig/gui/beans/images/"> |
||
105 | <fileset dir="images/" includes="*"/> |
||
106 | </copy>
|
||
107 | |||
108 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
109 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" |
||
110 | />
|
||
111 | <!-- excludes="com/iver/cit/gvsig/fmap/drivers/wms/**" />-->
|
||
112 | <copy file="config/config.xml" todir="${dist}"/> |
||
113 | 14510 | jvhigon | <copy file="config/about.htm" todir="${dist}"/> |
114 | <loadproperties srcFile="build.number"/> |
||
115 | <replace casesensitive="true" |
||
116 | file="${dist}/about.htm" |
||
117 | token="#build.number#" |
||
118 | value="${build.number}"/> |
||
119 | <copy file="build.number" todir="${dist}"/> |
||
120 | |||
121 | 6893 | luisw2 | <copy todir="${dist}"> |
122 | <fileset dir="config" includes="text*.properties"/> |
||
123 | </copy>
|
||
124 | <copy todir="${dist}/images"> |
||
125 | <fileset dir="images/" includes="*"/> |
||
126 | </copy>
|
||
127 | 13570 | jvhigon | <!-- <copy todir="${lib-dir}">
|
128 | 6893 | luisw2 | <fileset dir="./lib" includes="*.jar,*.zip"/>
|
129 | <fileset dir="." includes=".keystore"/>
|
||
130 | </copy>
|
||
131 | 13570 | jvhigon | -->
|
132 | 6893 | luisw2 | <move todir="${extensionDir}/${plugin}/"> |
133 | <fileset dir="${dist}" includes="**/**"/> |
||
134 | </move>
|
||
135 | </target>
|
||
136 | |||
137 | |||
138 | <target name="clean" |
||
139 | description="clean up" > |
||
140 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
141 | <delete dir="${dist}"/> |
||
142 | <delete includeemptydirs="true" failonerror="no"> |
||
143 | <fileset dir="${build}" includes="**/*"/> |
||
144 | </delete>
|
||
145 | </target>
|
||
146 | 17797 | jvhigon | |
147 | <target name="build-doc" depends="" description="Generates API documentation"> |
||
148 | <delete dir="${build-doc}" quiet="yes"/> |
||
149 | <mkdir dir="${build-doc}"/> |
||
150 | <javadoc
|
||
151 | packagenames="org.gvsig.publish.*" |
||
152 | sourcepath="src" |
||
153 | defaultexcludes="yes" |
||
154 | destdir="${build-doc}/publish-api" |
||
155 | encoding="${encoding}" |
||
156 | windowtitle="publish API"> |
||
157 | |||
158 | </javadoc>
|
||
159 | </target>
|
||
160 | |||
161 | 6893 | luisw2 | </project>
|