svn-gvsig-desktop / trunk / extensions / extWFS2 / build.xml @ 13296
History | View | Annotate | Download (5.55 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="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
25 |
<!--<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${lib-dir}/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:${fmapLibs}/gvsig-exceptions.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" />-->
|
26 |
<import file="../binaries/ant/utilities.xml"/> |
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 file="build.number" todir="${dist}"/> |
52 |
<copy todir="${dist}"> |
53 |
<fileset dir="config" includes="text*.properties"/> |
54 |
</copy>
|
55 |
<copy todir="${lib-dir}"> |
56 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
57 |
<fileset dir="." includes=".keystore"/> |
58 |
</copy>
|
59 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
60 |
<!-- <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> -->
|
61 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
62 |
</move>
|
63 |
<copy todir="${extensionsDir}/${mainplugin}/lib"> |
64 |
<fileset dir="${dist}" includes="${remoteclientjar}"/> |
65 |
</copy>
|
66 |
<move todir="${extensionsDir}/${plugin}/"> |
67 |
<fileset dir="${dist}" includes="**/**"/> |
68 |
</move>
|
69 |
<copy todir="${extensionsDir}/${plugin}/images"> |
70 |
<fileset dir="images/" includes="*"/> |
71 |
</copy>
|
72 |
</target>
|
73 |
|
74 |
<target name="batch-build" |
75 |
description="compile the sources, create the jar file" |
76 |
depends="init,compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
77 |
</target>
|
78 |
|
79 |
<target name="compile" description="compile the source" > |
80 |
<!-- Compile the Java code from ${src} to ${build} -->
|
81 |
<antcall target="gvSIG-import-build-number"/> |
82 |
<mkdir dir="${build}" /> |
83 |
<loadEclipseClasspath project="${basedir}"/> |
84 |
<gvSIG-javac
|
85 |
classpath="${eclipseClasspath}" |
86 |
/>
|
87 |
<!--<javac srcdir="${src}"
|
88 |
destdir="${build}"
|
89 |
source="${JavaSourceVersion}"
|
90 |
target="${JavaTargetVersion}"
|
91 |
debug="${debug}"
|
92 |
debuglevel="${debuglevel}"
|
93 |
classpath="${compile-classpath}"
|
94 |
encoding="${encoding}"/>-->
|
95 |
</target>
|
96 |
|
97 |
<target name="create-jar" |
98 |
description="Creates the plugin jar"> |
99 |
<mkdir dir="${dist}/lib"/> |
100 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
101 |
excludes="com/iver/cit/gvsig/fmap/**" |
102 |
/>
|
103 |
<jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
104 |
includes="com/iver/cit/gvsig/fmap/**" /> |
105 |
</target>
|
106 |
|
107 |
<target name="copy-data-files"> |
108 |
<copy file="config/config.xml" todir="${dist}"/> |
109 |
<copy file="build.number" todir="${dist}"/> |
110 |
<copy todir="${dist}"> |
111 |
<fileset dir="config" includes="text*.properties"/> |
112 |
</copy>
|
113 |
<copy todir="${dist}/images"> |
114 |
<fileset dir="images/" includes="*"/> |
115 |
</copy>
|
116 |
</target>
|
117 |
|
118 |
<target name="copy-libs"> |
119 |
<copy todir="${extensionsDir}/${mainplugin}/lib"> |
120 |
<fileset file="${remoteclientjar}"/> |
121 |
</copy>
|
122 |
</target>
|
123 |
|
124 |
<target name="move-to-andami"> |
125 |
<copy todir="${extensionsDir}/${mainplugin}/lib"> |
126 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
127 |
</copy>
|
128 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
129 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
130 |
</move>
|
131 |
<move todir="${extensionsDir}/${plugin}/"> |
132 |
<fileset dir="${dist}" includes="**/**"/> |
133 |
</move>
|
134 |
</target>
|
135 |
|
136 |
<target name="clean" |
137 |
description="clean up" > |
138 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
139 |
<delete dir="${dist}"/> |
140 |
<delete dir="${build}"/> |
141 |
</target>
|
142 |
</project>
|
143 |
|