svn-gvsig-desktop / tags / v2_0_0_Build_2000 / libraries / libGDBMS / build.xml @ 47796
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 | 13154 | cesar | <property name="drivers-dir" location="../libFMap/drivers" /> |
7 | 5698 | cesar | <property name="classes-dir" location="bin" /> |
8 | 13530 | cesar | <property name="src" location="src/main/java" /> |
9 | 5692 | cesar | <property name="build" location="bin"/> |
10 | 13530 | cesar | <property name="src-test" location="src/test/java"/> |
11 | 13661 | cesar | <property name="build-test" location="bin-test"/> |
12 | 4725 | vacevedo | <property name="apiReferenceDir" value="docs/dist/html/APIReference"/> |
13 | 13204 | jmvivo | <property name="compile-sourcepath" value="../libFMap/src"/> |
14 | 13236 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
15 | 7785 | cesar | |
16 | 466 | fernando | <target name="init"> |
17 | <!-- Create the time stamp -->
|
||
18 | 7785 | cesar | <tstamp /> |
19 | <echo>
|
||
20 | Compiling ${ant.project.name}...</echo>
|
||
21 | 466 | fernando | </target>
|
22 | |||
23 | 5700 | fjp | <target name="generar-todos" depends="init, csvstring, odbc, mysql, postgresql, hsqldb, oracle, create-jar" description="Genera los jars de todos los drivers "> |
24 | 466 | fernando | </target>
|
25 | |||
26 | 3200 | fjp | <target name="csvstring" description="Genera el jar de csvstring"> |
27 | 14216 | jmvivo | <delete failonerror="false"> |
28 | <fileset dir="${drivers-dir}/csvstring" excludes="**/.svn,**/.svn/**"/> |
||
29 | </delete>
|
||
30 | 3200 | fjp | <mkdir dir="${drivers-dir}/csvstring" /> |
31 | <jar jarfile="${drivers-dir}/csvstring/csvstring.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/csvstring/**" /> |
||
32 | </target>
|
||
33 | |||
34 | <target name="postgis" description="Genera el jar de postgis"> |
||
35 | 14216 | jmvivo | <delete failonerror="false"> |
36 | <fileset dir="${drivers-dir}/postgis" excludes="**/.svn,**/.svn/**"/> |
||
37 | </delete>
|
||
38 | |||
39 | 3200 | fjp | <mkdir dir="${drivers-dir}/postgis" /> |
40 | <jar jarfile="${drivers-dir}/postgis/postgis.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/postgis/**" /> |
||
41 | </target>
|
||
42 | |||
43 | <target name="odbc" description="Genera el jar de odbc"> |
||
44 | 14216 | jmvivo | <delete failonerror="false"> |
45 | <fileset dir="${drivers-dir}/odbc" excludes="**/.svn,**/.svn/**"/> |
||
46 | </delete>
|
||
47 | 3200 | fjp | <mkdir dir="${drivers-dir}/odbc" /> |
48 | <jar jarfile="${drivers-dir}/odbc/odbc.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/odbc/**" /> |
||
49 | </target>
|
||
50 | |||
51 | <target name="hsqldb" description="Genera el jar de hsqldb"> |
||
52 | 14216 | jmvivo | <delete failonerror="false"> |
53 | <fileset dir="${drivers-dir}/hsqldb" excludes="**/.svn,**/.svn/**"/> |
||
54 | </delete>
|
||
55 | 3200 | fjp | <mkdir dir="${drivers-dir}/hsqldb" /> |
56 | <jar jarfile="${drivers-dir}/hsqldb/hsqldb.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/hsqldb/**" /> |
||
57 | </target>
|
||
58 | |||
59 | 5700 | fjp | <target name="oracle" description="Genera el jar de oracle"> |
60 | 14216 | jmvivo | <delete failonerror="false"> |
61 | <fileset dir="${drivers-dir}/oracle" excludes="**/.svn,**/.svn/**"/> |
||
62 | </delete>
|
||
63 | 5700 | fjp | <mkdir dir="${drivers-dir}/oracle" /> |
64 | <jar jarfile="${drivers-dir}/oracle/oracle.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/oracle/**" /> |
||
65 | </target>
|
||
66 | |||
67 | 3200 | fjp | <target name="hsqldb transactional" description="Genera el jar de hsqldb transaccional"> |
68 | 14216 | jmvivo | <delete failonerror="false"> |
69 | <fileset dir="${drivers-dir}/hsqldbTransactional" excludes="**/.svn,**/.svn/**"/> |
||
70 | </delete>
|
||
71 | 3200 | fjp | <mkdir dir="${drivers-dir}/hsqldbTransactional" /> |
72 | <jar jarfile="${drivers-dir}/hsqldbTransactional/hsqldb.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/hsqldbTransactional/**" /> |
||
73 | </target>
|
||
74 | |||
75 | 466 | fernando | <target name="mysql" description="Genera el jar de mysql"> |
76 | 14216 | jmvivo | <delete failonerror="false"> |
77 | <fileset dir="${drivers-dir}/mysql" excludes="**/.svn,**/.svn/**"/> |
||
78 | </delete>
|
||
79 | 466 | fernando | <mkdir dir="${drivers-dir}/mysql" /> |
80 | 3200 | fjp | <jar jarfile="${drivers-dir}/mysql/mysql.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/mysql/**" /> |
81 | 466 | fernando | </target>
|
82 | |||
83 | 1956 | fjp | <target name="postgresql" description="Genera el jar de postgresql"> |
84 | 14216 | jmvivo | <delete failonerror="false"> |
85 | <fileset dir="${drivers-dir}/postgresql" excludes="**/.svn,**/.svn/**"/> |
||
86 | </delete>
|
||
87 | 1956 | fjp | <mkdir dir="${drivers-dir}/postgresql" /> |
88 | 3200 | fjp | <jar jarfile="${drivers-dir}/postgresql/postgresql.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/postgresql/**" /> |
89 | 1956 | fjp | </target>
|
90 | |||
91 | 13154 | cesar | <!-- los siguientes drivers no se usan, estan en FMap -->
|
92 | <target name="csv" description="Genera el jar de csv"> |
||
93 | <!--
|
||
94 | Ojo No es un driver estandar, es para un formato concreto.
|
||
95 | -->
|
||
96 | 14216 | jmvivo | <delete failonerror="false"> |
97 | <fileset dir="${drivers-dir}/csv" excludes="**/.svn,**/.svn/**"/> |
||
98 | </delete>
|
||
99 | 13154 | cesar | <mkdir dir="${drivers-dir}/csv" /> |
100 | <jar jarfile="${drivers-dir}/csv/csv.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/csv/**" /> |
||
101 | </target>
|
||
102 | |||
103 | <target name="dbf" description="Genera el jar de dbf"> |
||
104 | 14216 | jmvivo | <delete failonerror="false"> |
105 | <fileset dir="${drivers-dir}/dbf" excludes="**/.svn,**/.svn/**"/> |
||
106 | </delete>
|
||
107 | 13154 | cesar | <mkdir dir="${drivers-dir}/dbf" /> |
108 | <jar jarfile="${drivers-dir}/dbf/dbf.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/dbf/**" /> |
||
109 | </target>
|
||
110 | |||
111 | <target name="dxf" description="Genera el jar de dxf"> |
||
112 | 14216 | jmvivo | <delete failonerror="false"> |
113 | <fileset dir="${drivers-dir}/dxf" excludes="**/.svn,**/.svn/**"/> |
||
114 | </delete>
|
||
115 | 13154 | cesar | <mkdir dir="${drivers-dir}/dxf" /> |
116 | <jar jarfile="${drivers-dir}/dxf/dxf.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/dxf/**" /> |
||
117 | </target>
|
||
118 | |||
119 | <target name="shp" description="Genera el jar de shapefile de ESRI"> |
||
120 | 14216 | jmvivo | <delete failonerror="false"> |
121 | <fileset dir="${drivers-dir}/shp" excludes="**/.svn,**/.svn/**"/> |
||
122 | </delete>
|
||
123 | 13154 | cesar | <mkdir dir="${drivers-dir}/shp" /> |
124 | <jar jarfile="${drivers-dir}/shp/shp.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/shapefile/**" /> |
||
125 | </target>
|
||
126 | 13204 | jmvivo | |
127 | 13154 | cesar | <target name="foo" description="Genera el jar foo"> |
128 | 14216 | jmvivo | <delete failonerror="false"> |
129 | <fileset dir="${drivers-dir}/foo" excludes="**/.svn,**/.svn/**"/> |
||
130 | </delete>
|
||
131 | 13154 | cesar | <mkdir dir="${drivers-dir}/foo" /> |
132 | <jar jarfile="${drivers-dir}/foo/foo.jar" basedir="${classes-dir}" includes="com/hardcode/gdbms/driver/foodriver/**" /> |
||
133 | </target>
|
||
134 | <!-- hasta aqui los drivers que no se usan -->
|
||
135 | 13204 | jmvivo | |
136 | 466 | fernando | <target name="create-jar" description="Genera el jar de gdbms"> |
137 | 4052 | fjp | <delete file="../libFMap/lib/gdbms-0-8-SNAPSHOT.jar"/> |
138 | <jar jarfile="../libFMap/lib/gdbms-0.8-SNAPSHOT.jar"> |
||
139 | 5692 | cesar | <fileset dir="${build}" includes="com/hardcode/gdbms/engine/**" /> |
140 | <fileset dir="${build}" includes="com/hardcode/gdbms/parser/**" /> |
||
141 | <fileset dir="${build}" includes="com/hardcode/gdbms/driver/DriverUtilities.*" /> |
||
142 | 10627 | caballero | <fileset dir="${build}" includes="com/hardcode/gdbms/driver/exceptions/**" /> |
143 | 466 | fernando | </jar>
|
144 | </target>
|
||
145 | 10627 | caballero | |
146 | 4725 | vacevedo | <target name="buildAPIReference" description="Crea el documento Javadoc del componente"> |
147 | <delete dir="${apiReferenceDir}"/> |
||
148 | <mkdir dir="${apiReferenceDir}"/> |
||
149 | <javadoc
|
||
150 | author="true" |
||
151 | version="true" |
||
152 | destdir="${apiReferenceDir}" |
||
153 | maxmemory="512m" |
||
154 | source="1.4" |
||
155 | doctitle="DOCUMENTACION DEL API" |
||
156 | 10627 | caballero | >
|
157 | 4725 | vacevedo | <fileset dir="." |
158 | includes="src/main/**/*.java" /> |
||
159 | </javadoc>
|
||
160 | </target>
|
||
161 | 10627 | caballero | |
162 | 4725 | vacevedo | <target name="buildDocBook"> |
163 | <exec executable= "xsltproc" failonerror="false"> |
||
164 | <arg line="-o ./docs/src/developersGuide/model/model.html /usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl ./docs/src/developersGuide/model/model.docbook"/> |
||
165 | 10627 | caballero | </exec>
|
166 | 4725 | vacevedo | </target>
|
167 | 4902 | cesar | |
168 | <target name="batch-build" |
||
169 | description="compile the sources, create the jar file" |
||
170 | 7785 | cesar | depends="init,compile,generar-todos"> |
171 | 4902 | cesar | </target>
|
172 | |||
173 | <target name="compile" description="compile the source" > |
||
174 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
175 | <mkdir dir="${build}" /> |
||
176 | 13126 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
177 | 13296 | jmvivo | <gvSIG-javac
|
178 | 13204 | jmvivo | excludes="test/**" |
179 | classpath="${eclipseClasspath}" |
||
180 | sourcepath="${compile-sourcepath}"/> |
||
181 | 4902 | cesar | </target>
|
182 | |||
183 | <target name="clean" description="clean up" > |
||
184 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
185 | <delete dir="${build}"/> |
||
186 | <delete dir="${dist}"/> |
||
187 | </target>
|
||
188 | 13530 | cesar | |
189 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
190 | <antcall target="generic-run-tests"> |
||
191 | <param name="TestSuite.Name" value="com.iver.gvsig.centerviewpoint.AllTests"/> |
||
192 | </antcall>
|
||
193 | </target>
|
||
194 | 466 | fernando | </project> |