root / tags / v1_0_2_Build_902 / libraries / libFMap / build.xml @ 10681
History | View | Annotate | Download (6.46 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 |
<property name="JavaSourceVersion" value="1.4"/> |
17 |
<property name="JavaTargetVersion" value="1.4"/> |
18 |
|
19 |
<target name="init"> |
20 |
<!-- Create the time stamp -->
|
21 |
<tstamp /> |
22 |
<echo>
|
23 |
Compiling ${ant.project.name}...</echo>
|
24 |
</target>
|
25 |
|
26 |
<target name="build-doc" depends="" description="Genera la documentación"> |
27 |
<javadoc
|
28 |
packagenames="com.iver.cit.gvsig.fmap.*" |
29 |
sourcepath="src" |
30 |
defaultexcludes="yes" |
31 |
destdir="${build-doc}/fmap-api" |
32 |
windowtitle="fmap API"> |
33 |
</javadoc>
|
34 |
</target>
|
35 |
|
36 |
|
37 |
<target name="generar-todos" depends="init, shp, dbf, dgn, dxf, raster, gml, shpwriter, dxfwriter, dbfwriter, gmlwriter" description="Genera los jars de todos los drivers "> |
38 |
</target>
|
39 |
|
40 |
<target name="shp" depends="" description="Genera el jar de shp"> |
41 |
<mkdir dir="${drivers-dir}/shp" /> |
42 |
<jar jarfile="${drivers-dir}/shp/shp.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/shp/**" /> |
43 |
</target>
|
44 |
<target name="dbf" depends="" description="Genera el jar del dbf"> |
45 |
<mkdir dir="${drivers-dir}/dbf" /> |
46 |
<jar jarfile="${drivers-dir}/dbf/dbf.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/dbf/**" /> |
47 |
</target>
|
48 |
|
49 |
<target name="dgn" depends="" description="Genera el jar de dgn"> |
50 |
<mkdir dir="${drivers-dir}/dgn" /> |
51 |
<jar jarfile="${drivers-dir}/dgn/dgn.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/dgn/**" /> |
52 |
</target>
|
53 |
|
54 |
<target name="dxf" depends="" description="Genera el jar de dxf"> |
55 |
<mkdir dir="${drivers-dir}/dxf" /> |
56 |
<jar jarfile="${drivers-dir}/dxf/dxf.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/dxf/**" /> |
57 |
</target>
|
58 |
|
59 |
|
60 |
<target name="wfs" depends="" description="Genera el jar de wfs"> |
61 |
<mkdir dir="${drivers-dir}/wfs" /> |
62 |
<jar jarfile="${drivers-dir}/wfs/wfs.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/wfs/**"/> |
63 |
</target>
|
64 |
|
65 |
<target name="raster" depends="" description="Genera el jar de ecw,jpg,tif, etc"> |
66 |
<mkdir dir="${drivers-dir}/raster" /> |
67 |
<jar jarfile="${drivers-dir}/raster/raster.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/raster/**" /> |
68 |
</target>
|
69 |
|
70 |
<target name="gml" depends="" description="Genera el jar de gml"> |
71 |
<mkdir dir="${drivers-dir}/gml" /> |
72 |
<jar jarfile="${drivers-dir}/gml/gml.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/gml/**" /> |
73 |
</target>
|
74 |
|
75 |
<target name="jdbc" depends="" description="Genera el jar jdbc"> |
76 |
<mkdir dir="${drivers-dir}/jdbc" /> |
77 |
<jar jarfile="${drivers-dir}/jdbc/jdbc.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/jdbc/**" /> |
78 |
</target>
|
79 |
<target name="arcsde" depends="" description="Genera el jar sde"> |
80 |
<mkdir dir="${drivers-dir}/arcsde" /> |
81 |
<jar jarfile="${drivers-dir}/arcsde/arcsde.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/arcsde/**" /> |
82 |
</target>
|
83 |
<target name="shpwriter" depends="" description="Genera el jar de shp writer"> |
84 |
<mkdir dir="${writers-dir}/shp" /> |
85 |
<jar jarfile="${writers-dir}/shp/shpWriter.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/edition/writers/shp/**" /> |
86 |
</target>
|
87 |
<target name="dxfwriter" depends="" description="Genera el jar de dxf writer"> |
88 |
<mkdir dir="${writers-dir}/dxf" /> |
89 |
<jar jarfile="${writers-dir}/dxf/dxfWriter.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/edition/writers/dxf/**" /> |
90 |
</target>
|
91 |
|
92 |
<target name="dbfwriter" depends="" description="Genera el jar de dbf writer"> |
93 |
<mkdir dir="${writers-dir}/dbf" /> |
94 |
<jar jarfile="${writers-dir}/dbf/dbfWriter.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/edition/writers/dbf/**" /> |
95 |
</target>
|
96 |
|
97 |
<target name="gmlwriter" depends="" description="Genera el jar de gml writer"> |
98 |
<mkdir dir="${writers-dir}/gml" /> |
99 |
<jar jarfile="${writers-dir}/gml/gmlWriter.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/edition/writers/gml/**" /> |
100 |
</target>
|
101 |
|
102 |
<target name="batch-build" |
103 |
description="compile the sources, create the jar file" |
104 |
depends="init,compile,create-jar,copy-data-files,generar-todos"> |
105 |
</target>
|
106 |
|
107 |
<target name="compile" description="compile the source" > |
108 |
<!-- Compile the Java code from ${src} to ${build} -->
|
109 |
<mkdir dir="${build}" /> |
110 |
<javac srcdir="${src}" |
111 |
destdir="${build}" |
112 |
source="${JavaSourceVersion}" |
113 |
target="${JavaTargetVersion}" |
114 |
debug="${debug}" |
115 |
debuglevel="${debuglevel}" |
116 |
excludes="com/iver/cit/gvsig/fmap/spatialindex/*Test*.java"> |
117 |
<classpath refid="libFMap.compile-classpath"/> |
118 |
</javac>
|
119 |
</target>
|
120 |
|
121 |
<target name="compile-test" description="compile the source of test" depends="compile"> |
122 |
<!-- Compile the Java code from ${src-test} to ${build-test} -->
|
123 |
<mkdir dir="${build-test}" /> |
124 |
<javac srcdir="${src-test}" |
125 |
destdir="${build-test}" |
126 |
source="1.4" |
127 |
target="1.4" |
128 |
debug="${debug}" |
129 |
debuglevel="${debuglevel}"> |
130 |
<classpath refid="libFMap.compile-classpath"/> |
131 |
</javac>
|
132 |
</target>
|
133 |
<target name="create-jar" |
134 |
description="Creates the plugin jar"> |
135 |
<jar jarfile="${lib}/${jarName}" basedir="${build}"/> |
136 |
</target>
|
137 |
|
138 |
<target name="copy-data-files" description="copy images"> |
139 |
<copy todir="${build}/com/iver/cit/gvsig/fmap/images"> |
140 |
<fileset dir="${src}/com/iver/cit/gvsig/fmap/images" includes="*"/> |
141 |
</copy>
|
142 |
</target>
|
143 |
|
144 |
<target name="clean" description="clean up" > |
145 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
146 |
<delete dir="${build}"/> |
147 |
<delete dir="${dist}"/> |
148 |
<delete>
|
149 |
<fileset dir="${lib}" includes="fmap.jar"/> |
150 |
</delete>
|
151 |
</target>
|
152 |
|
153 |
<target name="test" description="Run the test suite" depends="compile-test,generar-todos"> |
154 |
<junit
|
155 |
fork="yes" |
156 |
printsummary="yes" |
157 |
haltonfailure="yes" |
158 |
>
|
159 |
<formatter type="plain" usefile="no"/> |
160 |
<classpath refid="libFMap.compile-classpath"/> |
161 |
<classpath>
|
162 |
<pathelement location="${build}"/> |
163 |
<pathelement location="${build-test}"/> |
164 |
</classpath>
|
165 |
<test name="com.iver.cit.gvsig.fmap.AllTests"/> |
166 |
</junit>
|
167 |
</target>
|
168 |
|
169 |
|
170 |
</project>
|