svn-gvsig-desktop / tags / v1_9_Build_1253 / extensions / extGPE-gvSIG / build.xml @ 45449
History | View | Annotate | Download (5.58 KB)
1 |
<project name="extGPE-gvSIG" default="generate-without-source" basedir="."> |
---|---|
2 |
<description>
|
3 |
It installs the GPE driver in gvSIGi |
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="org.gvsig.gpe"/> |
12 |
<property name="gvsiglibjar" value="gvsig-gpe"/> |
13 |
<property name="driverjar" value="gpe"/> |
14 |
<property name="andami" location="../_fwAndami"/> |
15 |
<property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
16 |
<property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers" /> |
17 |
<property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/> |
18 |
<property name="fmapLibs" location="../libFMap/lib" /> |
19 |
<property name="remoteclientjar" value="${fmapLibs}/remote-clients.jar"/> |
20 |
<property name="andamiLibs" location="${andami}/lib" /> |
21 |
<property name="andamiJar" location="${andami}/andami.jar"/> |
22 |
<property name="gvsigLibs" location="../appgvSIG/lib"/> |
23 |
<property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
24 |
|
25 |
<property name="gpefmapjar" value="org.gvsig.fmap.drivers.gpe.jar"/> |
26 |
<property name="gpeuijar" value="org.gvsig.gpe.gui.jar"/> |
27 |
|
28 |
<property name="libGPE.dir" location="../libGPE"/> |
29 |
<property name="libGPE-XML.dir" location="../libGPE-XML"/> |
30 |
<property name="libGPE-GML.dir" location="../libGPE-GML"/> |
31 |
<property name="libGPE-KML.dir" location="../libGPE-KML"/> |
32 |
<import file="../binaries/ant/utilities.xml"/> |
33 |
|
34 |
|
35 |
<target name="init"> |
36 |
<!-- Create the time stamp -->
|
37 |
<tstamp/> |
38 |
<echo>
|
39 |
Compiling ${ant.project.name}...</echo>
|
40 |
<!-- Create the build directory structure used by compile -->
|
41 |
<mkdir dir="${dist}"/> |
42 |
<mkdir dir="${dist}/lib"/> |
43 |
</target>
|
44 |
|
45 |
<target name="import-build-number"> |
46 |
<copy todir="."> |
47 |
<fileset file="${buildNumberFile}"/> |
48 |
</copy>
|
49 |
</target>
|
50 |
|
51 |
<target name="buildNumber"> |
52 |
<propertyfile file="build.number" |
53 |
comment="Build Number for ANT. Do not edit!"> |
54 |
<entry key="build.number" default="0" type="int" operation="+" /> |
55 |
</propertyfile>
|
56 |
<property file="build.number" /> |
57 |
</target>
|
58 |
|
59 |
<target name="generate-without-source" |
60 |
description="generate the distribution without the source file" |
61 |
depends="init,update-libs,create-jar,copy-data-files,copy-libs,move-to-andami"> |
62 |
</target>
|
63 |
|
64 |
<target name="distribution" description="Creates a new distribution" |
65 |
depends="buildNumber,generate-without-source"/> |
66 |
|
67 |
<target name="batch-build" |
68 |
description="compile the sources, create the jar file" |
69 |
depends="init,update-libs,compile,create-jar,copy-data-files,copy-libs,move-to-andami"> |
70 |
</target>
|
71 |
|
72 |
<target name="compile" description="compile the source" > |
73 |
<!-- Compile the Java code from ${src} to ${build} -->
|
74 |
<antcall target="gvSIG-import-build-number"/> |
75 |
<mkdir dir="${build}" /> |
76 |
<loadEclipseClasspath project="${basedir}"/> |
77 |
<gvSIG-javac
|
78 |
classpath="${eclipseClasspath}" |
79 |
/>
|
80 |
|
81 |
</target>
|
82 |
|
83 |
<target name="create-jar" |
84 |
description="Creates the plugin jar"> |
85 |
<jar jarfile="${dist}/lib/${gpeuijar}" basedir="${build}" includes="org/gvsig/gpe/**,org/gvsig/fmap/drivers/gpe/writer/**"/> |
86 |
<jar jarfile="${dist}/lib/${gpefmapjar}" basedir="${build}" includes="org/gvsig/fmap/**" excludes="org/gvsig/fmap/drivers/gpe/writer/**"/> |
87 |
</target>
|
88 |
|
89 |
<target name="copy-data-files"> |
90 |
<copy file="config/config.xml" todir="${dist}"/> |
91 |
<copy file="config/parser.properties" todir="${dist}"/> |
92 |
<copy file="config/writer.properties" todir="${dist}"/> |
93 |
<copy file="config/about.htm" todir="${dist}"/> |
94 |
<copy todir="${dist}"> |
95 |
<fileset dir="config" includes="text*.properties"/> |
96 |
</copy>
|
97 |
<!--Copy the build number-->
|
98 |
<loadproperties srcFile="build.number"/> |
99 |
<replace casesensitive="true" |
100 |
file="${dist}/about.htm" |
101 |
token="#build.number#" |
102 |
value="${build.number}"/> |
103 |
|
104 |
<mkdir dir="${dist}/images"/> |
105 |
<copy todir="${dist}/images"> |
106 |
<fileset dir="images/" includes="*"/> |
107 |
</copy>
|
108 |
|
109 |
</target>
|
110 |
|
111 |
<target name="copy-libs"> |
112 |
<move file ="${dist}/lib/${gpeuijar}" todir="${extensionsDir}/${plugin}/lib"/> |
113 |
<move file ="${dist}/lib/${gpefmapjar}" todir="${lib-dir}"/> |
114 |
<copy todir="${lib-dir}"> |
115 |
<fileset dir="lib"/> |
116 |
</copy>
|
117 |
</target>
|
118 |
|
119 |
<target name="move-to-andami"> |
120 |
<move todir="${extensionsDir}/${plugin}/"> |
121 |
<fileset dir="${dist}" includes="**/**"/> |
122 |
</move>
|
123 |
</target>
|
124 |
|
125 |
<target name="update-libs"> |
126 |
<copy failonerror="no" todir="./lib" overwrite="true"> |
127 |
<fileset dir="${libGPE.dir}/lib" includes="*.jar"></fileset> |
128 |
</copy>
|
129 |
|
130 |
<copy failonerror="no" todir="./lib" overwrite="true"> |
131 |
<fileset dir="${libGPE-XML.dir}/lib" includes="*.jar"></fileset> |
132 |
</copy>
|
133 |
|
134 |
<copy failonerror="no" todir="./lib" overwrite="true"> |
135 |
<fileset dir="${libGPE-GML.dir}/lib" includes="org.gvsig.gpe.gml.jar"></fileset> |
136 |
</copy>
|
137 |
|
138 |
<copy failonerror="no" todir="./lib" overwrite="true"> |
139 |
<fileset dir="${libGPE-KML.dir}/lib" includes="org.gvsig.gpe.kml.jar"></fileset> |
140 |
</copy>
|
141 |
|
142 |
</target>
|
143 |
|
144 |
<target name="clean" |
145 |
description="clean up" > |
146 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
147 |
<delete dir="${dist}"/> |
148 |
<delete dir="${build}"/> |
149 |
</target>
|
150 |
|
151 |
<target name="run-tests" depends="batch-build,compile-tests"> |
152 |
<!-- <antcall target="generic-run-tests">
|
153 |
<param name="TestSuite.Name" value="org.gvsig.georeferencing.AllTests"/>
|
154 |
</antcall> -->
|
155 |
</target>
|
156 |
</project>
|
157 |
|