root / trunk / extensions / extCatalogYNomenclator / build.xml @ 3036
History | View | Annotate | Download (4.3 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 | <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 | 2966 | jorpiell | <property name="pluginGaz" value="es.gva.cit.gvsig.gazetteer"/> |
12 | 1976 | luisw | <property name="gvsiglibjar" value="gvsig-catalogClient"/> |
13 | <property name="extensionDir" location="../Andami/gvSIG/extensiones"/> |
||
14 | 2026 | luisw | <property name="catProtoDir" value="../CatalogClientPrototype"/> |
15 | 2843 | jorpiell | <property name="remoteMapClientsDir" value="../Cq RemoteMapClients"/> |
16 | 2878 | jorpiell | <property name="wfsDir" value="../gvSIG_WFS"/> |
17 | 2886 | jorpiell | <property name="postgisDir" value="../gvSIG_JDBC"/> |
18 | 2966 | jorpiell | |
19 | 2843 | jorpiell | |
20 | 1976 | luisw | <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 | 2026 | luisw | <mkdir dir="${dist}/lib"/> |
37 | 1976 | luisw | |
38 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
39 | 2026 | luisw | <jar jarfile="${dist}/lib/catCliProto.jar" basedir="${catProtoDir}/bin"/> |
40 | 2986 | jorpiell | |
41 | 2843 | jorpiell | <jar jarfile="${dist}/lib/remoteMapClients.jar" basedir="${remoteMapClientsDir}/bin"/> |
42 | 2878 | jorpiell | <jar jarfile="${dist}/lib/wfsClient.jar" basedir="${wfsDir}/bin"/> |
43 | 2886 | jorpiell | <jar jarfile="${dist}/lib/postgis.jar" basedir="${postgisDir}/bin"/> |
44 | 2843 | jorpiell | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="es/gva/cit/gvsig/catalogClient/**"/> |
45 | 2966 | jorpiell | <jar jarfile="${dist}/lib/${pluginGaz}.jar" basedir="${build}" includes="es/gva/cit/gvsig/gazetteer/**"/> |
46 | 2986 | jorpiell | <copy file="config/config.xml" todir="${dist}"/> |
47 | 1976 | luisw | <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 | 2026 | luisw | <fileset dir="${catProtoDir}" includes="servers.txt"/> |
58 | </copy>
|
||
59 | <copy todir="${dist}/lib"> |
||
60 | <fileset dir="${catProtoDir}/lib" includes="*.jar"/> |
||
61 | 1976 | luisw | </copy>
|
62 | 2026 | luisw | <!--move todir="${extensionDir}/${mainplugin}/lib">
|
63 | <fileset dir="${dist}" includes="*.jar"/>
|
||
64 | </move-->
|
||
65 | 1976 | luisw | <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 | 3031 | jorpiell | <delete file="${extensionDir}/${plugin}/lib/xercesImpl.jar"/> |
72 | <delete file="${extensionDir}/${plugin}/lib/xml-apis.jar"/> |
||
73 | |||
74 | 1976 | luisw | </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 | 3018 | jorpiell | |
100 | |||
101 | 1976 | luisw | </target>
|
102 | |||
103 | <target name="clean" |
||
104 | description="clean up" > |
||
105 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
106 | 3018 | jorpiell | <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 | 1976 | luisw | </target>
|
110 | 3018 | jorpiell | |
111 | 1976 | luisw | </project>
|