root / trunk / extensions / extWFS2 / build.xml @ 6524
History | View | Annotate | Download (5.02 KB)
1 | 4886 | jorpiell | <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 | 5624 | cesar | <property name="lib" location="lib"/> |
10 | 4886 | jorpiell | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
11 | <property name="plugin" value="com.iver.cit.gvsig.wfs2"/> |
||
12 | <property name="gvsiglibjar" value="gvsig-wfs"/> |
||
13 | <property name="fmapjar" value="fmap-wfs"/> |
||
14 | <property name="driverjar" value="wfs"/> |
||
15 | 5624 | cesar | <property name="andami" location="../_fwAndami"/> |
16 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
17 | <property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers" /> |
||
18 | <property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/> |
||
19 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
20 | <property name="remoteclientjar" value="${fmapLibs}/remote-clients.jar"/> |
||
21 | <property name="andamiLibs" location="${andami}/lib" /> |
||
22 | <property name="andamiJar" location="${andami}/andami.jar"/> |
||
23 | <property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
||
24 | 6297 | cesar | <property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/geoapi-2.0.jar:${lib}/gt2-gml.jar:${fmapLibs}/gt2-main.jar:${lib}/gt2-wfs.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/jts-1.7.jar:${andamiLibs}/log4j-1.2.8.jar:${fmapLibs}/remote-clients.jar" /> |
25 | 5624 | cesar | |
26 | 4886 | jorpiell | <target name="init"> |
27 | <!-- Create the time stamp -->
|
||
28 | <tstamp/> |
||
29 | <!-- Create the build directory structure used by compile -->
|
||
30 | <mkdir dir="${build}"/> |
||
31 | <mkdir dir="${dist}"/> |
||
32 | |||
33 | </target>
|
||
34 | |||
35 | <target name="generate-without-source" |
||
36 | description="generate the distribution without the source file"> |
||
37 | <!-- Create the distribution directory -->
|
||
38 | <mkdir dir="${dist}"/> |
||
39 | <mkdir dir="${dist}/lib"/> |
||
40 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
41 | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
||
42 | excludes="com/iver/cit/gvsig/fmap/**" |
||
43 | />
|
||
44 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
||
45 | includes="com/iver/cit/gvsig/fmap/**" /> |
||
46 | <!-- excludes="com/iver/cit/gvsig/fmap/drivers/wms/**" />-->
|
||
47 | <copy file="config/config.xml" todir="${dist}"/> |
||
48 | <copy todir="${dist}"> |
||
49 | <fileset dir="config" includes="text*.properties"/> |
||
50 | </copy>
|
||
51 | <copy todir="${lib-dir}"> |
||
52 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
53 | <fileset dir="." includes=".keystore"/> |
||
54 | </copy>
|
||
55 | 5624 | cesar | <move todir="${extensionsDir}/${mainplugin}/lib"> |
56 | <!-- <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> -->
|
||
57 | 4886 | jorpiell | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
58 | </move>
|
||
59 | 5624 | cesar | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
60 | <fileset dir="${dist}" includes="${remoteclientjar}"/> |
||
61 | </copy>
|
||
62 | <move todir="${extensionsDir}/${plugin}/"> |
||
63 | 4886 | jorpiell | <fileset dir="${dist}" includes="**/**"/> |
64 | </move>
|
||
65 | 6083 | jorpiell | <copy todir="${extensionsDir}/${plugin}/images"> |
66 | 5624 | cesar | <fileset dir="images/" includes="*"/> |
67 | 5854 | jorpiell | </copy>
|
68 | 4886 | jorpiell | </target>
|
69 | |||
70 | 5624 | cesar | <target name="batch-build" |
71 | description="compile the sources, create the jar file" |
||
72 | depends="compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
||
73 | </target>
|
||
74 | 4886 | jorpiell | |
75 | 5624 | cesar | <target name="compile" description="compile the source" > |
76 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
77 | <mkdir dir="${build}" /> |
||
78 | <javac srcdir="${src}" |
||
79 | destdir="${build}" |
||
80 | 6297 | cesar | debug="${debug}" |
81 | debuglevel="${debuglevel}" |
||
82 | 5624 | cesar | classpath="${compile-classpath}"/> |
83 | </target>
|
||
84 | |||
85 | <target name="create-jar" |
||
86 | description="Creates the plugin jar"> |
||
87 | <mkdir dir="${dist}/lib"/> |
||
88 | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
||
89 | excludes="com/iver/cit/gvsig/fmap/**" |
||
90 | />
|
||
91 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
||
92 | includes="com/iver/cit/gvsig/fmap/**" /> |
||
93 | </target>
|
||
94 | 4886 | jorpiell | |
95 | 5624 | cesar | <target name="copy-data-files"> |
96 | <copy file="config/config.xml" todir="${dist}"/> |
||
97 | <copy todir="${dist}"> |
||
98 | <fileset dir="config" includes="text*.properties"/> |
||
99 | </copy>
|
||
100 | <copy todir="${dist}/images"> |
||
101 | <fileset dir="images/" includes="*"/> |
||
102 | </copy>
|
||
103 | </target>
|
||
104 | |||
105 | <target name="copy-libs"> |
||
106 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
107 | <fileset file="${remoteclientjar}"/> |
||
108 | </copy>
|
||
109 | </target>
|
||
110 | |||
111 | <target name="move-to-andami"> |
||
112 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
113 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
114 | </copy>
|
||
115 | <move todir="${extensionsDir}/${mainplugin}/lib"> |
||
116 | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
||
117 | </move>
|
||
118 | <move todir="${extensionsDir}/${plugin}/"> |
||
119 | <fileset dir="${dist}" includes="**/**"/> |
||
120 | </move>
|
||
121 | </target>
|
||
122 | |||
123 | 4886 | jorpiell | <target name="clean" |
124 | description="clean up" > |
||
125 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
126 | <delete dir="${dist}"/> |
||
127 | 5624 | cesar | <delete dir="${build}"/> |
128 | 4886 | jorpiell | </target>
|
129 | </project>
|