root / trunk / extensions / extCatalogYNomenclator / build.xml @ 11445
History | View | Annotate | Download (7.71 KB)
1 | 1976 | luisw | <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 | 3661 | jorpiell | <property name="src" location="src"/> |
7 | <property name="build" location="bin"/> |
||
8 | <property name="dist" location="dist"/> |
||
9 | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
||
10 | <property name="gvsiglibjar" value="gvsig-catalogClient"/> |
||
11 | |||
12 | <property name="catalogPlugin" value="es.gva.cit.gvsig.catalogClient"/> |
||
13 | <property name="gazzetterPlugin" value="es.gva.cit.gvsig.gazetteer"/> |
||
14 | <property name="remoteClientPlugin" value="remoteClient"/> |
||
15 | <property name="wfsPlugin" value="wfs"/> |
||
16 | <property name="postgisPlugin" value="postgis"/> |
||
17 | |||
18 | <property name="appCatalogDir" value="../appCatalogYNomenclatorClient"/> |
||
19 | 4238 | jorpiell | <property name="remoteClientsDir" value="../libRemoteServices"/> |
20 | 5607 | cesar | |
21 | <property name="lib" value="lib"/> |
||
22 | <property name="andami" value="../_fwAndami"/> |
||
23 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
24 | <property name="catProtocolJarName" value="catCliProto.jar"/> |
||
25 | <property name="andamiJar" location="${andami}/andami.jar"/> |
||
26 | <property name="gvsigJar" location="${extensionsDir}/com.iver.cit.gvsig/lib/com.iver.cit.gvsig.jar"/> |
||
27 | 9629 | cesar | <property name="fmapJar" location="../libFMap/dist/lib/fmap.jar" /> |
28 | 5607 | cesar | <property name="andamiLibs" location="${andami}/lib"/> |
29 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
30 | 10685 | cesar | <property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${dist}/lib/catCliProto.jar:${andamiLibs}/castor-0.9.5.3-xml.jar:${fmapLibs}/cms.jar:${appCatalogDir}/lib/commons-httpclient-2.0.2.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapJar}:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${andamiLibs}/gvsig-i18n.jar:${fmapLibs}/gvsig-exceptions.jar:${andamiLibs}/iver-utiles.jar:${appCatalogDir}/lib/ostermillerutils_1_04_03_for_java_1_4.jar:${dist}/lib/${postgisPlugin}.jar:${fmapLibs}/postgis-jdbc-driver.jar:${fmapLibs}/postgresql-74.213.jar" /> |
31 | 5607 | cesar | |
32 | 5444 | jorpiell | |
33 | 2843 | jorpiell | |
34 | 1976 | luisw | <target name="init"> |
35 | <!-- Create the time stamp -->
|
||
36 | <tstamp/> |
||
37 | <!-- Create the build directory structure used by compile -->
|
||
38 | <mkdir dir="${build}"/> |
||
39 | <mkdir dir="${dist}"/> |
||
40 | <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
||
41 | <buildnumber/> |
||
42 | |||
43 | </target>
|
||
44 | |||
45 | 10187 | jmvivo | <target name="import-build-number"> |
46 | <copy todir="."> |
||
47 | <fileset file="${buildNumberFile}"/> |
||
48 | </copy>
|
||
49 | </target>
|
||
50 | |||
51 | 1976 | luisw | <target name="generate-without-source" |
52 | description="generate the distribution without the source file"> |
||
53 | <!-- depends="wcs-driver" -->
|
||
54 | <!-- Create the distribution directory -->
|
||
55 | <mkdir dir="${dist}"/> |
||
56 | 2026 | luisw | <mkdir dir="${dist}/lib"/> |
57 | 1976 | luisw | |
58 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
59 | 5607 | cesar | <jar jarfile="${dist}/lib/${catProtocolJarName}" basedir="${appCatalogDir}/bin"/> |
60 | 3661 | jorpiell | <jar jarfile="${dist}/lib/${remoteClientPlugin}.jar" basedir="${remoteClientsDir}/bin"/> |
61 | 5444 | jorpiell | <jar jarfile="${dist}/lib/${catalogPlugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/catalogClient/**"/> |
62 | 3661 | jorpiell | <jar jarfile="${dist}/lib/${gazzetterPlugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/gazetteer/**"/> |
63 | 2986 | jorpiell | <copy file="config/config.xml" todir="${dist}"/> |
64 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
65 | 1976 | luisw | <copy file="config/plugin.dtd" todir="${dist}"/> |
66 | <copy todir="${dist}"> |
||
67 | 5617 | cesar | <fileset dir="config" includes="text*.properties"/> |
68 | 1976 | luisw | </copy>
|
69 | <copy todir="${dist}/images"> |
||
70 | 3661 | jorpiell | <fileset dir="${appCatalogDir}/images/" includes="*"/> |
71 | 1976 | luisw | </copy>
|
72 | 7393 | jorpiell | <copy todir="${dist}/config"> |
73 | <fileset dir="${appCatalogDir}/config/" includes="*"/> |
||
74 | </copy>
|
||
75 | 1976 | luisw | <copy todir="${dist}"> |
76 | <!--fileset dir="./lib" includes="*.jar,*.zip"/ -->
|
||
77 | <fileset dir="." includes=".keystore"/> |
||
78 | 3661 | jorpiell | <fileset dir="${appCatalogDir}" includes="servers.txt"/> |
79 | 2026 | luisw | </copy>
|
80 | <copy todir="${dist}/lib"> |
||
81 | 3661 | jorpiell | <fileset dir="${appCatalogDir}/lib" includes="*.jar"/> |
82 | 1976 | luisw | </copy>
|
83 | 5607 | cesar | <move todir="${extensionsDir}/${catalogPlugin}/"> |
84 | 1976 | luisw | <fileset dir="${dist}" includes="**/**"/> |
85 | </move>
|
||
86 | 5607 | cesar | <delete file="${extensionsDir}/${catalogPlugin}/lib/xercesImpl.jar"/> |
87 | <delete file="${extensionsDir}/${catalogPlugin}/lib/xml-apis.jar"/> |
||
88 | 3031 | jorpiell | |
89 | 1976 | luisw | </target>
|
90 | |||
91 | 5607 | cesar | <target name="generate-with-source" |
92 | description="generate the distribution with the source file"> |
||
93 | 1976 | luisw | <!-- Create the distribution directory -->
|
94 | <mkdir dir="${dist}"/> |
||
95 | |||
96 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
97 | 3661 | jorpiell | <jar jarfile="${dist}/${catalogPlugin}.jar" basedir="${build}"/> |
98 | 1976 | luisw | <copy file="config/config.xml" todir="${dist}"/> |
99 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
100 | 1976 | luisw | <copy file="config/plugin.dtd" todir="${dist}"/> |
101 | <copy todir="${dist}"> |
||
102 | 5617 | cesar | <fileset dir="config" includes="text*.properties"/> |
103 | 1976 | luisw | </copy>
|
104 | <copy todir="${dist}"> |
||
105 | <fileset dir="." includes="${src}"/> |
||
106 | </copy>
|
||
107 | <copy todir="${dist}/images"> |
||
108 | <fileset dir="images/" includes="*"/> |
||
109 | </copy>
|
||
110 | <!--copy todir="${dist}">
|
||
111 | <fileset dir="./lib" includes="*.jar,*.zip"/>
|
||
112 | </copy-->
|
||
113 | 3661 | jorpiell | <move todir="${extension-dir}/${catalogPlugin}/"> |
114 | 1976 | luisw | <fileset dir="${dist}" includes="**/**"/> |
115 | </move>
|
||
116 | </target>
|
||
117 | |||
118 | 5607 | cesar | <target name="batch-build" |
119 | description="compile the sources, create the jar file" |
||
120 | depends="call-appCatalog-build,compile,create-jar,copy-data-files,move-to-andami"> |
||
121 | </target>
|
||
122 | |||
123 | <target name="call-appCatalog-build"> |
||
124 | <ant dir="${appCatalogDir}" target="batch-build" inheritAll="false"> |
||
125 | <property name="targetDir" location="${dist}/lib"/> |
||
126 | <property name="jarName" value="catCliProto.jar"/> |
||
127 | <property name="andamiLibs" value="${andamiLibs}"/> |
||
128 | </ant>
|
||
129 | </target>
|
||
130 | |||
131 | <target name="compile" description="compile the source" > |
||
132 | <!-- Compile the Java code from ${src} to ${bin} -->
|
||
133 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
134 | <mkdir dir="${build}" /> |
||
135 | <mkdir dir="${dist}/lib" /> |
||
136 | <jar jarfile="${dist}/lib/${remoteClientPlugin}.jar" basedir="${remoteClientsDir}/bin"/> |
||
137 | 6296 | cesar | <javac srcdir="${src}" |
138 | destdir="${build}" |
||
139 | 7786 | cesar | source="1.4" |
140 | target="1.4" |
||
141 | 6296 | cesar | debug="${debug}" |
142 | debuglevel="${debuglevel}" |
||
143 | classpath="${compile-classpath}" /> |
||
144 | 5607 | cesar | </target>
|
145 | |||
146 | <target name="create-jar" |
||
147 | description="Creates the plugin jar"> |
||
148 | <mkdir dir="${dist}/lib"/> |
||
149 | <jar jarfile="${dist}/lib/${catalogPlugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/catalogClient/**"/> |
||
150 | <jar jarfile="${dist}/lib/${gazzetterPlugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/gazetteer/**"/> |
||
151 | </target>
|
||
152 | |||
153 | <target name="copy-data-files"> |
||
154 | <copy file="config/config.xml" todir="${dist}"/> |
||
155 | 10187 | jmvivo | <copy file="build.number" todir="${dist}"/> |
156 | 5607 | cesar | <copy file="config/plugin.dtd" todir="${dist}"/> |
157 | <copy todir="${dist}"> |
||
158 | 5617 | cesar | <fileset dir="config" includes="text*.properties"/> |
159 | 5607 | cesar | </copy>
|
160 | <copy todir="${dist}/images"> |
||
161 | <fileset dir="${appCatalogDir}/images/" includes="*"/> |
||
162 | </copy>
|
||
163 | <copy todir="${dist}"> |
||
164 | <!--fileset dir="./lib" includes="*.jar,*.zip"/ -->
|
||
165 | <fileset dir="." includes=".keystore"/> |
||
166 | <fileset dir="${appCatalogDir}" includes="servers.txt"/> |
||
167 | </copy>
|
||
168 | 8565 | cesar | <copy todir="${dist}/config"> |
169 | <fileset dir="${appCatalogDir}/config/" includes="*"/> |
||
170 | </copy>
|
||
171 | 5607 | cesar | </target>
|
172 | |||
173 | <target name="move-to-andami"> |
||
174 | <copy todir="${dist}/lib"> |
||
175 | <fileset dir="${appCatalogDir}/lib" includes="*.jar"/> |
||
176 | </copy>
|
||
177 | <move todir="${extensionsDir}/${catalogPlugin}/"> |
||
178 | <fileset dir="${dist}" includes="**/**"/> |
||
179 | </move>
|
||
180 | </target>
|
||
181 | |||
182 | <target name="clean" |
||
183 | description="clean up" > |
||
184 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
185 | <delete dir="${build}"/> |
||
186 | <delete dir="${dist}"/> |
||
187 | </target>
|
||
188 | |||
189 | |||
190 | <target name="clean-orig" |
||
191 | 1976 | luisw | description="clean up" > |
192 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
193 | 7393 | jorpiell | |
194 | 3018 | jorpiell | |
195 | 1976 | luisw | </target>
|
196 | 3018 | jorpiell | |
197 | 1976 | luisw | </project>
|