root / tags / v1_1_Build_1005 / libraries / libGDBMS / build.xml @ 12355
History | View | Annotate | Download (7.63 KB)
1 |
<project name="GDBMS" default="generar-todos" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<property name="drivers-dir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers" /> |
7 |
<property name="classes-dir" location="bin" /> |
8 |
<property name="src" location="src" /> |
9 |
<property name="build" location="bin"/> |
10 |
<property name="apiReferenceDir" value="docs/dist/html/APIReference"/> |
11 |
<property name="fmapLibs" location="../libFMap/lib"/> |
12 |
<property name="andamiLibs" location="../_fwAndami/lib"/> |
13 |
<property name="fmap-compile-classpath" value="${fmapLibs}/geoapi-2.0.jar:${fmapLibs}/batik-awt-util.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${andamiLibs}/castor-0.9.5.3-xml.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/units-0.01.jar:${fmapLibs}/gt2-main.jar:${fmapLibs}/gt2-postgis.jar:${fmapLibs}/gt2-wfs.jar:${fmapLibs}/gt2-legacy.jar:${fmapLibs}/gt2-wms.jar:${fmapLibs}/hsqldb.jar:${fmapLibs}/jts-1.7.jar:${fmapLibs}/jecw.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${andamiLibs}/log4j-1.2.8.jar:${fmapLibs}/wmsclient.jar:${fmapLibs}/mysql-connector-java-3.1.7-bin.jar:${fmapLibs}/postgis-jdbc-driver.jar:${fmapLibs}/postgresql-74.213.jar:${fmapLibs}/vecmath-1.3.jar"/> |
14 |
<property name="compile-classpath" value="${fmap-compile-classpath}:${andamiLibs}/crimson.jar:${andamiLibs}/dbf.jar:${andamiLibs}/iver-utiles.jar:${andamiLibs}/log4j-1.2.8.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/gt2-main.jar:${fmapLibs}/gt2sidx.jar:${fmapLibs}/jts-1.7.jar:${fmapLibs}/spatialindex.jar:${fmapLibs}/postgis-jdbc-driver.jar:${fmapLibs}/postgresql-74.213.jar:./lib/kxml2.jar"/> |
15 |
<property name="compile-sourcepath" value="../libFMap/src"/> |
16 |
<property name="JavaSourceVersion" value="1.4"/> |
17 |
<property name="JavaTargetVersion" value="1.4"/> |
18 |
<property name="encoding" 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="generar-todos" depends="init, csvstring, odbc, mysql, postgresql, hsqldb, oracle, create-jar" description="Genera los jars de todos los drivers "> |
28 |
</target>
|
29 |
|
30 |
<target name="csv" description="Genera el jar de csv"> |
31 |
<!--
|
32 |
Ojo No es un driver estandar, es para un formato concreto.
|
33 |
-->
|
34 |
<delete dir="${drivers-dir}/csv" /> |
35 |
<mkdir dir="${drivers-dir}/csv" /> |
36 |
<jar jarfile="${drivers-dir}/csv/csv.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/csv/**" /> |
37 |
</target>
|
38 |
|
39 |
<target name="csvstring" description="Genera el jar de csvstring"> |
40 |
<delete dir="${drivers-dir}/csvstring" /> |
41 |
<mkdir dir="${drivers-dir}/csvstring" /> |
42 |
<jar jarfile="${drivers-dir}/csvstring/csvstring.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/csvstring/**" /> |
43 |
</target>
|
44 |
|
45 |
<target name="dbf" description="Genera el jar de dbf"> |
46 |
<delete dir="${drivers-dir}/dbf" /> |
47 |
<mkdir dir="${drivers-dir}/dbf" /> |
48 |
<jar jarfile="${drivers-dir}/dbf/dbf.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/dbf/**" /> |
49 |
</target>
|
50 |
|
51 |
<target name="dxf" description="Genera el jar de dxf"> |
52 |
<delete dir="${drivers-dir}/dxf" /> |
53 |
<mkdir dir="${drivers-dir}/dxf" /> |
54 |
<jar jarfile="${drivers-dir}/dxf/dxf.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/dxf/**" /> |
55 |
</target>
|
56 |
|
57 |
<target name="shp" description="Genera el jar de shapefile de ESRI"> |
58 |
<delete dir="${drivers-dir}/shp" /> |
59 |
<mkdir dir="${drivers-dir}/shp" /> |
60 |
<jar jarfile="${drivers-dir}/shp/shp.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/shapefile/**" /> |
61 |
</target>
|
62 |
|
63 |
<target name="postgis" description="Genera el jar de postgis"> |
64 |
<delete dir="${drivers-dir}/postgis" /> |
65 |
<mkdir dir="${drivers-dir}/postgis" /> |
66 |
<jar jarfile="${drivers-dir}/postgis/postgis.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/postgis/**" /> |
67 |
</target>
|
68 |
|
69 |
<target name="odbc" description="Genera el jar de odbc"> |
70 |
<delete dir="${drivers-dir}/odbc" /> |
71 |
<mkdir dir="${drivers-dir}/odbc" /> |
72 |
<jar jarfile="${drivers-dir}/odbc/odbc.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/odbc/**" /> |
73 |
</target>
|
74 |
|
75 |
<target name="foo" description="Genera el jar foo"> |
76 |
<delete dir="${drivers-dir}/foo" /> |
77 |
<mkdir dir="${drivers-dir}/foo" /> |
78 |
<jar jarfile="${drivers-dir}/foo/foo.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/foodriver/**" /> |
79 |
</target>
|
80 |
|
81 |
<target name="hsqldb" description="Genera el jar de hsqldb"> |
82 |
<delete dir="${drivers-dir}/hsqldb" /> |
83 |
<mkdir dir="${drivers-dir}/hsqldb" /> |
84 |
<jar jarfile="${drivers-dir}/hsqldb/hsqldb.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/hsqldb/**" /> |
85 |
</target>
|
86 |
|
87 |
<target name="oracle" description="Genera el jar de oracle"> |
88 |
<delete dir="${drivers-dir}/oracle" /> |
89 |
<mkdir dir="${drivers-dir}/oracle" /> |
90 |
<jar jarfile="${drivers-dir}/oracle/oracle.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/oracle/**" /> |
91 |
</target>
|
92 |
|
93 |
<target name="hsqldb transactional" description="Genera el jar de hsqldb transaccional"> |
94 |
<delete dir="${drivers-dir}/hsqldbTransactional" /> |
95 |
<mkdir dir="${drivers-dir}/hsqldbTransactional" /> |
96 |
<jar jarfile="${drivers-dir}/hsqldbTransactional/hsqldb.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/hsqldbTransactional/**" /> |
97 |
</target>
|
98 |
|
99 |
<target name="mysql" description="Genera el jar de mysql"> |
100 |
<delete dir="${drivers-dir}/mysql" /> |
101 |
<mkdir dir="${drivers-dir}/mysql" /> |
102 |
<jar jarfile="${drivers-dir}/mysql/mysql.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/mysql/**" /> |
103 |
</target>
|
104 |
|
105 |
<target name="postgresql" description="Genera el jar de postgresql"> |
106 |
<delete dir="${drivers-dir}/postgresql" /> |
107 |
<mkdir dir="${drivers-dir}/postgresql" /> |
108 |
<jar jarfile="${drivers-dir}/postgresql/postgresql.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/postgresql/**" /> |
109 |
</target>
|
110 |
|
111 |
<target name="create-jar" description="Genera el jar de gdbms"> |
112 |
<delete file="../libFMap/lib/gdbms-0-8-SNAPSHOT.jar"/> |
113 |
<jar jarfile="../libFMap/lib/gdbms-0.8-SNAPSHOT.jar"> |
114 |
<fileset dir="${build}" includes="com/hardcode/gdbms/engine/**" /> |
115 |
<fileset dir="${build}" includes="com/hardcode/gdbms/parser/**" /> |
116 |
<fileset dir="${build}" includes="com/hardcode/gdbms/driver/DriverUtilities.*" /> |
117 |
</jar>
|
118 |
</target>
|
119 |
|
120 |
<target name="buildAPIReference" description="Crea el documento Javadoc del componente"> |
121 |
<delete dir="${apiReferenceDir}"/> |
122 |
<mkdir dir="${apiReferenceDir}"/> |
123 |
<javadoc
|
124 |
author="true" |
125 |
version="true" |
126 |
destdir="${apiReferenceDir}" |
127 |
maxmemory="512m" |
128 |
source="1.4" |
129 |
doctitle="DOCUMENTACION DEL API" |
130 |
>
|
131 |
<fileset dir="." |
132 |
includes="src/main/**/*.java" /> |
133 |
</javadoc>
|
134 |
</target>
|
135 |
|
136 |
<target name="buildDocBook"> |
137 |
<exec executable= "xsltproc" failonerror="false"> |
138 |
<arg line="-o ./docs/src/developersGuide/model/model.html /usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl ./docs/src/developersGuide/model/model.docbook"/> |
139 |
</exec>
|
140 |
</target>
|
141 |
|
142 |
<target name="batch-build" |
143 |
description="compile the sources, create the jar file" |
144 |
depends="init,compile,generar-todos"> |
145 |
</target>
|
146 |
|
147 |
<target name="compile" description="compile the source" > |
148 |
<!-- Compile the Java code from ${src} to ${build} -->
|
149 |
<mkdir dir="${build}" /> |
150 |
<javac srcdir="${src}" |
151 |
destdir="${build}" |
152 |
source="${JavaSourceVersion}" |
153 |
target="${JavaTargetVersion}" |
154 |
classpath="${compile-classpath}" |
155 |
sourcepath="${compile-sourcepath}" |
156 |
debug="${debug}" |
157 |
debuglevel="${debuglevel}" |
158 |
excludes="test/**" |
159 |
encoding="${encoding}"/> |
160 |
</target>
|
161 |
|
162 |
<target name="clean" description="clean up" > |
163 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
164 |
<delete dir="${build}"/> |
165 |
<delete dir="${dist}"/> |
166 |
</target>
|
167 |
</project>
|