svn-gvsig-desktop / tags / v1_11_0_Build_1303 / extensions / extWFS2 / build.xml @ 45573
History | View | Annotate | Download (5.38 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="extGPELibs" location="../extGPE-gvSIG/lib" /> |
21 |
<property name="extGPEsrc" location="../extGPE-gvSIG/src" /> |
22 |
<property name="extGPEbin" location="../extGPE-gvSIG/bin" /> |
23 |
<property name="extCADbin" location="../extCAD/bin" /> |
24 |
<property name="remoteclientjar" value="${fmapLibs}/remote-clients.jar"/> |
25 |
<property name="andamiLibs" location="${andami}/lib" /> |
26 |
<property name="andamiJar" location="${andami}/andami.jar"/> |
27 |
<property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
28 |
<import file="../binaries/ant/utilities.xml"/> |
29 |
|
30 |
|
31 |
<target name="init"> |
32 |
<!-- Create the time stamp -->
|
33 |
<tstamp/> |
34 |
<echo>
|
35 |
Compiling ${ant.project.name}...</echo>
|
36 |
<!-- Create the build directory structure used by compile -->
|
37 |
<mkdir dir="${dist}"/> |
38 |
|
39 |
</target>
|
40 |
|
41 |
<target name="import-build-number"> |
42 |
<copy todir="."> |
43 |
<fileset file="${buildNumberFile}"/> |
44 |
</copy>
|
45 |
</target>
|
46 |
|
47 |
|
48 |
<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 |
<copy file="build.number" todir="${dist}"/> |
62 |
<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 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
70 |
<!-- <fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> -->
|
71 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
72 |
</move>
|
73 |
<copy todir="${extensionsDir}/${mainplugin}/lib"> |
74 |
<fileset dir="${dist}" includes="${remoteclientjar}"/> |
75 |
</copy>
|
76 |
<move todir="${extensionsDir}/${plugin}/"> |
77 |
<fileset dir="${dist}" includes="**/**"/> |
78 |
</move>
|
79 |
<copy todir="${extensionsDir}/${plugin}/images"> |
80 |
<fileset dir="images/" includes="*"/> |
81 |
</copy>
|
82 |
</target>
|
83 |
|
84 |
<target name="batch-build" |
85 |
description="compile the sources, create the jar file" |
86 |
depends="init,compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
87 |
</target>
|
88 |
|
89 |
<target name="compile" description="compile the source" > |
90 |
<!-- Compile the Java code from ${src} to ${build} -->
|
91 |
<mkdir dir="${build}" /> |
92 |
<loadEclipseClasspath project="${basedir}"/> |
93 |
<gvSIG-javac
|
94 |
classpath="${eclipseClasspath}" |
95 |
/>
|
96 |
|
97 |
</target>
|
98 |
|
99 |
<target name="create-jar" |
100 |
description="Creates the plugin jar"> |
101 |
<mkdir dir="${dist}/lib"/> |
102 |
<jar jarfile="${dist}/lib/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
103 |
excludes="com/iver/cit/gvsig/fmap/**" |
104 |
/>
|
105 |
<jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
106 |
includes="com/iver/cit/gvsig/fmap/**" /> |
107 |
</target>
|
108 |
|
109 |
<target name="copy-data-files" depends="make-package-info"> |
110 |
<copy file="config/config.xml" todir="${dist}"/> |
111 |
<copy file="build.number" todir="${dist}"/> |
112 |
<copy file="package.info" todir="${dist}"/> |
113 |
<copy todir="${dist}"> |
114 |
<fileset dir="config" includes="text*.properties"/> |
115 |
</copy>
|
116 |
<copy todir="${dist}/images"> |
117 |
<fileset dir="images/" includes="*"/> |
118 |
</copy>
|
119 |
</target>
|
120 |
|
121 |
<target name="copy-libs"> |
122 |
<copy todir="${extensionsDir}/${mainplugin}/lib"> |
123 |
<fileset file="${remoteclientjar}"/> |
124 |
</copy>
|
125 |
</target>
|
126 |
|
127 |
<target name="move-to-andami"> |
128 |
<copy todir="${extensionsDir}/${mainplugin}/lib"> |
129 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
130 |
</copy>
|
131 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
132 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
133 |
</move>
|
134 |
<move todir="${extensionsDir}/${plugin}/"> |
135 |
<fileset dir="${dist}" includes="**/**"/> |
136 |
</move>
|
137 |
</target>
|
138 |
|
139 |
<target name="clean" |
140 |
description="clean up" > |
141 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
142 |
<delete dir="${dist}"/> |
143 |
<delete dir="${build}"/> |
144 |
</target>
|
145 |
|
146 |
<target name="run-tests" depends="batch-build,compile-tests"> |
147 |
<antcall target="generic-run-tests"> |
148 |
<param name="TestSuite.Name" value="org.gvsig.georeferencing.AllTests"/> |
149 |
</antcall>
|
150 |
</target>
|
151 |
</project>
|
152 |
|