svn-gvsig-desktop / tags / v1_1_Build_1009 / libraries / libGDBMS / build.xml @ 12649
History | View | Annotate | Download (7.63 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 | 12259 | cesar | <property name="encoding" value="ISO_8859_1"/> |
19 | 10565 | jmvivo | |
20 | 466 | fernando | <target name="init"> |
21 | <!-- Create the time stamp -->
|
||
22 | 7200 | cesar | <tstamp /> |
23 | <echo>
|
||
24 | Compiling ${ant.project.name}...</echo>
|
||
25 | 466 | fernando | </target>
|
26 | |||
27 | 5700 | fjp | <target name="generar-todos" depends="init, csvstring, odbc, mysql, postgresql, hsqldb, oracle, create-jar" description="Genera los jars de todos los drivers "> |
28 | 466 | fernando | </target>
|
29 | |||
30 | <target name="csv" description="Genera el jar de csv"> |
||
31 | 5578 | jmvivo | <!--
|
32 | Ojo No es un driver estandar, es para un formato concreto.
|
||
33 | -->
|
||
34 | 4052 | fjp | <delete dir="${drivers-dir}/csv" /> |
35 | 466 | fernando | <mkdir dir="${drivers-dir}/csv" /> |
36 | 3200 | fjp | <jar jarfile="${drivers-dir}/csv/csv.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/csv/**" /> |
37 | 466 | fernando | </target>
|
38 | |||
39 | 3200 | fjp | <target name="csvstring" description="Genera el jar de csvstring"> |
40 | 4052 | fjp | <delete dir="${drivers-dir}/csvstring" /> |
41 | 3200 | fjp | <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 | 466 | fernando | <target name="dbf" description="Genera el jar de dbf"> |
46 | 4052 | fjp | <delete dir="${drivers-dir}/dbf" /> |
47 | 466 | fernando | <mkdir dir="${drivers-dir}/dbf" /> |
48 | 3200 | fjp | <jar jarfile="${drivers-dir}/dbf/dbf.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/dbf/**" /> |
49 | 466 | fernando | </target>
|
50 | |||
51 | 3200 | fjp | <target name="dxf" description="Genera el jar de dxf"> |
52 | 4052 | fjp | <delete dir="${drivers-dir}/dxf" /> |
53 | 3200 | fjp | <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 | 4052 | fjp | <delete dir="${drivers-dir}/shp" /> |
59 | 3200 | fjp | <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 | 4052 | fjp | <delete dir="${drivers-dir}/postgis" /> |
65 | 3200 | fjp | <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 | 4052 | fjp | <delete dir="${drivers-dir}/odbc" /> |
71 | 3200 | fjp | <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 | 4052 | fjp | <delete dir="${drivers-dir}/foo" /> |
77 | 3200 | fjp | <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 | 4052 | fjp | <delete dir="${drivers-dir}/hsqldb" /> |
83 | 3200 | fjp | <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 | 5700 | fjp | <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 | 3200 | fjp | <target name="hsqldb transactional" description="Genera el jar de hsqldb transaccional"> |
94 | 4052 | fjp | <delete dir="${drivers-dir}/hsqldbTransactional" /> |
95 | 3200 | fjp | <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 | 466 | fernando | <target name="mysql" description="Genera el jar de mysql"> |
100 | 4052 | fjp | <delete dir="${drivers-dir}/mysql" /> |
101 | 466 | fernando | <mkdir dir="${drivers-dir}/mysql" /> |
102 | 3200 | fjp | <jar jarfile="${drivers-dir}/mysql/mysql.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/mysql/**" /> |
103 | 466 | fernando | </target>
|
104 | |||
105 | 1956 | fjp | <target name="postgresql" description="Genera el jar de postgresql"> |
106 | 4052 | fjp | <delete dir="${drivers-dir}/postgresql" /> |
107 | 1956 | fjp | <mkdir dir="${drivers-dir}/postgresql" /> |
108 | 3200 | fjp | <jar jarfile="${drivers-dir}/postgresql/postgresql.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/postgresql/**" /> |
109 | 1956 | fjp | </target>
|
110 | |||
111 | 466 | fernando | <target name="create-jar" description="Genera el jar de gdbms"> |
112 | 4052 | fjp | <delete file="../libFMap/lib/gdbms-0-8-SNAPSHOT.jar"/> |
113 | <jar jarfile="../libFMap/lib/gdbms-0.8-SNAPSHOT.jar"> |
||
114 | 5692 | cesar | <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 | 466 | fernando | </jar>
|
118 | </target>
|
||
119 | 4725 | vacevedo | |
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 | 4902 | cesar | |
142 | <target name="batch-build" |
||
143 | description="compile the sources, create the jar file" |
||
144 | 7200 | cesar | depends="init,compile,generar-todos"> |
145 | 4902 | cesar | </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 | 10565 | jmvivo | source="${JavaSourceVersion}" |
153 | target="${JavaTargetVersion}" |
||
154 | 4902 | cesar | classpath="${compile-classpath}" |
155 | sourcepath="${compile-sourcepath}" |
||
156 | 6295 | cesar | debug="${debug}" |
157 | debuglevel="${debuglevel}" |
||
158 | 12259 | cesar | excludes="test/**" |
159 | encoding="${encoding}"/> |
||
160 | 4902 | cesar | </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 | 466 | fernando | </project> |