svn-gvsig-desktop / tags / v1_0_2_Build_902 / libraries / libFMap / build.xml @ 10681
History | View | Annotate | Download (6.46 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 | |||
19 | 407 | fernando | <target name="init"> |
20 | <!-- Create the time stamp -->
|
||
21 | <tstamp /> |
||
22 | 7210 | cesar | <echo>
|
23 | Compiling ${ant.project.name}...</echo>
|
||
24 | 407 | fernando | </target>
|
25 | 4141 | caballero | |
26 | 2943 | fjp | <target name="build-doc" depends="" description="Genera la documentación"> |
27 | 4141 | caballero | <javadoc
|
28 | 2943 | fjp | 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 | 407 | fernando | |
36 | 2943 | fjp | |
37 | 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 "> |
38 | 407 | fernando | </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 | 2463 | fjp | <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 | 407 | fernando | |
49 | <target name="dgn" depends="" description="Genera el jar de dgn"> |
||
50 | <mkdir dir="${drivers-dir}/dgn" /> |
||
51 | 4748 | fjp | <jar jarfile="${drivers-dir}/dgn/dgn.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/dgn/**" /> |
52 | 407 | fernando | </target>
|
53 | 4141 | caballero | |
54 | 713 | jmorell | <target name="dxf" depends="" description="Genera el jar de dxf"> |
55 | <mkdir dir="${drivers-dir}/dxf" /> |
||
56 | 4748 | fjp | <jar jarfile="${drivers-dir}/dxf/dxf.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/dxf/**" /> |
57 | 713 | jmorell | </target>
|
58 | 4141 | caballero | |
59 | |||
60 | 713 | jmorell | <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 | 4141 | caballero | |
65 | 673 | luisw | <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 | 569 | luisw | </target>
|
69 | 6433 | jorpiell | |
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 | 1715 | fjp | <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 | 2295 | fjp | <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 | 4781 | fjp | <target name="shpwriter" depends="" description="Genera el jar de shp writer"> |
84 | 4141 | caballero | <mkdir dir="${writers-dir}/shp" /> |
85 | 4781 | fjp | <jar jarfile="${writers-dir}/shp/shpWriter.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/edition/writers/shp/**" /> |
86 | 4141 | caballero | </target>
|
87 | 4937 | fjp | <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 | 4141 | caballero | <target name="dbfwriter" depends="" description="Genera el jar de dbf writer"> |
93 | <mkdir dir="${writers-dir}/dbf" /> |
||
94 | 4781 | fjp | <jar jarfile="${writers-dir}/dbf/dbfWriter.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/edition/writers/dbf/**" /> |
95 | </target>
|
||
96 | 6433 | jorpiell | |
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 | 4878 | cesar | |
102 | <target name="batch-build" |
||
103 | description="compile the sources, create the jar file" |
||
104 | 7210 | cesar | depends="init,compile,create-jar,copy-data-files,generar-todos"> |
105 | 4878 | cesar | </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 | 10565 | jmvivo | source="${JavaSourceVersion}" |
113 | target="${JavaTargetVersion}" |
||
114 | 6296 | cesar | debug="${debug}" |
115 | 9138 | cesar | debuglevel="${debuglevel}" |
116 | excludes="com/iver/cit/gvsig/fmap/spatialindex/*Test*.java"> |
||
117 | 7775 | cesar | <classpath refid="libFMap.compile-classpath"/> |
118 | </javac>
|
||
119 | 4878 | cesar | </target>
|
120 | 8765 | jjdelcerro | |
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 | 5638 | cesar | <target name="create-jar" |
134 | description="Creates the plugin jar"> |
||
135 | <jar jarfile="${lib}/${jarName}" basedir="${build}"/> |
||
136 | </target>
|
||
137 | |||
138 | 4903 | cesar | <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 | 4878 | cesar | |
144 | <target name="clean" description="clean up" > |
||
145 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
146 | <delete dir="${build}"/> |
||
147 | <delete dir="${dist}"/> |
||
148 | 5638 | cesar | <delete>
|
149 | <fileset dir="${lib}" includes="fmap.jar"/> |
||
150 | </delete>
|
||
151 | 4878 | cesar | </target>
|
152 | |||
153 | 8765 | jjdelcerro | <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 | 7210 | cesar | </project> |