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