svn-gvsig-desktop / tags / v1_0_2_Build_900 / libraries / libFMap / build.xml @ 10562
History | View | Annotate | Download (6.33 KB)
1 |
<project name="FMap" default="generar-todos" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<property name="src" location="src"/> |
7 |
<property name="build" location="bin"/> |
8 |
<property name="src-test" location="src-test"/> |
9 |
<property name="build-test" location="bin-test"/> |
10 |
<property name="lib" location="lib"/> |
11 |
<property name="drivers-dir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers" /> |
12 |
<property name="writers-dir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers" /> |
13 |
<property name="build-doc" value="build-doc"/> |
14 |
<property name="jarName" value="fmap.jar"/> |
15 |
<import file="compile-classpath.xml"/> |
16 |
|
17 |
<target name="init"> |
18 |
<!-- Create the time stamp -->
|
19 |
<tstamp /> |
20 |
<echo>
|
21 |
Compiling ${ant.project.name}...</echo>
|
22 |
</target>
|
23 |
|
24 |
<target name="build-doc" depends="" description="Genera la documentación"> |
25 |
<javadoc
|
26 |
packagenames="com.iver.cit.gvsig.fmap.*" |
27 |
sourcepath="src" |
28 |
defaultexcludes="yes" |
29 |
destdir="${build-doc}/fmap-api" |
30 |
windowtitle="fmap API"> |
31 |
</javadoc>
|
32 |
</target>
|
33 |
|
34 |
|
35 |
<target name="generar-todos" depends="init, shp, dbf, dgn, dxf, raster, gml, shpwriter, dxfwriter, dbfwriter, gmlwriter" description="Genera los jars de todos los drivers "> |
36 |
</target>
|
37 |
|
38 |
<target name="shp" depends="" description="Genera el jar de shp"> |
39 |
<mkdir dir="${drivers-dir}/shp" /> |
40 |
<jar jarfile="${drivers-dir}/shp/shp.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/shp/**" /> |
41 |
</target>
|
42 |
<target name="dbf" depends="" description="Genera el jar del dbf"> |
43 |
<mkdir dir="${drivers-dir}/dbf" /> |
44 |
<jar jarfile="${drivers-dir}/dbf/dbf.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/dbf/**" /> |
45 |
</target>
|
46 |
|
47 |
<target name="dgn" depends="" description="Genera el jar de dgn"> |
48 |
<mkdir dir="${drivers-dir}/dgn" /> |
49 |
<jar jarfile="${drivers-dir}/dgn/dgn.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/dgn/**" /> |
50 |
</target>
|
51 |
|
52 |
<target name="dxf" depends="" description="Genera el jar de dxf"> |
53 |
<mkdir dir="${drivers-dir}/dxf" /> |
54 |
<jar jarfile="${drivers-dir}/dxf/dxf.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/dxf/**" /> |
55 |
</target>
|
56 |
|
57 |
|
58 |
<target name="wfs" depends="" description="Genera el jar de wfs"> |
59 |
<mkdir dir="${drivers-dir}/wfs" /> |
60 |
<jar jarfile="${drivers-dir}/wfs/wfs.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/wfs/**"/> |
61 |
</target>
|
62 |
|
63 |
<target name="raster" depends="" description="Genera el jar de ecw,jpg,tif, etc"> |
64 |
<mkdir dir="${drivers-dir}/raster" /> |
65 |
<jar jarfile="${drivers-dir}/raster/raster.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/raster/**" /> |
66 |
</target>
|
67 |
|
68 |
<target name="gml" depends="" description="Genera el jar de gml"> |
69 |
<mkdir dir="${drivers-dir}/gml" /> |
70 |
<jar jarfile="${drivers-dir}/gml/gml.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/gml/**" /> |
71 |
</target>
|
72 |
|
73 |
<target name="jdbc" depends="" description="Genera el jar jdbc"> |
74 |
<mkdir dir="${drivers-dir}/jdbc" /> |
75 |
<jar jarfile="${drivers-dir}/jdbc/jdbc.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/jdbc/**" /> |
76 |
</target>
|
77 |
<target name="arcsde" depends="" description="Genera el jar sde"> |
78 |
<mkdir dir="${drivers-dir}/arcsde" /> |
79 |
<jar jarfile="${drivers-dir}/arcsde/arcsde.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/arcsde/**" /> |
80 |
</target>
|
81 |
<target name="shpwriter" depends="" description="Genera el jar de shp writer"> |
82 |
<mkdir dir="${writers-dir}/shp" /> |
83 |
<jar jarfile="${writers-dir}/shp/shpWriter.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/edition/writers/shp/**" /> |
84 |
</target>
|
85 |
<target name="dxfwriter" depends="" description="Genera el jar de dxf writer"> |
86 |
<mkdir dir="${writers-dir}/dxf" /> |
87 |
<jar jarfile="${writers-dir}/dxf/dxfWriter.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/edition/writers/dxf/**" /> |
88 |
</target>
|
89 |
|
90 |
<target name="dbfwriter" depends="" description="Genera el jar de dbf writer"> |
91 |
<mkdir dir="${writers-dir}/dbf" /> |
92 |
<jar jarfile="${writers-dir}/dbf/dbfWriter.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/edition/writers/dbf/**" /> |
93 |
</target>
|
94 |
|
95 |
<target name="gmlwriter" depends="" description="Genera el jar de gml writer"> |
96 |
<mkdir dir="${writers-dir}/gml" /> |
97 |
<jar jarfile="${writers-dir}/gml/gmlWriter.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/edition/writers/gml/**" /> |
98 |
</target>
|
99 |
|
100 |
<target name="batch-build" |
101 |
description="compile the sources, create the jar file" |
102 |
depends="init,compile,create-jar,copy-data-files,generar-todos"> |
103 |
</target>
|
104 |
|
105 |
<target name="compile" description="compile the source" > |
106 |
<!-- Compile the Java code from ${src} to ${build} -->
|
107 |
<mkdir dir="${build}" /> |
108 |
<javac srcdir="${src}" |
109 |
destdir="${build}" |
110 |
source="1.4" |
111 |
target="1.4" |
112 |
debug="${debug}" |
113 |
debuglevel="${debuglevel}" |
114 |
excludes="com/iver/cit/gvsig/fmap/spatialindex/*Test*.java"> |
115 |
<classpath refid="libFMap.compile-classpath"/> |
116 |
</javac>
|
117 |
</target>
|
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>
|
131 |
<target name="create-jar" |
132 |
description="Creates the plugin jar"> |
133 |
<jar jarfile="${lib}/${jarName}" basedir="${build}"/> |
134 |
</target>
|
135 |
|
136 |
<target name="copy-data-files" description="copy images"> |
137 |
<copy todir="${build}/com/iver/cit/gvsig/fmap/images"> |
138 |
<fileset dir="${src}/com/iver/cit/gvsig/fmap/images" includes="*"/> |
139 |
</copy>
|
140 |
</target>
|
141 |
|
142 |
<target name="clean" description="clean up" > |
143 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
144 |
<delete dir="${build}"/> |
145 |
<delete dir="${dist}"/> |
146 |
<delete>
|
147 |
<fileset dir="${lib}" includes="fmap.jar"/> |
148 |
</delete>
|
149 |
</target>
|
150 |
|
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>
|