root / branches / v10 / extensions / extJDBC / build.xml @ 10561
History | View | Annotate | Download (5.07 KB)
1 | 10271 | jmvivo | <project name="extJDBC" default="generate-without-source" basedir="."> |
---|---|---|---|
2 | 2269 | fjp | <description>
|
3 | Instala el plugin en Andami |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <property name="src" location="src"/> |
||
7 | <property name="build" location="bin"/> |
||
8 | <property name="dist" location="dist"/> |
||
9 | 7813 | cesar | <property name="lib" location="lib"/> |
10 | 2269 | fjp | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
11 | <property name="plugin" value="com.iver.cit.gvsig.jdbc_spatial"/> |
||
12 | 10271 | jmvivo | <!-- <property name="drivers-src" value="com.iver.cit.gvsig.fmap.drivers.jdbc"/> -->
|
13 | 10408 | fjp | |
14 | <property name="mysqljar" value="mysql_spatial"/> |
||
15 | <property name="postgisjar" value="postgis_spatial"/> |
||
16 | <property name="hsqldbjar" value="hsqldb_spatial"/> |
||
17 | |||
18 | 10271 | jmvivo | <property name="andami" location="../_fwAndami"/> |
19 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
20 | 5647 | cesar | <property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers/jdbc_spatial" /> |
21 | 8765 | jjdelcerro | |
22 | 5647 | cesar | <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 | 10271 | jmvivo | <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:${andamiLibs}/log4j-1.2.8.jar:${fmapLibs}/mysql-connector-java-3.1.7-bin.jar:${fmapLibs}/postgis-jdbc-driver.jar:${fmapLibs}/postgresql-74.213.jar" /> |
28 | <property name="debug" value="on"/> |
||
29 | <property name="debuglevel" value="lines, vars"/> |
||
30 | |||
31 | 2269 | fjp | <target name="init"> |
32 | <!-- Create the time stamp -->
|
||
33 | <tstamp/> |
||
34 | 7201 | cesar | <echo>
|
35 | Compiling ${ant.project.name}...</echo>
|
||
36 | 2269 | fjp | <!-- Create the build directory structure used by compile -->
|
37 | <mkdir dir="${build}"/> |
||
38 | <mkdir dir="${dist}"/> |
||
39 | 8797 | jmvivo | <mkdir dir="${drivers-dir}" /> |
40 | 8765 | jjdelcerro | |
41 | 2269 | fjp | </target>
|
42 | 10185 | jmvivo | <target name="import-build-number"> |
43 | <copy todir="."> |
||
44 | <fileset file="${buildNumberFile}"/> |
||
45 | </copy>
|
||
46 | </target>
|
||
47 | 2269 | fjp | |
48 | 10271 | jmvivo | <target name="generate-without-source" |
49 | description="generate the distribution without the source file" |
||
50 | depends="init,create-jar,copy-data-files,copy-to-andami,clean-dist"> |
||
51 | 8797 | jmvivo | |
52 | 10271 | jmvivo | </target>
|
53 | 2269 | fjp | |
54 | 5647 | cesar | <target name="batch-build" |
55 | description="compile the sources, create the jar file" |
||
56 | 7813 | cesar | depends="init,compile,create-jar,copy-data-files,copy-to-andami"> |
57 | 5647 | cesar | </target>
|
58 | |||
59 | <target name="compile" description="compile the source" > |
||
60 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
61 | <mkdir dir="${build}" /> |
||
62 | <javac srcdir="${src}" |
||
63 | destdir="${build}" |
||
64 | 7776 | cesar | source="1.4" |
65 | target="1.4" |
||
66 | 6296 | cesar | debug="${debug}" |
67 | debuglevel="${debuglevel}" |
||
68 | 5647 | cesar | classpath="${compile-classpath}"/> |
69 | </target>
|
||
70 | 8765 | jjdelcerro | |
71 | 5647 | cesar | <target name="create-jar" |
72 | description="Creates the plugin jar"> |
||
73 | 10271 | jmvivo | |
74 | |||
75 | 10408 | fjp | <jar jarfile="${dist}/${postgisjar}.jar" basedir="${build}" |
76 | includes="com/iver/cit/gvsig/fmap/drivers/jdbc/postgis/**" |
||
77 | 8797 | jmvivo | />
|
78 | 10408 | fjp | <jar jarfile="${dist}/${mysqljar}.jar" basedir="${build}" |
79 | includes="com/iver/cit/gvsig/fmap/drivers/jdbc/mysql/**" |
||
80 | 10271 | jmvivo | />
|
81 | 10408 | fjp | <jar jarfile="${dist}/${hsqldbjar}.jar" basedir="${build}" |
82 | includes="com/iver/cit/gvsig/fmap/drivers/jdbc/hsqldb/**" |
||
83 | />
|
||
84 | 8797 | jmvivo | |
85 | 10408 | fjp | <!-- <jar jarfile="${dist}/${driverjar}-driver.jar" basedir="${build}"
|
86 | includes="com/iver/cit/gvsig/fmap/drivers/jdbc/*.class com/iver/cit/gvsig/fmap/drivers/jdbc/postgis/** com/iver/cit/gvsig/fmap/drivers/jdbc/mysql/**"
|
||
87 | /> -->
|
||
88 | |||
89 | 10479 | fjp | <!--
|
90 | LO CORRECTO SERÍA ESTO. CUANDO VICENTE PONGA LO DEL HEAD EN LA V10
|
||
91 | NO HARA FALTA COPIAR LOS DRIVERS AL LIB. LA COPIA SE HACE EN copy-to-andami -->
|
||
92 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" |
||
93 | 8797 | jmvivo | includes="com/iver/cit/gvsig/** " |
94 | 10479 | fjp | excludes="com/iver/cit/gvsig/fmap/drivers/**" /> |
95 | 8797 | jmvivo | |
96 | 5647 | cesar | </target>
|
97 | |||
98 | <target name="copy-data-files"> |
||
99 | 8797 | jmvivo | |
100 | |||
101 | 10271 | jmvivo | <copy file="config/config.xml" todir="${dist}"/> |
102 | 5647 | cesar | <copy todir="${dist}"> |
103 | <fileset dir="config" includes="text*.properties"/> |
||
104 | </copy>
|
||
105 | <copy todir="${dist}/images"> |
||
106 | <fileset dir="images/" includes="*"/> |
||
107 | </copy>
|
||
108 | </target>
|
||
109 | 8765 | jjdelcerro | |
110 | 7813 | cesar | <target name="copy-to-andami"> |
111 | 8797 | jmvivo | |
112 | 9140 | cesar | <copy todir="${drivers-dir}"> |
113 | 10408 | fjp | <fileset dir="${dist}" includes="${mysqljar}.jar"/> |
114 | <fileset dir="${dist}" includes="${postgisjar}.jar"/> |
||
115 | <fileset dir="${dist}" includes="${hsqldbjar}.jar"/> |
||
116 | 8909 | jmvivo | </copy>
|
117 | <copy todir="${extensionsDir}/${plugin}/"> |
||
118 | 10408 | fjp | <fileset dir="${dist}" includes="${plugin}.jar"/> |
119 | <fileset dir="${dist}" excludes="*.jar"/> |
||
120 | 8909 | jmvivo | </copy>
|
121 | 10479 | fjp | <!-- PROVISIONAL -->
|
122 | <copy todir="${lib-dir}/"> |
||
123 | <fileset dir="${dist}" includes="${mysqljar}.jar"/> |
||
124 | <fileset dir="${dist}" includes="${postgisjar}.jar"/> |
||
125 | <fileset dir="${dist}" includes="${hsqldbjar}.jar"/> |
||
126 | </copy>
|
||
127 | <!-- FIN PROVISIONAL -->
|
||
128 | 10271 | jmvivo | |
129 | 5647 | cesar | </target>
|
130 | 9140 | cesar | |
131 | 10271 | jmvivo | <target name="clean-dist"> |
132 | <delete dir="${dist}"/> |
||
133 | </target>
|
||
134 | 8765 | jjdelcerro | |
135 | 2269 | fjp | <target name="clean" |
136 | description="clean up" > |
||
137 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
138 | <delete dir="${dist}"/> |
||
139 | </target>
|
||
140 | </project>
|