svn-gvsig-desktop / tags / v1_1_Build_1010 / libraries / libFMap / build.xml @ 12804
History | View | Annotate | Download (6.58 KB)
1 | 407 | fernando | <project name="FMap" default="generar-todos" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Instala el plugin |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | 4878 | cesar | <property name="src" location="src"/> |
7 | <property name="build" location="bin"/> |
||
8 | 8765 | jjdelcerro | <property name="src-test" location="src-test"/> |
9 | <property name="build-test" location="bin-test"/> |
||
10 | 4878 | cesar | <property name="lib" location="lib"/> |
11 | 4136 | fjp | <property name="drivers-dir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers" /> |
12 | 4781 | fjp | <property name="writers-dir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers" /> |
13 | 2943 | fjp | <property name="build-doc" value="build-doc"/> |
14 | 5638 | cesar | <property name="jarName" value="fmap.jar"/> |
15 | 7775 | cesar | <import file="compile-classpath.xml"/> |
16 | 10565 | jmvivo | <property name="JavaSourceVersion" value="1.4"/> |
17 | <property name="JavaTargetVersion" value="1.4"/> |
||
18 | 11010 | cesar | <property name="sourceEncoding" value="ISO_8859_1"/> |
19 | 10565 | jmvivo | |
20 | 407 | fernando | <target name="init"> |
21 | <!-- Create the time stamp -->
|
||
22 | <tstamp /> |
||
23 | 7210 | cesar | <echo>
|
24 | Compiling ${ant.project.name}...</echo>
|
||
25 | 407 | fernando | </target>
|
26 | 4141 | caballero | |
27 | 2943 | fjp | <target name="build-doc" depends="" description="Genera la documentación"> |
28 | 4141 | caballero | <javadoc
|
29 | 2943 | fjp | packagenames="com.iver.cit.gvsig.fmap.*" |
30 | sourcepath="src" |
||
31 | defaultexcludes="yes" |
||
32 | destdir="${build-doc}/fmap-api" |
||
33 | 11010 | cesar | source="${JavaSourceVersion}" |
34 | encoding="${sourceEncoding}" |
||
35 | 2943 | fjp | windowtitle="fmap API"> |
36 | </javadoc>
|
||
37 | </target>
|
||
38 | 407 | fernando | |
39 | 2943 | fjp | |
40 | 6433 | jorpiell | <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 | 407 | fernando | </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 | 2463 | fjp | <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 | 407 | fernando | |
52 | <target name="dgn" depends="" description="Genera el jar de dgn"> |
||
53 | <mkdir dir="${drivers-dir}/dgn" /> |
||
54 | 4748 | fjp | <jar jarfile="${drivers-dir}/dgn/dgn.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/dgn/**" /> |
55 | 407 | fernando | </target>
|
56 | 4141 | caballero | |
57 | 713 | jmorell | <target name="dxf" depends="" description="Genera el jar de dxf"> |
58 | <mkdir dir="${drivers-dir}/dxf" /> |
||
59 | 4748 | fjp | <jar jarfile="${drivers-dir}/dxf/dxf.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/dxf/**" /> |
60 | 713 | jmorell | </target>
|
61 | 4141 | caballero | |
62 | |||
63 | 713 | jmorell | <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 | 4141 | caballero | |
68 | 673 | luisw | <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 | 569 | luisw | </target>
|
72 | 6433 | jorpiell | |
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 | 1715 | fjp | <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 | 2295 | fjp | <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 | 4781 | fjp | <target name="shpwriter" depends="" description="Genera el jar de shp writer"> |
87 | 4141 | caballero | <mkdir dir="${writers-dir}/shp" /> |
88 | 4781 | fjp | <jar jarfile="${writers-dir}/shp/shpWriter.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/edition/writers/shp/**" /> |
89 | 4141 | caballero | </target>
|
90 | 4937 | fjp | <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 | 4141 | caballero | <target name="dbfwriter" depends="" description="Genera el jar de dbf writer"> |
96 | <mkdir dir="${writers-dir}/dbf" /> |
||
97 | 4781 | fjp | <jar jarfile="${writers-dir}/dbf/dbfWriter.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/edition/writers/dbf/**" /> |
98 | </target>
|
||
99 | 6433 | jorpiell | |
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 | 4878 | cesar | |
105 | <target name="batch-build" |
||
106 | description="compile the sources, create the jar file" |
||
107 | 7210 | cesar | depends="init,compile,create-jar,copy-data-files,generar-todos"> |
108 | 4878 | cesar | </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 | 10565 | jmvivo | source="${JavaSourceVersion}" |
116 | target="${JavaTargetVersion}" |
||
117 | 6296 | cesar | debug="${debug}" |
118 | 9138 | cesar | debuglevel="${debuglevel}" |
119 | excludes="com/iver/cit/gvsig/fmap/spatialindex/*Test*.java"> |
||
120 | 7775 | cesar | <classpath refid="libFMap.compile-classpath"/> |
121 | </javac>
|
||
122 | 4878 | cesar | </target>
|
123 | 8765 | jjdelcerro | |
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 | 5638 | cesar | <target name="create-jar" |
137 | description="Creates the plugin jar"> |
||
138 | <jar jarfile="${lib}/${jarName}" basedir="${build}"/> |
||
139 | </target>
|
||
140 | |||
141 | 4903 | cesar | <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 | 4878 | cesar | |
147 | <target name="clean" description="clean up" > |
||
148 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
149 | <delete dir="${build}"/> |
||
150 | <delete dir="${dist}"/> |
||
151 | 5638 | cesar | <delete>
|
152 | <fileset dir="${lib}" includes="fmap.jar"/> |
||
153 | </delete>
|
||
154 | 4878 | cesar | </target>
|
155 | |||
156 | 8765 | jjdelcerro | <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 | 7210 | cesar | </project> |