svn-gvsig-desktop / trunk / extensions / extWFS2 / build.xml @ 9667
History | View | Annotate | Download (5.23 KB)
1 |
<project name="extWFS2" 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="lib" location="lib"/> |
10 |
<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 |
<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="gvsigLibs" location="../appgvSIG/lib"/> |
24 |
<property name="fmapJar" location="${lib-dir}/fmap.jar"/> |
25 |
<property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
26 |
<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapJar}:${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}/kxml2.jar:${andamiLibs}/log4j-1.2.8.jar:${fmapLibs}/remote-clients.jar:${gvsigLibs}/zql.jar" /> |
27 |
|
28 |
<target name="init"> |
29 |
<!-- Create the time stamp -->
|
30 |
<tstamp/> |
31 |
<echo>
|
32 |
Compiling ${ant.project.name}...</echo>
|
33 |
<!-- Create the build directory structure used by compile -->
|
34 |
<mkdir dir="${dist}"/> |
35 |
|
36 |
</target>
|
37 |
|
38 |
<target name="generate-without-source" |
39 |
description="generate the distribution without the source file"> |
40 |
<!-- Create the distribution directory -->
|
41 |
<mkdir dir="${dist}"/> |
42 |
<mkdir dir="${dist}/lib"/> |
43 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
44 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
45 |
excludes="com/iver/cit/gvsig/fmap/**" |
46 |
/>
|
47 |
<jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
48 |
includes="com/iver/cit/gvsig/fmap/**" /> |
49 |
<!-- excludes="com/iver/cit/gvsig/fmap/drivers/wms/**" />-->
|
50 |
<copy file="config/config.xml" todir="${dist}"/> |
51 |
<copy todir="${dist}"> |
52 |
<fileset dir="config" includes="text*.properties"/> |
53 |
</copy>
|
54 |
<copy todir="${lib-dir}"> |
55 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
56 |
<fileset dir="." includes=".keystore"/> |
57 |
</copy>
|
58 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
59 |
<!-- <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> -->
|
60 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
61 |
</move>
|
62 |
<copy todir="${extensionsDir}/${mainplugin}/lib"> |
63 |
<fileset dir="${dist}" includes="${remoteclientjar}"/> |
64 |
</copy>
|
65 |
<move todir="${extensionsDir}/${plugin}/"> |
66 |
<fileset dir="${dist}" includes="**/**"/> |
67 |
</move>
|
68 |
<copy todir="${extensionsDir}/${plugin}/images"> |
69 |
<fileset dir="images/" includes="*"/> |
70 |
</copy>
|
71 |
</target>
|
72 |
|
73 |
<target name="batch-build" |
74 |
description="compile the sources, create the jar file" |
75 |
depends="init,compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
76 |
</target>
|
77 |
|
78 |
<target name="compile" description="compile the source" > |
79 |
<!-- Compile the Java code from ${src} to ${build} -->
|
80 |
<mkdir dir="${build}" /> |
81 |
<javac srcdir="${src}" |
82 |
destdir="${build}" |
83 |
source="1.4" |
84 |
target="1.4" |
85 |
debug="${debug}" |
86 |
debuglevel="${debuglevel}" |
87 |
classpath="${compile-classpath}"/> |
88 |
</target>
|
89 |
|
90 |
<target name="create-jar" |
91 |
description="Creates the plugin jar"> |
92 |
<mkdir dir="${dist}/lib"/> |
93 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
94 |
excludes="com/iver/cit/gvsig/fmap/**" |
95 |
/>
|
96 |
<jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
97 |
includes="com/iver/cit/gvsig/fmap/**" /> |
98 |
</target>
|
99 |
|
100 |
<target name="copy-data-files"> |
101 |
<copy file="config/config.xml" todir="${dist}"/> |
102 |
<copy todir="${dist}"> |
103 |
<fileset dir="config" includes="text*.properties"/> |
104 |
</copy>
|
105 |
<copy todir="${dist}/images"> |
106 |
<fileset dir="images/" includes="*"/> |
107 |
</copy>
|
108 |
</target>
|
109 |
|
110 |
<target name="copy-libs"> |
111 |
<copy todir="${extensionsDir}/${mainplugin}/lib"> |
112 |
<fileset file="${remoteclientjar}"/> |
113 |
</copy>
|
114 |
</target>
|
115 |
|
116 |
<target name="move-to-andami"> |
117 |
<copy todir="${extensionsDir}/${mainplugin}/lib"> |
118 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
119 |
</copy>
|
120 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
121 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
122 |
</move>
|
123 |
<move todir="${extensionsDir}/${plugin}/"> |
124 |
<fileset dir="${dist}" includes="**/**"/> |
125 |
</move>
|
126 |
</target>
|
127 |
|
128 |
<target name="clean" |
129 |
description="clean up" > |
130 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
131 |
<delete dir="${dist}"/> |
132 |
<delete dir="${build}"/> |
133 |
</target>
|
134 |
</project>
|
135 |
|