15 |
15 |
<property name="wfsPlugin" value="wfs"/>
|
16 |
16 |
<property name="postgisPlugin" value="postgis"/>
|
17 |
17 |
|
18 |
|
<property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/>
|
19 |
18 |
<property name="appCatalogDir" value="../appCatalogYNomenclatorClient"/>
|
20 |
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"/>
|
|
27 |
<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" />
|
|
30 |
|
21 |
31 |
|
22 |
32 |
|
23 |
33 |
<target name="init">
|
... | ... | |
39 |
49 |
<mkdir dir="${dist}/lib"/>
|
40 |
50 |
|
41 |
51 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
42 |
|
<jar jarfile="${dist}/lib/catCliProto.jar" basedir="${appCatalogDir}/bin"/>
|
|
52 |
<jar jarfile="${dist}/lib/${catProtocolJarName}" basedir="${appCatalogDir}/bin"/>
|
43 |
53 |
<jar jarfile="${dist}/lib/${remoteClientPlugin}.jar" basedir="${remoteClientsDir}/bin"/>
|
44 |
54 |
<jar jarfile="${dist}/lib/${catalogPlugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/catalogClient/**"/>
|
45 |
55 |
<jar jarfile="${dist}/lib/${gazzetterPlugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/gazetteer/**"/>
|
... | ... | |
59 |
69 |
<copy todir="${dist}/lib">
|
60 |
70 |
<fileset dir="${appCatalogDir}/lib" includes="*.jar"/>
|
61 |
71 |
</copy>
|
62 |
|
<move todir="${extensionDir}/${catalogPlugin}/">
|
|
72 |
<move todir="${extensionsDir}/${catalogPlugin}/">
|
63 |
73 |
<fileset dir="${dist}" includes="**/**"/>
|
64 |
74 |
</move>
|
65 |
|
<delete file="${extensionDir}/${catalogPlugin}/lib/xercesImpl.jar"/>
|
66 |
|
<delete file="${extensionDir}/${catalogPlugin}/lib/xml-apis.jar"/>
|
|
75 |
<delete file="${extensionsDir}/${catalogPlugin}/lib/xercesImpl.jar"/>
|
|
76 |
<delete file="${extensionsDir}/${catalogPlugin}/lib/xml-apis.jar"/>
|
67 |
77 |
|
68 |
78 |
</target>
|
69 |
79 |
|
70 |
|
<target name="generate-with-source" description="generate the distribution with the source file" >
|
|
80 |
<target name="generate-with-source"
|
|
81 |
description="generate the distribution with the source file">
|
71 |
82 |
<!-- Create the distribution directory -->
|
72 |
83 |
<mkdir dir="${dist}"/>
|
73 |
84 |
|
... | ... | |
90 |
101 |
<move todir="${extension-dir}/${catalogPlugin}/">
|
91 |
102 |
<fileset dir="${dist}" includes="**/**"/>
|
92 |
103 |
</move>
|
93 |
|
|
94 |
|
|
95 |
104 |
</target>
|
96 |
105 |
|
97 |
|
<target name="clean"
|
|
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 |
</target>
|
|
110 |
|
|
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>
|
|
117 |
</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 |
|
|
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="**/**"/>
|
|
159 |
</move>
|
|
160 |
</target>
|
|
161 |
|
|
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"
|
98 |
171 |
description="clean up" >
|
99 |
172 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
|
173 |
|
100 |
174 |
<delete file="${extensiones}/es/gva/cit/gvsig/catalogClient/lib/xercesImpl.jar"/>
|
101 |
175 |
<delete file="${extensiones}/es/gva/cit/gvsig/catalogClient/lib/xml-apis.jar" />
|
102 |
176 |
|