root / trunk / extensions / extCatalogYNomenclator / build.xml @ 3031
History | View | Annotate | Download (4.3 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="plugin" value="es.gva.cit.gvsig.catalogClient"/> |
11 |
<property name="pluginGaz" value="es.gva.cit.gvsig.gazetteer"/> |
12 |
<property name="gvsiglibjar" value="gvsig-catalogClient"/> |
13 |
<property name="extensionDir" location="../Andami/gvSIG/extensiones"/> |
14 |
<property name="catProtoDir" value="../CatalogClientPrototype"/> |
15 |
<property name="remoteMapClientsDir" value="../Cq RemoteMapClients"/> |
16 |
<property name="wfsDir" value="../gvSIG_WFS"/> |
17 |
<property name="postgisDir" value="../gvSIG_JDBC"/> |
18 |
|
19 |
|
20 |
<target name="init"> |
21 |
<!-- Create the time stamp -->
|
22 |
<tstamp/> |
23 |
<!-- Create the build directory structure used by compile -->
|
24 |
<mkdir dir="${build}"/> |
25 |
<mkdir dir="${dist}"/> |
26 |
<!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
27 |
<buildnumber/> |
28 |
|
29 |
</target>
|
30 |
|
31 |
<target name="generate-without-source" |
32 |
description="generate the distribution without the source file"> |
33 |
<!-- depends="wcs-driver" -->
|
34 |
<!-- Create the distribution directory -->
|
35 |
<mkdir dir="${dist}"/> |
36 |
<mkdir dir="${dist}/lib"/> |
37 |
|
38 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
39 |
<jar jarfile="${dist}/lib/catCliProto.jar" basedir="${catProtoDir}/bin"/> |
40 |
|
41 |
<jar jarfile="${dist}/lib/remoteMapClients.jar" basedir="${remoteMapClientsDir}/bin"/> |
42 |
<jar jarfile="${dist}/lib/wfsClient.jar" basedir="${wfsDir}/bin"/> |
43 |
<jar jarfile="${dist}/lib/postgis.jar" basedir="${postgisDir}/bin"/> |
44 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/catalogClient/**"/> |
45 |
<jar jarfile="${dist}/lib/${pluginGaz}.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="images/" includes="*"/> |
53 |
</copy>
|
54 |
<copy todir="${dist}"> |
55 |
<!--fileset dir="./lib" includes="*.jar,*.zip"/ -->
|
56 |
<fileset dir="." includes=".keystore"/> |
57 |
<fileset dir="${catProtoDir}" includes="servers.txt"/> |
58 |
</copy>
|
59 |
<copy todir="${dist}/lib"> |
60 |
<fileset dir="${catProtoDir}/lib" includes="*.jar"/> |
61 |
</copy>
|
62 |
<!--move todir="${extensionDir}/${mainplugin}/lib">
|
63 |
<fileset dir="${dist}" includes="*.jar"/>
|
64 |
</move-->
|
65 |
<move todir="${extensionDir}/${plugin}/"> |
66 |
<fileset dir="${dist}" includes="**/**"/> |
67 |
</move>
|
68 |
<!--copy todir="${extensionDir}/${mainplugin}/lib/">
|
69 |
<fileset dir="../Fmap 03/lib" includes="cms-grid.jar,fmap-ra.jar"/>
|
70 |
</copy-->
|
71 |
<delete file="${extensionDir}/${plugin}/lib/xercesImpl.jar"/> |
72 |
<delete file="${extensionDir}/${plugin}/lib/xml-apis.jar"/> |
73 |
|
74 |
</target>
|
75 |
|
76 |
<target name="generate-with-source" description="generate the distribution with the source file" > |
77 |
<!-- Create the distribution directory -->
|
78 |
<mkdir dir="${dist}"/> |
79 |
|
80 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
81 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
82 |
<copy file="config/config.xml" todir="${dist}"/> |
83 |
<copy file="config/plugin.dtd" todir="${dist}"/> |
84 |
<copy todir="${dist}"> |
85 |
<fileset dir="." includes="text*.properties"/> |
86 |
</copy>
|
87 |
<copy todir="${dist}"> |
88 |
<fileset dir="." includes="${src}"/> |
89 |
</copy>
|
90 |
<copy todir="${dist}/images"> |
91 |
<fileset dir="images/" includes="*"/> |
92 |
</copy>
|
93 |
<!--copy todir="${dist}">
|
94 |
<fileset dir="./lib" includes="*.jar,*.zip"/>
|
95 |
</copy-->
|
96 |
<move todir="${extension-dir}/${plugin}/"> |
97 |
<fileset dir="${dist}" includes="**/**"/> |
98 |
</move>
|
99 |
|
100 |
|
101 |
</target>
|
102 |
|
103 |
<target name="clean" |
104 |
description="clean up" > |
105 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
106 |
<delete file="${extensiones}/es/gva/cit/gvsig/catalogClient/lib/xercesImpl.jar"/> |
107 |
<delete file="${extensiones}/es/gva/cit/gvsig/catalogClient/lib/xml-apis.jar" /> |
108 |
|
109 |
</target>
|
110 |
|
111 |
</project>
|
112 |
|