svn-gvsig-desktop / tags / v1_0_2_Build_908 / extensions / extCatalogYNomenclator / build.xml @ 41849
History | View | Annotate | Download (7.75 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 | <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 | 10565 | jmvivo | <property name="JavaSourceVersion" value="1.4"/> |
31 | <property name="JavaTargetVersion" value="1.4"/> |
||
32 | 5607 | cesar | |
33 | 5444 | jorpiell | |
34 | 2843 | jorpiell | |
35 | 1976 | luisw | <target name="init"> |
36 | <!-- Create the time stamp -->
|
||
37 | <tstamp/> |
||
38 | <!-- Create the build directory structure used by compile -->
|
||
39 | <mkdir dir="${build}"/> |
||
40 | <mkdir dir="${dist}"/> |
||
41 | <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
||
42 | <buildnumber/> |
||
43 | |||
44 | </target>
|
||
45 | |||
46 | 10185 | jmvivo | <target name="import-build-number"> |
47 | <copy todir="."> |
||
48 | <fileset file="${buildNumberFile}"/> |
||
49 | </copy>
|
||
50 | </target>
|
||
51 | |||
52 | 1976 | luisw | <target name="generate-without-source" |
53 | description="generate the distribution without the source file"> |
||
54 | <!-- depends="wcs-driver" -->
|
||
55 | <!-- Create the distribution directory -->
|
||
56 | <mkdir dir="${dist}"/> |
||
57 | 2026 | luisw | <mkdir dir="${dist}/lib"/> |
58 | 1976 | luisw | |
59 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
60 | 5607 | cesar | <jar jarfile="${dist}/lib/${catProtocolJarName}" basedir="${appCatalogDir}/bin"/> |
61 | 3661 | jorpiell | <jar jarfile="${dist}/lib/${remoteClientPlugin}.jar" basedir="${remoteClientsDir}/bin"/> |
62 | 5444 | jorpiell | <jar jarfile="${dist}/lib/${catalogPlugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/catalogClient/**"/> |
63 | 3661 | jorpiell | <jar jarfile="${dist}/lib/${gazzetterPlugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/gazetteer/**"/> |
64 | 2986 | jorpiell | <copy file="config/config.xml" todir="${dist}"/> |
65 | 10185 | jmvivo | <copy file="build.number" todir="${dist}"/> |
66 | 1976 | luisw | <copy file="config/plugin.dtd" todir="${dist}"/> |
67 | <copy todir="${dist}"> |
||
68 | 5617 | cesar | <fileset dir="config" includes="text*.properties"/> |
69 | 1976 | luisw | </copy>
|
70 | <copy todir="${dist}/images"> |
||
71 | 3661 | jorpiell | <fileset dir="${appCatalogDir}/images/" includes="*"/> |
72 | 1976 | luisw | </copy>
|
73 | 7400 | jorpiell | <copy todir="${dist}/config"> |
74 | <fileset dir="${appCatalogDir}/config/" includes="*"/> |
||
75 | </copy>
|
||
76 | 1976 | luisw | <copy todir="${dist}"> |
77 | <!--fileset dir="./lib" includes="*.jar,*.zip"/ -->
|
||
78 | <fileset dir="." includes=".keystore"/> |
||
79 | 3661 | jorpiell | <fileset dir="${appCatalogDir}" includes="servers.txt"/> |
80 | 2026 | luisw | </copy>
|
81 | <copy todir="${dist}/lib"> |
||
82 | 3661 | jorpiell | <fileset dir="${appCatalogDir}/lib" includes="*.jar"/> |
83 | 1976 | luisw | </copy>
|
84 | 5607 | cesar | <move todir="${extensionsDir}/${catalogPlugin}/"> |
85 | 1976 | luisw | <fileset dir="${dist}" includes="**/**"/> |
86 | </move>
|
||
87 | 5607 | cesar | <delete file="${extensionsDir}/${catalogPlugin}/lib/xercesImpl.jar"/> |
88 | <delete file="${extensionsDir}/${catalogPlugin}/lib/xml-apis.jar"/> |
||
89 | 3031 | jorpiell | |
90 | 1976 | luisw | </target>
|
91 | |||
92 | 5607 | cesar | <target name="generate-with-source" |
93 | description="generate the distribution with the source file"> |
||
94 | 1976 | luisw | <!-- Create the distribution directory -->
|
95 | <mkdir dir="${dist}"/> |
||
96 | |||
97 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
98 | 3661 | jorpiell | <jar jarfile="${dist}/${catalogPlugin}.jar" basedir="${build}"/> |
99 | 1976 | luisw | <copy file="config/config.xml" todir="${dist}"/> |
100 | 10185 | jmvivo | <copy file="build.number" todir="${dist}"/> |
101 | 1976 | luisw | <copy file="config/plugin.dtd" todir="${dist}"/> |
102 | <copy todir="${dist}"> |
||
103 | 5617 | cesar | <fileset dir="config" includes="text*.properties"/> |
104 | 1976 | luisw | </copy>
|
105 | <copy todir="${dist}"> |
||
106 | <fileset dir="." includes="${src}"/> |
||
107 | </copy>
|
||
108 | <copy todir="${dist}/images"> |
||
109 | <fileset dir="images/" includes="*"/> |
||
110 | </copy>
|
||
111 | <!--copy todir="${dist}">
|
||
112 | <fileset dir="./lib" includes="*.jar,*.zip"/>
|
||
113 | </copy-->
|
||
114 | 3661 | jorpiell | <move todir="${extension-dir}/${catalogPlugin}/"> |
115 | 1976 | luisw | <fileset dir="${dist}" includes="**/**"/> |
116 | </move>
|
||
117 | </target>
|
||
118 | |||
119 | 5607 | cesar | <target name="batch-build" |
120 | description="compile the sources, create the jar file" |
||
121 | depends="call-appCatalog-build,compile,create-jar,copy-data-files,move-to-andami"> |
||
122 | </target>
|
||
123 | |||
124 | <target name="call-appCatalog-build"> |
||
125 | <ant dir="${appCatalogDir}" target="batch-build" inheritAll="false"> |
||
126 | <property name="targetDir" location="${dist}/lib"/> |
||
127 | <property name="jarName" value="catCliProto.jar"/> |
||
128 | <property name="andamiLibs" value="${andamiLibs}"/> |
||
129 | </ant>
|
||
130 | </target>
|
||
131 | |||
132 | <target name="compile" description="compile the source" > |
||
133 | <!-- Compile the Java code from ${src} to ${bin} -->
|
||
134 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
135 | <mkdir dir="${build}" /> |
||
136 | <mkdir dir="${dist}/lib" /> |
||
137 | <jar jarfile="${dist}/lib/${remoteClientPlugin}.jar" basedir="${remoteClientsDir}/bin"/> |
||
138 | 6296 | cesar | <javac srcdir="${src}" |
139 | destdir="${build}" |
||
140 | 10565 | jmvivo | source="${JavaSourceVersion}" |
141 | target="${JavaTargetVersion}" |
||
142 | 6296 | cesar | debug="${debug}" |
143 | debuglevel="${debuglevel}" |
||
144 | classpath="${compile-classpath}" /> |
||
145 | 5607 | cesar | </target>
|
146 | |||
147 | <target name="create-jar" |
||
148 | description="Creates the plugin jar"> |
||
149 | <mkdir dir="${dist}/lib"/> |
||
150 | <jar jarfile="${dist}/lib/${catalogPlugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/catalogClient/**"/> |
||
151 | <jar jarfile="${dist}/lib/${gazzetterPlugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/gazetteer/**"/> |
||
152 | </target>
|
||
153 | |||
154 | <target name="copy-data-files"> |
||
155 | <copy file="config/config.xml" todir="${dist}"/> |
||
156 | 10185 | jmvivo | <copy file="build.number" todir="${dist}"/> |
157 | 5607 | cesar | <copy file="config/plugin.dtd" todir="${dist}"/> |
158 | <copy todir="${dist}"> |
||
159 | 5617 | cesar | <fileset dir="config" includes="text*.properties"/> |
160 | 5607 | cesar | </copy>
|
161 | <copy todir="${dist}/images"> |
||
162 | <fileset dir="${appCatalogDir}/images/" includes="*"/> |
||
163 | </copy>
|
||
164 | <copy todir="${dist}"> |
||
165 | <!--fileset dir="./lib" includes="*.jar,*.zip"/ -->
|
||
166 | <fileset dir="." includes=".keystore"/> |
||
167 | <fileset dir="${appCatalogDir}" includes="servers.txt"/> |
||
168 | </copy>
|
||
169 | 8566 | cesar | <copy todir="${dist}/config"> |
170 | <fileset dir="${appCatalogDir}/config/" includes="*"/> |
||
171 | </copy>
|
||
172 | 5607 | cesar | </target>
|
173 | |||
174 | <target name="move-to-andami"> |
||
175 | <copy todir="${dist}/lib"> |
||
176 | <fileset dir="${appCatalogDir}/lib" includes="*.jar"/> |
||
177 | </copy>
|
||
178 | <move todir="${extensionsDir}/${catalogPlugin}/"> |
||
179 | <fileset dir="${dist}" includes="**/**"/> |
||
180 | </move>
|
||
181 | </target>
|
||
182 | |||
183 | <target name="clean" |
||
184 | description="clean up" > |
||
185 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
186 | <delete dir="${build}"/> |
||
187 | <delete dir="${dist}"/> |
||
188 | </target>
|
||
189 | |||
190 | |||
191 | <target name="clean-orig" |
||
192 | 1976 | luisw | description="clean up" > |
193 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
194 | 7400 | jorpiell | |
195 | 3018 | jorpiell | |
196 | 1976 | luisw | </target>
|
197 | 3018 | jorpiell | |
198 | 1976 | luisw | </project>
|