svn-gvsig-desktop / tags / Root_piloto3d / libraries / libFMap / build.xml @ 44124
History | View | Annotate | Download (5.89 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 | <property name="lib" location="lib"/> |
||
9 | <property name="andamiLibs" location="../_fwAndami/lib"/> |
||
10 | 4136 | fjp | <property name="drivers-dir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers" /> |
11 | 4781 | fjp | <property name="writers-dir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers" /> |
12 | 2943 | fjp | <property name="build-doc" value="build-doc"/> |
13 | 5637 | cesar | <property name="compile-classpath" value="${lib}/batik-awt-util.jar:${andamiLibs}/castor-0.9.5.3-xml.jar:${lib}/cms.jar:${lib}/driver-manager-1.1.jar:${lib}/geoapi-2.0.jar:${lib}/gt2sidx.jar:${andamiLibs}/iver-utiles.jar:${lib}/units-0.01.jar:${lib}/gt2-main.jar:${lib}/gt2-postgis.jar:${lib}/gt2-wfs.jar:${lib}/gt2-legacy.jar:${lib}/gt2-wms.jar:${lib}/hsqldb.jar:${lib}/jts-1.7.jar:${lib}/jecw.jar:${lib}/gdbms-0.8-SNAPSHOT.jar:${andamiLibs}/log4j-1.2.8.jar:${lib}/wmsclient.jar:${lib}/mysql-connector-java-3.1.7-bin.jar:${lib}/postgis-jdbc-driver.jar:${lib}/postgresql-74.213.jar:${lib}/spatialindex.jar:${lib}/vecmath-1.3.jar" /> |
14 | 5638 | cesar | <property name="jarName" value="fmap.jar"/> |
15 | 4141 | caballero | |
16 | 407 | fernando | <target name="init"> |
17 | <!-- Create the time stamp -->
|
||
18 | <tstamp /> |
||
19 | </target>
|
||
20 | 4141 | caballero | |
21 | 2943 | fjp | <target name="build-doc" depends="" description="Genera la documentación"> |
22 | 4141 | caballero | <javadoc
|
23 | 2943 | fjp | packagenames="com.iver.cit.gvsig.fmap.*" |
24 | sourcepath="src" |
||
25 | defaultexcludes="yes" |
||
26 | destdir="${build-doc}/fmap-api" |
||
27 | windowtitle="fmap API"> |
||
28 | </javadoc>
|
||
29 | </target>
|
||
30 | 407 | fernando | |
31 | 2943 | fjp | |
32 | 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 "> |
33 | 407 | fernando | </target>
|
34 | |||
35 | <target name="shp" depends="" description="Genera el jar de shp"> |
||
36 | <mkdir dir="${drivers-dir}/shp" /> |
||
37 | <jar jarfile="${drivers-dir}/shp/shp.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/shp/**" /> |
||
38 | </target>
|
||
39 | 2463 | fjp | <target name="dbf" depends="" description="Genera el jar del dbf"> |
40 | <mkdir dir="${drivers-dir}/dbf" /> |
||
41 | <jar jarfile="${drivers-dir}/dbf/dbf.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/dbf/**" /> |
||
42 | </target>
|
||
43 | 407 | fernando | |
44 | <target name="dgn" depends="" description="Genera el jar de dgn"> |
||
45 | <mkdir dir="${drivers-dir}/dgn" /> |
||
46 | 4748 | fjp | <jar jarfile="${drivers-dir}/dgn/dgn.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/dgn/**" /> |
47 | 407 | fernando | </target>
|
48 | 4141 | caballero | |
49 | 713 | jmorell | <target name="dxf" depends="" description="Genera el jar de dxf"> |
50 | <mkdir dir="${drivers-dir}/dxf" /> |
||
51 | 4748 | fjp | <jar jarfile="${drivers-dir}/dxf/dxf.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/dxf/**" /> |
52 | 713 | jmorell | </target>
|
53 | 4141 | caballero | |
54 | |||
55 | 713 | jmorell | <target name="wfs" depends="" description="Genera el jar de wfs"> |
56 | <mkdir dir="${drivers-dir}/wfs" /> |
||
57 | <jar jarfile="${drivers-dir}/wfs/wfs.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/wfs/**"/> |
||
58 | </target>
|
||
59 | 4141 | caballero | |
60 | 673 | luisw | <target name="raster" depends="" description="Genera el jar de ecw,jpg,tif, etc"> |
61 | <mkdir dir="${drivers-dir}/raster" /> |
||
62 | <jar jarfile="${drivers-dir}/raster/raster.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/raster/**" /> |
||
63 | 569 | luisw | </target>
|
64 | 6433 | jorpiell | |
65 | <target name="gml" depends="" description="Genera el jar de gml"> |
||
66 | <mkdir dir="${drivers-dir}/gml" /> |
||
67 | <jar jarfile="${drivers-dir}/gml/gml.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/gml/**" /> |
||
68 | </target>
|
||
69 | |||
70 | 1715 | fjp | <target name="jdbc" depends="" description="Genera el jar jdbc"> |
71 | <mkdir dir="${drivers-dir}/jdbc" /> |
||
72 | <jar jarfile="${drivers-dir}/jdbc/jdbc.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/jdbc/**" /> |
||
73 | </target>
|
||
74 | 2295 | fjp | <target name="arcsde" depends="" description="Genera el jar sde"> |
75 | <mkdir dir="${drivers-dir}/arcsde" /> |
||
76 | <jar jarfile="${drivers-dir}/arcsde/arcsde.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/drivers/arcsde/**" /> |
||
77 | </target>
|
||
78 | 4781 | fjp | <target name="shpwriter" depends="" description="Genera el jar de shp writer"> |
79 | 4141 | caballero | <mkdir dir="${writers-dir}/shp" /> |
80 | 4781 | fjp | <jar jarfile="${writers-dir}/shp/shpWriter.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/edition/writers/shp/**" /> |
81 | 4141 | caballero | </target>
|
82 | 4937 | fjp | <target name="dxfwriter" depends="" description="Genera el jar de dxf writer"> |
83 | <mkdir dir="${writers-dir}/dxf" /> |
||
84 | <jar jarfile="${writers-dir}/dxf/dxfWriter.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/edition/writers/dxf/**" /> |
||
85 | </target>
|
||
86 | |||
87 | 4141 | caballero | <target name="dbfwriter" depends="" description="Genera el jar de dbf writer"> |
88 | <mkdir dir="${writers-dir}/dbf" /> |
||
89 | 4781 | fjp | <jar jarfile="${writers-dir}/dbf/dbfWriter.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/edition/writers/dbf/**" /> |
90 | </target>
|
||
91 | 6433 | jorpiell | |
92 | <target name="gmlwriter" depends="" description="Genera el jar de gml writer"> |
||
93 | <mkdir dir="${writers-dir}/gml" /> |
||
94 | <jar jarfile="${writers-dir}/gml/gmlWriter.jar" basedir="./bin" includes="com/iver/cit/gvsig/fmap/edition/writers/gml/**" /> |
||
95 | </target>
|
||
96 | 4878 | cesar | |
97 | <target name="batch-build" |
||
98 | description="compile the sources, create the jar file" |
||
99 | 5638 | cesar | depends="compile,create-jar,copy-data-files,generar-todos"> |
100 | 4878 | cesar | </target>
|
101 | |||
102 | <target name="compile" description="compile the source" > |
||
103 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
104 | <mkdir dir="${build}" /> |
||
105 | <javac srcdir="${src}" |
||
106 | destdir="${build}" |
||
107 | source="1.4" |
||
108 | target="1.4" |
||
109 | 6296 | cesar | debug="${debug}" |
110 | debuglevel="${debuglevel}" |
||
111 | 4878 | cesar | classpath="${compile-classpath}"/> |
112 | </target>
|
||
113 | 4903 | cesar | |
114 | 5638 | cesar | <target name="create-jar" |
115 | description="Creates the plugin jar"> |
||
116 | <jar jarfile="${lib}/${jarName}" basedir="${build}"/> |
||
117 | </target>
|
||
118 | |||
119 | 4903 | cesar | <target name="copy-data-files" description="copy images"> |
120 | <copy todir="${build}/com/iver/cit/gvsig/fmap/images"> |
||
121 | <fileset dir="${src}/com/iver/cit/gvsig/fmap/images" includes="*"/> |
||
122 | </copy>
|
||
123 | </target>
|
||
124 | 4878 | cesar | |
125 | <target name="clean" description="clean up" > |
||
126 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
127 | <delete dir="${build}"/> |
||
128 | <delete dir="${dist}"/> |
||
129 | 5638 | cesar | <delete>
|
130 | <fileset dir="${lib}" includes="fmap.jar"/> |
||
131 | </delete>
|
||
132 | 4878 | cesar | </target>
|
133 | |||
134 | 407 | fernando | </project> |