root / tags / v1_0_2_Build_904 / libraries / libGDBMS / build.xml @ 10724
History | View | Annotate | Download (7.56 KB)
1 | 466 | fernando | <project name="GDBMS" default="generar-todos" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Instala el plugin |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | 4561 | jmvivo | <property name="drivers-dir" location="../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers" /> |
7 | 5698 | cesar | <property name="classes-dir" location="bin" /> |
8 | 4902 | cesar | <property name="src" location="src" /> |
9 | 5692 | cesar | <property name="build" location="bin"/> |
10 | 4725 | vacevedo | <property name="apiReferenceDir" value="docs/dist/html/APIReference"/> |
11 | 4902 | cesar | <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 | 8789 | jjdelcerro | <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 | 4902 | cesar | <property name="compile-sourcepath" value="../libFMap/src"/> |
16 | 10565 | jmvivo | <property name="JavaSourceVersion" value="1.4"/> |
17 | <property name="JavaTargetVersion" value="1.4"/> |
||
18 | |||
19 | 466 | fernando | <target name="init"> |
20 | <!-- Create the time stamp -->
|
||
21 | 7200 | cesar | <tstamp /> |
22 | <echo>
|
||
23 | Compiling ${ant.project.name}...</echo>
|
||
24 | 466 | fernando | </target>
|
25 | |||
26 | 5700 | fjp | <target name="generar-todos" depends="init, csvstring, odbc, mysql, postgresql, hsqldb, oracle, create-jar" description="Genera los jars de todos los drivers "> |
27 | 466 | fernando | </target>
|
28 | |||
29 | <target name="csv" description="Genera el jar de csv"> |
||
30 | 5578 | jmvivo | <!--
|
31 | Ojo No es un driver estandar, es para un formato concreto.
|
||
32 | -->
|
||
33 | 4052 | fjp | <delete dir="${drivers-dir}/csv" /> |
34 | 466 | fernando | <mkdir dir="${drivers-dir}/csv" /> |
35 | 3200 | fjp | <jar jarfile="${drivers-dir}/csv/csv.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/csv/**" /> |
36 | 466 | fernando | </target>
|
37 | |||
38 | 3200 | fjp | <target name="csvstring" description="Genera el jar de csvstring"> |
39 | 4052 | fjp | <delete dir="${drivers-dir}/csvstring" /> |
40 | 3200 | fjp | <mkdir dir="${drivers-dir}/csvstring" /> |
41 | <jar jarfile="${drivers-dir}/csvstring/csvstring.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/csvstring/**" /> |
||
42 | </target>
|
||
43 | |||
44 | 466 | fernando | <target name="dbf" description="Genera el jar de dbf"> |
45 | 4052 | fjp | <delete dir="${drivers-dir}/dbf" /> |
46 | 466 | fernando | <mkdir dir="${drivers-dir}/dbf" /> |
47 | 3200 | fjp | <jar jarfile="${drivers-dir}/dbf/dbf.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/dbf/**" /> |
48 | 466 | fernando | </target>
|
49 | |||
50 | 3200 | fjp | <target name="dxf" description="Genera el jar de dxf"> |
51 | 4052 | fjp | <delete dir="${drivers-dir}/dxf" /> |
52 | 3200 | fjp | <mkdir dir="${drivers-dir}/dxf" /> |
53 | <jar jarfile="${drivers-dir}/dxf/dxf.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/dxf/**" /> |
||
54 | </target>
|
||
55 | |||
56 | <target name="shp" description="Genera el jar de shapefile de ESRI"> |
||
57 | 4052 | fjp | <delete dir="${drivers-dir}/shp" /> |
58 | 3200 | fjp | <mkdir dir="${drivers-dir}/shp" /> |
59 | <jar jarfile="${drivers-dir}/shp/shp.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/shapefile/**" /> |
||
60 | </target>
|
||
61 | |||
62 | <target name="postgis" description="Genera el jar de postgis"> |
||
63 | 4052 | fjp | <delete dir="${drivers-dir}/postgis" /> |
64 | 3200 | fjp | <mkdir dir="${drivers-dir}/postgis" /> |
65 | <jar jarfile="${drivers-dir}/postgis/postgis.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/postgis/**" /> |
||
66 | </target>
|
||
67 | |||
68 | <target name="odbc" description="Genera el jar de odbc"> |
||
69 | 4052 | fjp | <delete dir="${drivers-dir}/odbc" /> |
70 | 3200 | fjp | <mkdir dir="${drivers-dir}/odbc" /> |
71 | <jar jarfile="${drivers-dir}/odbc/odbc.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/odbc/**" /> |
||
72 | </target>
|
||
73 | |||
74 | <target name="foo" description="Genera el jar foo"> |
||
75 | 4052 | fjp | <delete dir="${drivers-dir}/foo" /> |
76 | 3200 | fjp | <mkdir dir="${drivers-dir}/foo" /> |
77 | <jar jarfile="${drivers-dir}/foo/foo.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/foodriver/**" /> |
||
78 | </target>
|
||
79 | |||
80 | <target name="hsqldb" description="Genera el jar de hsqldb"> |
||
81 | 4052 | fjp | <delete dir="${drivers-dir}/hsqldb" /> |
82 | 3200 | fjp | <mkdir dir="${drivers-dir}/hsqldb" /> |
83 | <jar jarfile="${drivers-dir}/hsqldb/hsqldb.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/hsqldb/**" /> |
||
84 | </target>
|
||
85 | |||
86 | 5700 | fjp | <target name="oracle" description="Genera el jar de oracle"> |
87 | <delete dir="${drivers-dir}/oracle" /> |
||
88 | <mkdir dir="${drivers-dir}/oracle" /> |
||
89 | <jar jarfile="${drivers-dir}/oracle/oracle.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/oracle/**" /> |
||
90 | </target>
|
||
91 | |||
92 | 3200 | fjp | <target name="hsqldb transactional" description="Genera el jar de hsqldb transaccional"> |
93 | 4052 | fjp | <delete dir="${drivers-dir}/hsqldbTransactional" /> |
94 | 3200 | fjp | <mkdir dir="${drivers-dir}/hsqldbTransactional" /> |
95 | <jar jarfile="${drivers-dir}/hsqldbTransactional/hsqldb.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/hsqldbTransactional/**" /> |
||
96 | </target>
|
||
97 | |||
98 | 466 | fernando | <target name="mysql" description="Genera el jar de mysql"> |
99 | 4052 | fjp | <delete dir="${drivers-dir}/mysql" /> |
100 | 466 | fernando | <mkdir dir="${drivers-dir}/mysql" /> |
101 | 3200 | fjp | <jar jarfile="${drivers-dir}/mysql/mysql.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/mysql/**" /> |
102 | 466 | fernando | </target>
|
103 | |||
104 | 1956 | fjp | <target name="postgresql" description="Genera el jar de postgresql"> |
105 | 4052 | fjp | <delete dir="${drivers-dir}/postgresql" /> |
106 | 1956 | fjp | <mkdir dir="${drivers-dir}/postgresql" /> |
107 | 3200 | fjp | <jar jarfile="${drivers-dir}/postgresql/postgresql.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/postgresql/**" /> |
108 | 1956 | fjp | </target>
|
109 | |||
110 | 466 | fernando | <target name="create-jar" description="Genera el jar de gdbms"> |
111 | 4052 | fjp | <delete file="../libFMap/lib/gdbms-0-8-SNAPSHOT.jar"/> |
112 | <jar jarfile="../libFMap/lib/gdbms-0.8-SNAPSHOT.jar"> |
||
113 | 5692 | cesar | <fileset dir="${build}" includes="com/hardcode/gdbms/engine/**" /> |
114 | <fileset dir="${build}" includes="com/hardcode/gdbms/parser/**" /> |
||
115 | <fileset dir="${build}" includes="com/hardcode/gdbms/driver/DriverUtilities.*" /> |
||
116 | 466 | fernando | </jar>
|
117 | </target>
|
||
118 | 4725 | vacevedo | |
119 | <target name="buildAPIReference" description="Crea el documento Javadoc del componente"> |
||
120 | <delete dir="${apiReferenceDir}"/> |
||
121 | <mkdir dir="${apiReferenceDir}"/> |
||
122 | <javadoc
|
||
123 | author="true" |
||
124 | version="true" |
||
125 | destdir="${apiReferenceDir}" |
||
126 | maxmemory="512m" |
||
127 | source="1.4" |
||
128 | doctitle="DOCUMENTACION DEL API" |
||
129 | >
|
||
130 | <fileset dir="." |
||
131 | includes="src/main/**/*.java" /> |
||
132 | </javadoc>
|
||
133 | </target>
|
||
134 | |||
135 | <target name="buildDocBook"> |
||
136 | <exec executable= "xsltproc" failonerror="false"> |
||
137 | <arg line="-o ./docs/src/developersGuide/model/model.html /usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl ./docs/src/developersGuide/model/model.docbook"/> |
||
138 | </exec>
|
||
139 | </target>
|
||
140 | 4902 | cesar | |
141 | <target name="batch-build" |
||
142 | description="compile the sources, create the jar file" |
||
143 | 7200 | cesar | depends="init,compile,generar-todos"> |
144 | 4902 | cesar | </target>
|
145 | |||
146 | <target name="compile" description="compile the source" > |
||
147 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
148 | <mkdir dir="${build}" /> |
||
149 | <javac srcdir="${src}" |
||
150 | destdir="${build}" |
||
151 | 10565 | jmvivo | source="${JavaSourceVersion}" |
152 | target="${JavaTargetVersion}" |
||
153 | 4902 | cesar | classpath="${compile-classpath}" |
154 | sourcepath="${compile-sourcepath}" |
||
155 | 6295 | cesar | debug="${debug}" |
156 | debuglevel="${debuglevel}" |
||
157 | 4902 | cesar | excludes="test/**"/> |
158 | </target>
|
||
159 | |||
160 | <target name="clean" description="clean up" > |
||
161 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
162 | <delete dir="${build}"/> |
||
163 | <delete dir="${dist}"/> |
||
164 | </target>
|
||
165 | 466 | fernando | </project> |