svn-gvsig-desktop / tags / v1_9_Build_1234 / extensions / extWMS / build.xml @ 43614
History | View | Annotate | Download (5.47 KB)
1 |
<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 |
<import file="../binaries/ant/utilities.xml"/> |
7 |
<property name="src" location="src"/> |
8 |
<property name="build" location="bin"/> |
9 |
<property name="src-test" location="test"/> |
10 |
<property name="build-test" location="bin-test"/> |
11 |
<property name="dist" location="dist"/> |
12 |
<property name="lib" location="lib" /> |
13 |
<property name="mainplugin" value="com.iver.cit.gvsig"/> |
14 |
<property name="plugin" value="com.iver.cit.gvsig.wms"/> |
15 |
<property name="gvsiglibjar" value="gvsig-wms"/> |
16 |
<property name="fmapjar" value="fmap-wms"/> |
17 |
<property name="driverjar" value="wms"/> |
18 |
<property name="andami" location="../_fwAndami"/> |
19 |
<property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
20 |
<property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers" /> |
21 |
<property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/> |
22 |
<property name="andamiLibs" location="${andami}/lib" /> |
23 |
<property name="andamiJar" location="${andami}/andami.jar"/> |
24 |
<property name="fmapLibs" location="../libFMap/lib" /> |
25 |
<property name="remoteclientjar" value="${fmapLibs}/remote-clients.jar"/> |
26 |
<property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
27 |
<property name="fmapJar" location="../libFMap/dist/lib/fmap.jar" /> |
28 |
<!--<property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${andamiLibs}/castor-0.9.5.3-xml.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapJar}:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${lib}/gt2-wms.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:${andamiLibs}/tempFileManager.jar" />-->
|
29 |
|
30 |
<target name="init"> |
31 |
<!-- Create the time stamp -->
|
32 |
<tstamp/> |
33 |
<!-- Create the build directory structure used by compile -->
|
34 |
<mkdir dir="${build}"/> |
35 |
<mkdir dir="${dist}"/> |
36 |
|
37 |
</target>
|
38 |
|
39 |
|
40 |
<target name="generate-without-source" |
41 |
description="generate the distribution without the source file"> |
42 |
<!-- Create the distribution directory -->
|
43 |
<mkdir dir="${dist}"/> |
44 |
|
45 |
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
46 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
47 |
excludes="com/iver/cit/gvsig/fmap/**" |
48 |
/>
|
49 |
<jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
50 |
includes="com/iver/cit/gvsig/fmap/**" /> |
51 |
<!-- excludes="com/iver/cit/gvsig/fmap/drivers/wms/**" />-->
|
52 |
<copy file="config/config.xml" todir="${dist}"/> |
53 |
<copy file="build.number" todir="${dist}"/> |
54 |
<copy todir="${dist}"> |
55 |
<fileset dir="config" includes="text*.properties"/> |
56 |
</copy>
|
57 |
<copy todir="${dist}/images"> |
58 |
<fileset dir="images/" includes="*"/> |
59 |
</copy>
|
60 |
<copy todir="${lib-dir}"> |
61 |
<fileset dir="./lib" includes="*.jar,*.zip"/> |
62 |
<fileset dir="." includes=".keystore"/> |
63 |
</copy>
|
64 |
<move todir="${extensionsDir}/${mainplugin}/lib"> |
65 |
<fileset dir="${dist}" includes="${gvsiglibjar}.jar"/> |
66 |
<fileset dir="${dist}" includes="${fmapjar}.jar"/> |
67 |
<fileset dir="${dist}" includes="${remoteclientjar}"/> |
68 |
</move>
|
69 |
<move todir="${extensionsDir}/${plugin}/"> |
70 |
<fileset dir="${dist}" includes="**/**"/> |
71 |
</move>
|
72 |
</target>
|
73 |
|
74 |
|
75 |
<target name="batch-build" |
76 |
description="compile the sources, create the jar file" |
77 |
depends="compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
78 |
</target>
|
79 |
|
80 |
<target name="compile" description="compile the source" > |
81 |
<!-- Compile the Java code from ${src} to ${build} -->
|
82 |
<antcall target="gvSIG-import-build-number"/> |
83 |
<mkdir dir="${build}" /> |
84 |
<loadEclipseClasspath project="${basedir}"/> |
85 |
<gvSIG-javac
|
86 |
classpath="${eclipseClasspath}"/> |
87 |
</target>
|
88 |
|
89 |
<target name="create-jar" |
90 |
description="Creates the plugin jar"> |
91 |
<mkdir dir="${dist}/lib"/> |
92 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" includes="com/iver/cit/gvsig/**" |
93 |
excludes="com/iver/cit/gvsig/fmap/**" |
94 |
/>
|
95 |
<jar jarfile="${dist}/${fmapjar}.jar" basedir="${build}" |
96 |
includes="com/iver/cit/gvsig/fmap/**" /> |
97 |
</target>
|
98 |
|
99 |
<target name="copy-data-files"> |
100 |
<copy file="config/config.xml" todir="${dist}"/> |
101 |
<copy file="build.number" 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 |
|
129 |
<target name="clean" |
130 |
description="clean up" > |
131 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
132 |
<delete dir="${dist}"/> |
133 |
<delete dir="${build}"/> |
134 |
</target>
|
135 |
|
136 |
<target name="run-tests" depends="batch-build,compile-tests"> |
137 |
<antcall target="generic-run-tests"> |
138 |
<param name="TestSuite.Name" value="com.iver.cit.gvsig.wms.AllTests"/> |
139 |
</antcall>
|
140 |
</target>
|
141 |
</project>
|
142 |
|