Revision 5614
trunk/applications/appCatalogYNomenclatorClient/build.xml | ||
---|---|---|
1 |
<project name="Generar extension en Andami" default="generate-without-source" basedir=".">
|
|
1 |
<project name="Generar extension en Andami" default="build-for-eclipse" basedir=".">
|
|
2 | 2 |
<description> |
3 | 3 |
Instala el plugin en Andami |
4 | 4 |
</description> |
5 | 5 |
<!-- set global properties for this build --> |
6 |
<property name="src" location="src"/> |
|
6 |
<property name="fmap" location="../libFMap"/> |
|
7 |
<property name="andami" location="../_fwAndami"/> |
|
7 | 8 |
<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 |
<property name="remoteClientsDir" value="../libRemoteServices"/> |
|
20 |
|
|
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"/> |
|
9 |
<property name="src" location="src"/> |
|
10 |
<property name="dist" location="dist"/> |
|
11 |
<property name="lib" location="lib"/> |
|
27 | 12 |
<property name="andamiLibs" location="${andami}/lib"/> |
28 |
<property name="fmapLibs" location="../libFMap/lib" /> |
|
29 |
<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:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${andamiLibs}/gvsig-i18n.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" /> |
|
13 |
<property name="targetDir" location="../extCatalogYNomenclator/dist/lib"/> |
|
14 |
<property name="jarName" value="catCliProto.jar"/> |
|
15 |
<property name="compile-classpath" value="${lib}/a2jruntime.jar:${lib}/activation.jar:${lib}/commons-codec.jar:${lib}/commons-httpclient-2.0.2.jar:${lib}/commons-logging.jar:${lib}/junit.jar:${lib}/ki-jzkit-hss.jar:${lib}/ki-jzkit-iface.jar:${lib}/ki-jzkit-z3950.jar:${lib}/ki-util.jar:${lib}/log4j-1.2.4.jar:${lib}/mail.jar:${lib}/soap.jar:${lib}/ostermillerutils_1_04_03_for_java_1_4.jar:${lib}/xalan.jar:${lib}/amic-util.jar:${andamiLibs}/xerces_2_5_0.jar:${andamiLibs}/iver-utiles.jar:${andamiLibs}/gvsig-i18n.jar"/> |
|
30 | 16 |
|
31 |
|
|
32 |
|
|
33 | 17 |
<target name="init"> |
34 | 18 |
<!-- Create the time stamp --> |
35 | 19 |
<tstamp/> |
36 | 20 |
<!-- Create the build directory structure used by compile --> |
37 |
<mkdir dir="${build}"/> |
|
38 |
<mkdir dir="${dist}"/> |
|
39 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout --> |
|
40 |
<buildnumber/> |
|
41 |
|
|
21 |
<buildnumber/> |
|
42 | 22 |
</target> |
23 |
|
|
24 |
<target name="build-for-eclipse" |
|
25 |
description="generates the jar and moves it to the target dir, but doesn't compile the sources" |
|
26 |
depends="create-jar,move-to-targetDir"> |
|
27 |
<!-- this is not normally used, as extCatalog already builds appCatalog, but |
|
28 |
we include it here and make something meaningful, just in case the user |
|
29 |
wants to build only appCatalog.--> |
|
30 |
</target> |
|
43 | 31 |
|
44 |
<target name="generate-without-source" |
|
45 |
description="generate the distribution without the source file"> |
|
46 |
<!-- depends="wcs-driver" --> |
|
47 |
<!-- Create the distribution directory --> |
|
48 |
<mkdir dir="${dist}"/> |
|
49 |
<mkdir dir="${dist}/lib"/> |
|
50 |
|
|
51 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file --> |
|
52 |
<jar jarfile="${dist}/lib/${catProtocolJarName}" basedir="${appCatalogDir}/bin"/> |
|
53 |
<jar jarfile="${dist}/lib/${remoteClientPlugin}.jar" basedir="${remoteClientsDir}/bin"/> |
|
54 |
<jar jarfile="${dist}/lib/${catalogPlugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/catalogClient/**"/> |
|
55 |
<jar jarfile="${dist}/lib/${gazzetterPlugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/gazetteer/**"/> |
|
56 |
<copy file="config/config.xml" todir="${dist}"/> |
|
57 |
<copy file="config/plugin.dtd" todir="${dist}"/> |
|
58 |
<copy todir="${dist}"> |
|
59 |
<fileset dir="." includes="text*.properties"/> |
|
60 |
</copy> |
|
61 |
<copy todir="${dist}/images"> |
|
62 |
<fileset dir="${appCatalogDir}/images/" includes="*"/> |
|
63 |
</copy> |
|
64 |
<copy todir="${dist}"> |
|
65 |
<!--fileset dir="./lib" includes="*.jar,*.zip"/ --> |
|
66 |
<fileset dir="." includes=".keystore"/> |
|
67 |
<fileset dir="${appCatalogDir}" includes="servers.txt"/> |
|
68 |
</copy> |
|
69 |
<copy todir="${dist}/lib"> |
|
70 |
<fileset dir="${appCatalogDir}/lib" includes="*.jar"/> |
|
71 |
</copy> |
|
72 |
<move todir="${extensionsDir}/${catalogPlugin}/"> |
|
73 |
<fileset dir="${dist}" includes="**/**"/> |
|
74 |
</move> |
|
75 |
<delete file="${extensionsDir}/${catalogPlugin}/lib/xercesImpl.jar"/> |
|
76 |
<delete file="${extensionsDir}/${catalogPlugin}/lib/xml-apis.jar"/> |
|
77 |
|
|
32 |
<target name="batch-build" |
|
33 |
description="compile the source" |
|
34 |
depends="compile,create-jar,move-to-targetDir"> |
|
35 |
<!-- Compile the Java code from ${src} to ${bin} --> |
|
78 | 36 |
</target> |
79 | 37 |
|
80 |
<target name="generate-with-source" |
|
81 |
description="generate the distribution with the source file"> |
|
82 |
<!-- Create the distribution directory --> |
|
83 |
<mkdir dir="${dist}"/> |
|
38 |
<target name="compile"> |
|
39 |
<javac |
|
40 |
srcdir="${src}" |
|
41 |
destdir="${build}" |
|
42 |
classpath="${compile-classpath}"/> |
|
84 | 43 |
|
85 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file --> |
|
86 |
<jar jarfile="${dist}/${catalogPlugin}.jar" basedir="${build}"/> |
|
87 |
<copy file="config/config.xml" todir="${dist}"/> |
|
88 |
<copy file="config/plugin.dtd" todir="${dist}"/> |
|
89 |
<copy todir="${dist}"> |
|
90 |
<fileset dir="." includes="text*.properties"/> |
|
91 |
</copy> |
|
92 |
<copy todir="${dist}"> |
|
93 |
<fileset dir="." includes="${src}"/> |
|
94 |
</copy> |
|
95 |
<copy todir="${dist}/images"> |
|
96 |
<fileset dir="images/" includes="*"/> |
|
97 |
</copy> |
|
98 |
<!--copy todir="${dist}"> |
|
99 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
|
100 |
</copy--> |
|
101 |
<move todir="${extension-dir}/${catalogPlugin}/"> |
|
102 |
<fileset dir="${dist}" includes="**/**"/> |
|
103 |
</move> |
|
104 |
</target> |
|
105 |
|
|
106 |
<target name="batch-build" |
|
107 |
description="compile the sources, create the jar file" |
|
108 |
depends="call-appCatalog-build,compile,create-jar,copy-data-files,move-to-andami"> |
|
109 | 44 |
</target> |
110 | 45 |
|
111 |
<target name="call-appCatalog-build"> |
|
112 |
<ant dir="${appCatalogDir}" target="batch-build" inheritAll="false"> |
|
113 |
<property name="targetDir" location="${dist}/lib"/> |
|
114 |
<property name="jarName" value="catCliProto.jar"/> |
|
115 |
<property name="andamiLibs" value="${andamiLibs}"/> |
|
116 |
</ant> |
|
46 |
<target name="create-jar"> |
|
47 |
<mkdir dir="${dist}" /> |
|
48 |
<jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
|
117 | 49 |
</target> |
118 |
|
|
119 |
<target name="compile" description="compile the source" > |
|
120 |
<!-- Compile the Java code from ${src} to ${bin} --> |
|
121 |
<!-- Compile the Java code from ${src} to ${build} --> |
|
122 |
<mkdir dir="${build}" /> |
|
123 |
<mkdir dir="${dist}/lib" /> |
|
124 |
<jar jarfile="${dist}/lib/${remoteClientPlugin}.jar" basedir="${remoteClientsDir}/bin"/> |
|
125 |
<javac srcdir="${src}" |
|
126 |
destdir="${build}" |
|
127 |
classpath="${compile-classpath}" /> |
|
128 |
</target> |
|
129 | 50 |
|
130 |
<target name="create-jar" |
|
131 |
description="Creates the plugin jar"> |
|
132 |
<mkdir dir="${dist}/lib"/> |
|
133 |
<jar jarfile="${dist}/lib/${catalogPlugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/catalogClient/**"/> |
|
134 |
<jar jarfile="${dist}/lib/${gazzetterPlugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/gazetteer/**"/> |
|
135 |
</target> |
|
136 |
|
|
137 |
<target name="copy-data-files"> |
|
138 |
<copy file="config/config.xml" todir="${dist}"/> |
|
139 |
<copy file="config/plugin.dtd" todir="${dist}"/> |
|
140 |
<copy todir="${dist}"> |
|
141 |
<fileset dir="." includes="text*.properties"/> |
|
142 |
</copy> |
|
143 |
<copy todir="${dist}/images"> |
|
144 |
<fileset dir="${appCatalogDir}/images/" includes="*"/> |
|
145 |
</copy> |
|
146 |
<copy todir="${dist}"> |
|
147 |
<!--fileset dir="./lib" includes="*.jar,*.zip"/ --> |
|
148 |
<fileset dir="." includes=".keystore"/> |
|
149 |
<fileset dir="${appCatalogDir}" includes="servers.txt"/> |
|
150 |
</copy> |
|
151 |
</target> |
|
152 |
|
|
153 |
<target name="move-to-andami"> |
|
154 |
<copy todir="${dist}/lib"> |
|
155 |
<fileset dir="${appCatalogDir}/lib" includes="*.jar"/> |
|
156 |
</copy> |
|
157 |
<move todir="${extensionsDir}/${catalogPlugin}/"> |
|
158 |
<fileset dir="${dist}" includes="**/**"/> |
|
51 |
<target name="move-to-targetDir"> |
|
52 |
<mkdir dir="${targetDir}" /> |
|
53 |
<move todir="${targetDir}"> |
|
54 |
<fileset file="${dist}/${jarName}"/> |
|
159 | 55 |
</move> |
160 | 56 |
</target> |
161 | 57 |
|
162 |
<target name="clean" |
|
163 |
description="clean up" > |
|
164 |
<!-- Delete the ${build} and ${dist} directory trees --> |
|
165 |
<delete dir="${build}"/> |
|
166 |
<delete dir="${dist}"/> |
|
167 |
</target> |
|
168 |
|
|
169 |
|
|
170 |
<target name="clean-orig" |
|
58 |
<target name="clean" |
|
171 | 59 |
description="clean up" > |
172 | 60 |
<!-- Delete the ${build} and ${dist} directory trees --> |
173 |
|
|
174 |
<delete file="${extensiones}/es/gva/cit/gvsig/catalogClient/lib/xercesImpl.jar"/>
|
|
175 |
<delete file="${extensiones}/es/gva/cit/gvsig/catalogClient/lib/xml-apis.jar" />
|
|
176 |
|
|
61 |
<delete includeemptydirs="true" failonerror="no"> |
|
62 |
<fileset dir="${build}" includes="**"/>
|
|
63 |
<fileset dir="${dist}" includes="**"/>
|
|
64 |
</delete> |
|
177 | 65 |
</target> |
178 | 66 |
|
179 | 67 |
</project> |
Also available in: Unified diff