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