root / branches / v10 / extensions / extWFS / build.xml @ 13997
History | View | Annotate | Download (4.1 KB)
1 | 2277 | vcaballero | <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="com.iver.cit.gvsig.wfs"/> |
||
11 | 3349 | caballero | <property name="gvsiglibjar" value="gvsig-wfsclient"/> |
12 | 4611 | jorpiell | <property name="catalogPlugin" value="es.gva.cit.gvsig.catalogClient"/> |
13 | 3349 | caballero | <property name="fmapjar" value="fmap-wfsclient"/> |
14 | 2277 | vcaballero | <property name="driverjar" value="wfs"/> |
15 | 4139 | jjdelcerro | <property name="extensionDir" location="../_fwAndami/gvSIG/extensiones"/> |
16 | 4611 | jorpiell | |
17 | 2277 | vcaballero | <property name="drivers-dir" location="${extensionDir}/${mainplugin}/drivers" /> |
18 | |||
19 | <target name="init"> |
||
20 | <!-- Create the time stamp -->
|
||
21 | <tstamp/> |
||
22 | <!-- Create the build directory structure used by compile -->
|
||
23 | <mkdir dir="${build}"/> |
||
24 | <mkdir dir="${dist}"/> |
||
25 | 3349 | caballero | <!-- Creamos un fichero con el timeStamp para que lo lea el FPanelAbout -->
|
26 | <buildnumber/> |
||
27 | 2277 | vcaballero | |
28 | </target>
|
||
29 | |||
30 | <target name="generate-without-source" |
||
31 | description="generate the distribution without the source file"> |
||
32 | 3349 | caballero | <!-- depends="wfs-driver" -->
|
33 | 2277 | vcaballero | <!-- Create the distribution directory -->
|
34 | <mkdir dir="${dist}"/> |
||
35 | 3370 | caballero | <mkdir dir="${dist}/lib"/> |
36 | 2277 | vcaballero | |
37 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
38 | 3370 | caballero | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/wfs/**"/> |
39 | 4611 | jorpiell | <jar jarfile="${dist}/lib/wfsLoader.jar" basedir="${build}" includes="es/gva/cit/gvsig/wfs/loader/**"/> |
40 | <jar jarfile="${dist}/${gvsiglibjar}.jar" basedir="${build}" includes="com/iver/cit/gvsig/gui/**"/> |
||
41 | 3349 | caballero | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
42 | includes="com/iver/cit/gvsig/fmap/**,es/uji/lsi/wfs/**,org/cresques/io/rasterOld/**" /> |
||
43 | <!-- excludes="com/iver/cit/gvsig/fmap/drivers/wfs/**" /-->
|
||
44 | 2277 | vcaballero | <copy file="config/config.xml" todir="${dist}"/> |
45 | 3349 | caballero | <copy file="config/plugin.dtd" todir="${dist}"/> |
46 | 4611 | jorpiell | <!--
|
47 | 3370 | caballero | <copy todir="${dist}/lib">
|
48 | <fileset dir="./lib" includes="gt2-wfs.jar"/>
|
||
49 | </copy>
|
||
50 | 4611 | jorpiell | -->
|
51 | 3370 | caballero | <copy todir="${dist}"> |
52 | 2277 | vcaballero | <fileset dir="." includes="text*.properties"/> |
53 | 4611 | jorpiell | </copy>
|
54 | |||
55 | 2277 | vcaballero | <move todir="${extensionDir}/${mainplugin}/lib"> |
56 | <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> |
||
57 | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
||
58 | 4611 | jorpiell | </move>
|
59 | 2277 | vcaballero | <move todir="${extensionDir}/${plugin}/"> |
60 | <fileset dir="${dist}" includes="**/**"/> |
||
61 | </move>
|
||
62 | 4611 | jorpiell | <copy todir="${extensionDir}/${mainplugin}/lib"> |
63 | <fileset dir="./lib" includes="gt2-wfs.jar"/> |
||
64 | </copy>
|
||
65 | <!--
|
||
66 | <move todir="${extensionDir}/${catalogPlugin}/lib/">
|
||
67 | <fileset dir="${extensionDir}/${plugin}/lib" includes="**/**"/>
|
||
68 | </move>-->
|
||
69 | |||
70 | 2277 | vcaballero | </target>
|
71 | |||
72 | 3349 | caballero | <target name="wfs-driver" depends="" description="Genera el jar de wfs"> |
73 | <mkdir dir="${drivers-dir}/wfs" /> |
||
74 | <jar jarfile="${drivers-dir}/wfs/${driverjar}.jar" basedir="${build}" includes="com/iver/cit/gvsig/fmap/drivers/wfs/**" /> |
||
75 | </target>
|
||
76 | 2277 | vcaballero | |
77 | <target name="generate-with-source" description="generate the distribution with the source file" > |
||
78 | <!-- Create the distribution directory -->
|
||
79 | <mkdir dir="${dist}"/> |
||
80 | |||
81 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
82 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/> |
||
83 | <copy file="config/config.xml" todir="${dist}"/> |
||
84 | 3349 | caballero | <copy file="config/plugin.dtd" todir="${dist}"/> |
85 | 2277 | vcaballero | <copy todir="${dist}"> |
86 | <fileset dir="." includes="text*.properties"/> |
||
87 | </copy>
|
||
88 | <copy todir="${dist}"> |
||
89 | <fileset dir="." includes="${src}"/> |
||
90 | </copy>
|
||
91 | <copy todir="${dist}/images"> |
||
92 | <fileset dir="images/" includes="*"/> |
||
93 | </copy>
|
||
94 | 3349 | caballero | <!--copy todir="${dist}">
|
95 | <fileset dir="./lib" includes="*.jar,*.zip"/>
|
||
96 | </copy-->
|
||
97 | 2277 | vcaballero | <move todir="${extension-dir}/${plugin}/"> |
98 | <fileset dir="${dist}" includes="**/**"/> |
||
99 | </move>
|
||
100 | </target>
|
||
101 | |||
102 | <target name="clean" |
||
103 | description="clean up" > |
||
104 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
105 | <delete dir="${dist}"/> |
||
106 | </target>
|
||
107 | </project> |