svn-gvsig-desktop / trunk / extensions / extOracleSpatial / build.xml @ 14159
History | View | Annotate | Download (7.81 KB)
1 | 14036 | jldominguez@prodevelop.es | <project name="Oracle Spatial extension" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | |||
3 | <description>Adds the Oracle Spatial driver</description> |
||
4 | |||
5 | 14159 | jldominguez | <!-- set global properties for this build... -->
|
6 | 13991 | jldominguez@prodevelop.es | <property name="src" location="src"/> |
7 | <property name="build" location="bin"/> |
||
8 | <property name="dist" location="dist"/> |
||
9 | <property name="bindist" location="./install/bin/gvSIG"/> |
||
10 | <property name="lib" location="lib"/> |
||
11 | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
||
12 | 14028 | fran.penarrubia@iver.es | <property name="plugin" value="com.iver.cit.gvsig.oracle_spatial"/> |
13 | 13991 | jldominguez@prodevelop.es | <!-- <property name="drivers-src" value="com.iver.ci
|
14 | t.gvsig.fmap.drivers.jdbc"/> -->
|
||
15 | <property name="gvsiglibjar" value="gvsig-jdbcspatial"/> |
||
16 | <property name="fmapjar" value="fmap-jdbcspatial"/> |
||
17 | <property name="oraclejar" value="oracle_spatial"/> |
||
18 | <property name="andami" location="../_fwAndami"/> |
||
19 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
20 | <property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers/jdbc_spatial" /> |
||
21 | |||
22 | <property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/> |
||
23 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
24 | <property name="andamiLibs" location="${andami}/lib" /> |
||
25 | <property name="andamiJar" location="${andami}/andami.jar"/> |
||
26 | <property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
||
27 | 14064 | joaquin.delcerro@iver.es | <property name="compile-classpath" value="${andamiJar}:${gvsigJar}:${andamiLibs}/beans.jar:${fmapLibs}/cms.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/fmap.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/jts-1.7.jar:${fmapLibs}/jtsio-1.7.jar:${andamiLibs}/log4j-1.2.8.jar:${fmapLibs}/mysql-connector-java-3.1.7-bin.jar:${fmapLibs}/ojdbc14.jar:${fmapLibs}/postgis-jdbc-driver.jar:${fmapLibs}/postgresql-74.213.jar" /> |
28 | <property name="encoding" value="ISO_8859_1"/> |
||
29 | <property name="debug" value="on"/> |
||
30 | <property name="debuglevel" value="lines, vars"/> |
||
31 | <property name="JavaSourceVersion" value="1.4"/> |
||
32 | <property name="JavaTargetVersion" value="1.4"/> |
||
33 | 14028 | fran.penarrubia@iver.es | |
34 | 14054 | josemanuel.vivo@iver.es | <target name="init" depends="check-file,no-lib-file"> |
35 | 13991 | jldominguez@prodevelop.es | <!-- Create the time stamp -->
|
36 | <tstamp/> |
||
37 | <echo>
|
||
38 | Compiling ${ant.project.name}...</echo>
|
||
39 | <!-- Create the build directory structure used by compile -->
|
||
40 | <mkdir dir="${build}"/> |
||
41 | <mkdir dir="${dist}"/> |
||
42 | <mkdir dir="${drivers-dir}" /> |
||
43 | |||
44 | </target>
|
||
45 | |||
46 | <target name="generate-without-source" |
||
47 | description="generate the distribution without the source file" |
||
48 | depends="init,create-jar,copy-data-files,copy-to-andami, clean"> |
||
49 | </target>
|
||
50 | |||
51 | <!-- -->
|
||
52 | <!-- -->
|
||
53 | <!-- INSTALLATION TREE -->
|
||
54 | <!-- -->
|
||
55 | <!-- -->
|
||
56 | |||
57 | <target name="generate-install-tree" description="Generate the installation tree." depends="init"> |
||
58 | 14028 | fran.penarrubia@iver.es | |
59 | 13991 | jldominguez@prodevelop.es | <!-- create dirs -->
|
60 | 14014 | jldominguez@prodevelop.es | <delete dir="${bindist}"/> |
61 | 13991 | jldominguez@prodevelop.es | <mkdir dir="${bindist}"/> |
62 | <mkdir dir="${bindist}/extensiones"/> |
||
63 | <mkdir dir="${bindist}/extensiones/${plugin}"/> |
||
64 | <mkdir dir="${bindist}/extensiones/${mainplugin}/drivers/jdbc_spatial"/> |
||
65 | |||
66 | <!-- includes="com/iver/cit/gvsig/fmap/drivers/jdbc/oracle/**" -->
|
||
67 | <!-- put oracle driver in place -->
|
||
68 | <jar jarfile="${bindist}/extensiones/${mainplugin}/drivers/jdbc_spatial/${oraclejar}.jar" |
||
69 | basedir="${build}" |
||
70 | includes="es/prodevelop/cit/gvsig/fmap/drivers/jdbc/oracle/**" |
||
71 | />
|
||
72 | 14028 | fran.penarrubia@iver.es | |
73 | 13991 | jldominguez@prodevelop.es | <!-- extension classes in place -->
|
74 | <jar jarfile="${bindist}/extensiones/${plugin}/${plugin}.jar" basedir="${build}" |
||
75 | 14009 | jldominguez@prodevelop.es | excludes="es/prodevelop/cit/gvsig/fmap/drivers/**"> |
76 | 14028 | fran.penarrubia@iver.es | |
77 | 14009 | jldominguez@prodevelop.es | <include name="es/prodevelop/cit/gvsig/**"/> |
78 | <include name="com/iver/**"/> |
||
79 | </jar>
|
||
80 | 13991 | jldominguez@prodevelop.es | |
81 | <!-- copy resource files -->
|
||
82 | <copy file="config/config.xml" todir="${bindist}/extensiones/${plugin}"/> |
||
83 | 14028 | fran.penarrubia@iver.es | |
84 | 13991 | jldominguez@prodevelop.es | <copy todir="${bindist}/extensiones/${plugin}"> |
85 | <fileset dir="config" includes="text*.properties"/> |
||
86 | </copy>
|
||
87 | 14028 | fran.penarrubia@iver.es | |
88 | 13991 | jldominguez@prodevelop.es | <copy todir="${bindist}/extensiones/${plugin}/images"> |
89 | <fileset dir="images/" includes="*"/> |
||
90 | </copy>
|
||
91 | 14028 | fran.penarrubia@iver.es | |
92 | 13991 | jldominguez@prodevelop.es | <copy todir="${bindist}/extensiones/${plugin}/about"> |
93 | <fileset dir="about/" includes="*"/> |
||
94 | </copy>
|
||
95 | 14028 | fran.penarrubia@iver.es | |
96 | 13991 | jldominguez@prodevelop.es | <copy todir="${bindist}/extensiones/${plugin}/dbf"> |
97 | <fileset dir="dbf/" includes="*"/> |
||
98 | </copy>
|
||
99 | 14028 | fran.penarrubia@iver.es | |
100 | 13991 | jldominguez@prodevelop.es | <!-- copy lib files to gvsig main lib flder -->
|
101 | 14014 | jldominguez@prodevelop.es | <!--
|
102 | 13991 | jldominguez@prodevelop.es | <copy todir="${bindist}/extensiones/${mainplugin}/lib">
|
103 | <fileset dir="lib/" includes="ojdbc*.jar"/>
|
||
104 | </copy>
|
||
105 | 14014 | jldominguez@prodevelop.es | -->
|
106 | 13991 | jldominguez@prodevelop.es | |
107 | <!-- PROVISIONAL -->
|
||
108 | <copy todir="${bindist}/extensiones/${mainplugin}/lib"> |
||
109 | <fileset dir="${bindist}/extensiones/${mainplugin}/drivers/jdbc_spatial" |
||
110 | includes="${oraclejar}.jar"/> |
||
111 | </copy>
|
||
112 | 14028 | fran.penarrubia@iver.es | <!-- FIN PROVISIONAL -->
|
113 | 13991 | jldominguez@prodevelop.es | |
114 | </target>
|
||
115 | 14028 | fran.penarrubia@iver.es | |
116 | 13991 | jldominguez@prodevelop.es | <!-- -->
|
117 | <!-- -->
|
||
118 | <!-- INSTALLATION TREE -->
|
||
119 | <!-- -->
|
||
120 | <!-- -->
|
||
121 | |||
122 | 14028 | fran.penarrubia@iver.es | |
123 | 13991 | jldominguez@prodevelop.es | <target name="batch-build" |
124 | description="compile the sources, create the jar file" |
||
125 | depends="init,compile,create-jar,copy-data-files,copy-to-andami"> |
||
126 | </target>
|
||
127 | |||
128 | 14054 | josemanuel.vivo@iver.es | <target name="check-file"> |
129 | 14060 | joaquin.delcerro@iver.es | <available property="lib_found" file="${fmapLibs}/ojdbc14.jar" type="file"/> |
130 | 14054 | josemanuel.vivo@iver.es | </target>
|
131 | |||
132 | <target name="no-lib-file" unless="lib_found"> |
||
133 | <echo message="WARNING: ojdbc14.jar Missing " /> |
||
134 | </target>
|
||
135 | |||
136 | |||
137 | |||
138 | <target name="compile" description="compile the source" if="lib_found" > |
||
139 | 13991 | jldominguez@prodevelop.es | <!-- Compile the Java code from ${src} to ${build} -->
|
140 | <mkdir dir="${build}" /> |
||
141 | <javac srcdir="${src}" |
||
142 | destdir="${build}" |
||
143 | 14025 | josemanuel.vivo@iver.es | source="${JavaSourceVersion}" |
144 | target="${JavaTargetVersion}" |
||
145 | 13991 | jldominguez@prodevelop.es | debug="${debug}" |
146 | debuglevel="${debuglevel}" |
||
147 | 14064 | joaquin.delcerro@iver.es | classpath="${compile-classpath}" |
148 | encoding="${encoding}"/> |
||
149 | 13991 | jldominguez@prodevelop.es | </target>
|
150 | |||
151 | <target name="create-jar" |
||
152 | description="Creates the plugin jar"> |
||
153 | |||
154 | <jar jarfile="${dist}/${oraclejar}.jar" basedir="${build}" |
||
155 | includes="es/prodevelop/cit/gvsig/fmap/drivers/jdbc/oracle/**" |
||
156 | />
|
||
157 | 14028 | fran.penarrubia@iver.es | |
158 | 13991 | jldominguez@prodevelop.es | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" |
159 | 14009 | jldominguez@prodevelop.es | excludes="es/prodevelop/cit/gvsig/fmap/drivers/**"> |
160 | |||
161 | <include name="es/prodevelop/cit/gvsig/**"/> |
||
162 | <include name="com/iver/**"/> |
||
163 | |||
164 | </jar>
|
||
165 | 14028 | fran.penarrubia@iver.es | |
166 | 13991 | jldominguez@prodevelop.es | </target>
|
167 | 14028 | fran.penarrubia@iver.es | |
168 | 13991 | jldominguez@prodevelop.es | <target name="copy-data-files"> |
169 | 14028 | fran.penarrubia@iver.es | |
170 | 14025 | josemanuel.vivo@iver.es | <copy file="config/config.xml" todir="${dist}" overwrite="true"/> |
171 | 14028 | fran.penarrubia@iver.es | |
172 | 14025 | josemanuel.vivo@iver.es | <copy todir="${dist}" overwrite="true"> |
173 | 13991 | jldominguez@prodevelop.es | <fileset dir="config" includes="text*.properties"/> |
174 | </copy>
|
||
175 | 14028 | fran.penarrubia@iver.es | |
176 | 14025 | josemanuel.vivo@iver.es | <copy todir="${dist}/images" overwrite="true"> |
177 | 13991 | jldominguez@prodevelop.es | <fileset dir="images/" includes="*"/> |
178 | </copy>
|
||
179 | 14028 | fran.penarrubia@iver.es | |
180 | 14025 | josemanuel.vivo@iver.es | <copy todir="${dist}/about" overwrite="true"> |
181 | 13991 | jldominguez@prodevelop.es | <fileset dir="about/" includes="*"/> |
182 | </copy>
|
||
183 | 14028 | fran.penarrubia@iver.es | |
184 | 14025 | josemanuel.vivo@iver.es | <copy todir="${dist}/dbf" overwrite="true"> |
185 | 13991 | jldominguez@prodevelop.es | <fileset dir="dbf/" includes="*"/> |
186 | </copy>
|
||
187 | 14028 | fran.penarrubia@iver.es | |
188 | 13991 | jldominguez@prodevelop.es | </target>
|
189 | 14028 | fran.penarrubia@iver.es | |
190 | 13991 | jldominguez@prodevelop.es | <target name="copy-to-andami"> |
191 | 14014 | jldominguez@prodevelop.es | |
192 | 14025 | josemanuel.vivo@iver.es | <copy todir="${lib-dir}" overwrite="true"> |
193 | 14014 | jldominguez@prodevelop.es | <!-- <fileset dir="lib/" includes="sdoapi.jar*"/> -->
|
194 | 13991 | jldominguez@prodevelop.es | <fileset dir="lib/" includes="ojdbc*.jar*"/> |
195 | </copy>
|
||
196 | |||
197 | <!-- <copy todir="${drivers-dir}">
|
||
198 | <fileset dir="${dist}" includes="${driverjar}.jar"/>
|
||
199 | </copy>
|
||
200 | <copy todir="${extensionsDir}/${plugin}/">
|
||
201 | <fileset dir="${dist}" excludes="${driverjar}.jar,${driverjar}-driver.jar"/>
|
||
202 | </copy>
|
||
203 | <copy todir="${lib-dir}">
|
||
204 | <fileset dir="${dist}" includes="${driverjar}-driver.jar"/>
|
||
205 | </copy> -->
|
||
206 | |||
207 | 14025 | josemanuel.vivo@iver.es | <copy todir="${drivers-dir}" overwrite="true"> |
208 | <fileset dir="${dist}" includes="${oraclejar}.jar" /> |
||
209 | 13991 | jldominguez@prodevelop.es | </copy>
|
210 | 14025 | josemanuel.vivo@iver.es | <copy todir="${extensionsDir}/${plugin}/" overwrite="true"> |
211 | 13991 | jldominguez@prodevelop.es | <fileset dir="${dist}" includes="${plugin}.jar"/> |
212 | <fileset dir="${dist}" excludes="*.jar"/> |
||
213 | </copy>
|
||
214 | <!-- PROVISIONAL -->
|
||
215 | 14025 | josemanuel.vivo@iver.es | <copy todir="${lib-dir}/" overwrite="true"> |
216 | 13991 | jldominguez@prodevelop.es | <fileset dir="${dist}" includes="${oraclejar}.jar"/> |
217 | </copy>
|
||
218 | 14028 | fran.penarrubia@iver.es | <!-- FIN PROVISIONAL -->
|
219 | |||
220 | 13991 | jldominguez@prodevelop.es | </target>
|
221 | 14025 | josemanuel.vivo@iver.es | <target name="import-build-number"> |
222 | <copy todir="."> |
||
223 | <fileset file="${buildNumberFile}"/> |
||
224 | </copy>
|
||
225 | </target>
|
||
226 | |||
227 | |||
228 | 14028 | fran.penarrubia@iver.es | |
229 | 13991 | jldominguez@prodevelop.es | <target name="clean" |
230 | description="clean up" > |
||
231 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
232 | <delete dir="${dist}"/> |
||
233 | </target>
|
||
234 | </project>
|