root / tags / v1_1_Build_1013 / extensions / extWFS2 / build.xml @ 13521
History | View | Annotate | Download (5.63 KB)
1 | 7219 | cesar | <project name="extWFS2" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | 4886 | jorpiell | <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 | 9320 | jmvivo | <property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${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:${lib}/zql.jar:${andamiLibs}/kxml2.jar" /> |
25 | 10565 | jmvivo | <property name="JavaSourceVersion" value="1.4"/> |
26 | <property name="JavaTargetVersion" value="1.4"/> |
||
27 | 12479 | cesar | <property name="encoding" value="ISO_8859_1"/> |
28 | 12975 | cesar | <property name="debug" value="on"/> |
29 | <property name="debuglevel" value="lines, vars"/> |
||
30 | 10565 | jmvivo | |
31 | 4886 | jorpiell | <target name="init"> |
32 | <!-- Create the time stamp -->
|
||
33 | <tstamp/> |
||
34 | 7219 | cesar | <echo>
|
35 | 7355 | jorpiell | Compiling ${ant.project.name}...</echo>
|
36 | 4886 | jorpiell | <!-- Create the build directory structure used by compile -->
|
37 | <mkdir dir="${dist}"/> |
||
38 | |||
39 | </target>
|
||
40 | |||
41 | 10185 | jmvivo | <target name="import-build-number"> |
42 | <copy todir="."> |
||
43 | <fileset file="${buildNumberFile}"/> |
||
44 | </copy>
|
||
45 | </target>
|
||
46 | |||
47 | |||
48 | 4886 | jorpiell | <target name="generate-without-source" |
49 | description="generate the distribution without the source file"> |
||
50 | <!-- Create the distribution directory -->
|
||
51 | <mkdir dir="${dist}"/> |
||
52 | <mkdir dir="${dist}/lib"/> |
||
53 | <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||
54 | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
||
55 | excludes="com/iver/cit/gvsig/fmap/**" |
||
56 | />
|
||
57 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
||
58 | includes="com/iver/cit/gvsig/fmap/**" /> |
||
59 | <!-- excludes="com/iver/cit/gvsig/fmap/drivers/wms/**" />-->
|
||
60 | <copy file="config/config.xml" todir="${dist}"/> |
||
61 | 10185 | jmvivo | <copy file="build.number" todir="${dist}"/> |
62 | 4886 | jorpiell | <copy todir="${dist}"> |
63 | <fileset dir="config" includes="text*.properties"/> |
||
64 | </copy>
|
||
65 | <copy todir="${lib-dir}"> |
||
66 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
67 | <fileset dir="." includes=".keystore"/> |
||
68 | </copy>
|
||
69 | 5624 | cesar | <move todir="${extensionsDir}/${mainplugin}/lib"> |
70 | <!-- <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> -->
|
||
71 | 4886 | jorpiell | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
72 | </move>
|
||
73 | 5624 | cesar | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
74 | <fileset dir="${dist}" includes="${remoteclientjar}"/> |
||
75 | </copy>
|
||
76 | <move todir="${extensionsDir}/${plugin}/"> |
||
77 | 4886 | jorpiell | <fileset dir="${dist}" includes="**/**"/> |
78 | </move>
|
||
79 | 6083 | jorpiell | <copy todir="${extensionsDir}/${plugin}/images"> |
80 | 5624 | cesar | <fileset dir="images/" includes="*"/> |
81 | 5854 | jorpiell | </copy>
|
82 | 4886 | jorpiell | </target>
|
83 | |||
84 | 5624 | cesar | <target name="batch-build" |
85 | description="compile the sources, create the jar file" |
||
86 | 7219 | cesar | depends="init,compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
87 | 5624 | cesar | </target>
|
88 | 4886 | jorpiell | |
89 | 5624 | cesar | <target name="compile" description="compile the source" > |
90 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
91 | <mkdir dir="${build}" /> |
||
92 | <javac srcdir="${src}" |
||
93 | destdir="${build}" |
||
94 | 10565 | jmvivo | source="${JavaSourceVersion}" |
95 | target="${JavaTargetVersion}" |
||
96 | 6297 | cesar | debug="${debug}" |
97 | debuglevel="${debuglevel}" |
||
98 | 12479 | cesar | classpath="${compile-classpath}" |
99 | encoding="${encoding}"/> |
||
100 | 5624 | cesar | </target>
|
101 | |||
102 | <target name="create-jar" |
||
103 | description="Creates the plugin jar"> |
||
104 | <mkdir dir="${dist}/lib"/> |
||
105 | <jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
||
106 | excludes="com/iver/cit/gvsig/fmap/**" |
||
107 | />
|
||
108 | <jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
||
109 | includes="com/iver/cit/gvsig/fmap/**" /> |
||
110 | </target>
|
||
111 | 4886 | jorpiell | |
112 | 5624 | cesar | <target name="copy-data-files"> |
113 | <copy file="config/config.xml" todir="${dist}"/> |
||
114 | 10185 | jmvivo | <copy file="build.number" todir="${dist}"/> |
115 | 5624 | cesar | <copy todir="${dist}"> |
116 | <fileset dir="config" includes="text*.properties"/> |
||
117 | </copy>
|
||
118 | <copy todir="${dist}/images"> |
||
119 | <fileset dir="images/" includes="*"/> |
||
120 | </copy>
|
||
121 | </target>
|
||
122 | |||
123 | <target name="copy-libs"> |
||
124 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
125 | <fileset file="${remoteclientjar}"/> |
||
126 | </copy>
|
||
127 | </target>
|
||
128 | |||
129 | <target name="move-to-andami"> |
||
130 | <copy todir="${extensionsDir}/${mainplugin}/lib"> |
||
131 | <fileset dir="./lib" includes="*.jar,*.zip"/> |
||
132 | </copy>
|
||
133 | <move todir="${extensionsDir}/${mainplugin}/lib"> |
||
134 | <fileset dir="${dist}" includes="${fmapjar}.jar"/> |
||
135 | </move>
|
||
136 | <move todir="${extensionsDir}/${plugin}/"> |
||
137 | <fileset dir="${dist}" includes="**/**"/> |
||
138 | </move>
|
||
139 | </target>
|
||
140 | |||
141 | 4886 | jorpiell | <target name="clean" |
142 | description="clean up" > |
||
143 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
144 | <delete dir="${dist}"/> |
||
145 | 5624 | cesar | <delete dir="${build}"/> |
146 | 4886 | jorpiell | </target>
|
147 | </project>
|