root / trunk / extensions / extCatalogYNomenclator / build.xml @ 5452
History | View | Annotate | Download (4.04 KB)
1 |
<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 |
<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="extensionDir" location="../_fwAndami/gvSIG/extensiones"/> |
19 |
<property name="appCatalogDir" value="../appCatalogYNomenclatorClient"/> |
20 |
<property name="remoteClientsDir" value="../libRemoteServices"/> |
21 |
|
22 |
|
23 |
<target name="init"> |
24 |
<!-- Create the time stamp -->
|
25 |
<tstamp/> |
26 |
<!-- Create the build directory structure used by compile -->
|
27 |
<mkdir dir="${build}"/> |
28 |
<mkdir dir="${dist}"/> |
29 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
30 |
<buildnumber/> |
31 |
|
32 |
</target>
|
33 |
|
34 |
<target name="generate-without-source" |
35 |
description="generate the distribution without the source file"> |
36 |
<!-- depends="wcs-driver" -->
|
37 |
<!-- Create the distribution directory -->
|
38 |
<mkdir dir="${dist}"/> |
39 |
<mkdir dir="${dist}/lib"/> |
40 |
|
41 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
42 |
<jar jarfile="${dist}/lib/catCliProto.jar" basedir="${appCatalogDir}/bin"/> |
43 |
<jar jarfile="${dist}/lib/${remoteClientPlugin}.jar" basedir="${remoteClientsDir}/bin"/> |
44 |
<jar jarfile="${dist}/lib/${catalogPlugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/catalogClient/**"/> |
45 |
<jar jarfile="${dist}/lib/${gazzetterPlugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/gazetteer/**"/> |
46 |
<copy file="config/config.xml" todir="${dist}"/> |
47 |
<copy file="config/plugin.dtd" todir="${dist}"/> |
48 |
<copy todir="${dist}"> |
49 |
<fileset dir="." includes="text*.properties"/> |
50 |
</copy>
|
51 |
<copy todir="${dist}/images"> |
52 |
<fileset dir="${appCatalogDir}/images/" includes="*"/> |
53 |
</copy>
|
54 |
<copy todir="${dist}"> |
55 |
<!--fileset dir="./lib" includes="*.jar,*.zip"/ -->
|
56 |
<fileset dir="." includes=".keystore"/> |
57 |
<fileset dir="${appCatalogDir}" includes="servers.txt"/> |
58 |
</copy>
|
59 |
<copy todir="${dist}/lib"> |
60 |
<fileset dir="${appCatalogDir}/lib" includes="*.jar"/> |
61 |
</copy>
|
62 |
<move todir="${extensionDir}/${catalogPlugin}/"> |
63 |
<fileset dir="${dist}" includes="**/**"/> |
64 |
</move>
|
65 |
<delete file="${extensionDir}/${catalogPlugin}/lib/xercesImpl.jar"/> |
66 |
<delete file="${extensionDir}/${catalogPlugin}/lib/xml-apis.jar"/> |
67 |
|
68 |
</target>
|
69 |
|
70 |
<target name="generate-with-source" description="generate the distribution with the source file" > |
71 |
<!-- Create the distribution directory -->
|
72 |
<mkdir dir="${dist}"/> |
73 |
|
74 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
75 |
<jar jarfile="${dist}/${catalogPlugin}.jar" basedir="${build}"/> |
76 |
<copy file="config/config.xml" todir="${dist}"/> |
77 |
<copy file="config/plugin.dtd" todir="${dist}"/> |
78 |
<copy todir="${dist}"> |
79 |
<fileset dir="." includes="text*.properties"/> |
80 |
</copy>
|
81 |
<copy todir="${dist}"> |
82 |
<fileset dir="." includes="${src}"/> |
83 |
</copy>
|
84 |
<copy todir="${dist}/images"> |
85 |
<fileset dir="images/" includes="*"/> |
86 |
</copy>
|
87 |
<!--copy todir="${dist}">
|
88 |
<fileset dir="./lib" includes="*.jar,*.zip"/>
|
89 |
</copy-->
|
90 |
<move todir="${extension-dir}/${catalogPlugin}/"> |
91 |
<fileset dir="${dist}" includes="**/**"/> |
92 |
</move>
|
93 |
|
94 |
|
95 |
</target>
|
96 |
|
97 |
<target name="clean" |
98 |
description="clean up" > |
99 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
100 |
<delete file="${extensiones}/es/gva/cit/gvsig/catalogClient/lib/xercesImpl.jar"/> |
101 |
<delete file="${extensiones}/es/gva/cit/gvsig/catalogClient/lib/xml-apis.jar" /> |
102 |
|
103 |
</target>
|
104 |
|
105 |
</project>
|
106 |
|