Revision 9524 branches/piloto3d/libraries/libFMap/build.xml
build.xml | ||
---|---|---|
1 | 1 |
<project name="FMap" default="generar-todos" basedir="."> |
2 | 2 |
<description> |
3 |
Instala el plugin.
|
|
3 |
Instala el plugin |
|
4 | 4 |
</description> |
5 | 5 |
<!-- set global properties for this build --> |
6 | 6 |
<property name="src" location="src"/> |
7 | 7 |
<property name="build" location="bin"/> |
8 |
<property name="src-test" location="src-test"/> |
|
9 |
<property name="build-test" location="bin-test"/> |
|
8 | 10 |
<property name="lib" location="lib"/> |
9 |
<property name="andamiLibs" location="../_fwAndami/lib"/> |
|
10 | 11 |
<property name="drivers-dir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers" /> |
11 | 12 |
<property name="writers-dir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers" /> |
12 | 13 |
<property name="build-doc" value="build-doc"/> |
13 |
<property name="compile-classpath" value="${lib}/batik-awt-util.jar:${andamiLibs}/castor-0.9.5.3-xml.jar:${lib}/cms.jar:${lib}/driver-manager-1.1.jar:${lib}/geoapi-2.0.jar:${lib}/gt2sidx.jar:${andamiLibs}/iver-utiles.jar:${lib}/units-0.01.jar:${lib}/gt2-main.jar:${lib}/gt2-postgis.jar:${lib}/gt2-wfs.jar:${lib}/gt2-legacy.jar:${lib}/gt2-wms.jar:${lib}/hsqldb.jar:${lib}/jts-1.7.jar:${lib}/jecw.jar:${lib}/gdbms-0.8-SNAPSHOT.jar:${andamiLibs}/log4j-1.2.8.jar:${lib}/wmsclient.jar:${lib}/mysql-connector-java-3.1.7-bin.jar:${lib}/postgis-jdbc-driver.jar:${lib}/postgresql-74.213.jar:${lib}/spatialindex.jar:${lib}/vecmath-1.3.jar" /> |
|
14 | 14 |
<property name="jarName" value="fmap.jar"/> |
15 |
<import file="compile-classpath.xml"/> |
|
15 | 16 |
|
16 | 17 |
<target name="init"> |
17 | 18 |
<!-- Create the time stamp --> |
18 | 19 |
<tstamp /> |
20 |
<echo> |
|
21 |
Compiling ${ant.project.name}...</echo> |
|
19 | 22 |
</target> |
20 | 23 |
|
21 | 24 |
<target name="build-doc" depends="" description="Genera la documentación"> |
... | ... | |
96 | 99 |
|
97 | 100 |
<target name="batch-build" |
98 | 101 |
description="compile the sources, create the jar file" |
99 |
depends="compile,create-jar,copy-data-files,generar-todos"> |
|
102 |
depends="init,compile,create-jar,copy-data-files,generar-todos">
|
|
100 | 103 |
</target> |
101 | 104 |
|
102 | 105 |
<target name="compile" description="compile the source" > |
... | ... | |
108 | 111 |
target="1.4" |
109 | 112 |
debug="${debug}" |
110 | 113 |
debuglevel="${debuglevel}" |
111 |
classpath="${compile-classpath}"/> |
|
114 |
excludes="com/iver/cit/gvsig/fmap/spatialindex/*Test*.java"> |
|
115 |
<classpath refid="libFMap.compile-classpath"/> |
|
116 |
</javac> |
|
112 | 117 |
</target> |
113 |
|
|
118 |
|
|
119 |
<target name="compile-test" description="compile the source of test" depends="compile"> |
|
120 |
<!-- Compile the Java code from ${src-test} to ${build-test} --> |
|
121 |
<mkdir dir="${build-test}" /> |
|
122 |
<javac srcdir="${src-test}" |
|
123 |
destdir="${build-test}" |
|
124 |
source="1.4" |
|
125 |
target="1.4" |
|
126 |
debug="${debug}" |
|
127 |
debuglevel="${debuglevel}"> |
|
128 |
<classpath refid="libFMap.compile-classpath"/> |
|
129 |
</javac> |
|
130 |
</target> |
|
114 | 131 |
<target name="create-jar" |
115 | 132 |
description="Creates the plugin jar"> |
116 | 133 |
<jar jarfile="${lib}/${jarName}" basedir="${build}"/> |
... | ... | |
131 | 148 |
</delete> |
132 | 149 |
</target> |
133 | 150 |
|
134 |
</project> |
|
151 |
<target name="test" description="Run the test suite" depends="compile-test,generar-todos"> |
|
152 |
<junit |
|
153 |
fork="yes" |
|
154 |
printsummary="yes" |
|
155 |
haltonfailure="yes" |
|
156 |
> |
|
157 |
<formatter type="plain" usefile="no"/> |
|
158 |
<classpath refid="libFMap.compile-classpath"/> |
|
159 |
<classpath> |
|
160 |
<pathelement location="${build}"/> |
|
161 |
<pathelement location="${build-test}"/> |
|
162 |
</classpath> |
|
163 |
<test name="com.iver.cit.gvsig.fmap.AllTests"/> |
|
164 |
</junit> |
|
165 |
</target> |
|
166 |
|
|
167 |
|
|
168 |
</project> |
Also available in: Unified diff