svn-gvsig-desktop / branches / v10 / extensions / extJDBC / build.xml @ 11421
History | View | Annotate | Download (5.2 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 | 10565 | jmvivo | <property name="JavaSourceVersion" value="1.4"/> |
31 | <property name="JavaTargetVersion" value="1.4"/> |
||
32 | 10271 | jmvivo | |
33 | 2269 | fjp | <target name="init"> |
34 | <!-- Create the time stamp -->
|
||
35 | <tstamp/> |
||
36 | 7201 | cesar | <echo>
|
37 | Compiling ${ant.project.name}...</echo>
|
||
38 | 2269 | fjp | <!-- Create the build directory structure used by compile -->
|
39 | <mkdir dir="${build}"/> |
||
40 | <mkdir dir="${dist}"/> |
||
41 | 8797 | jmvivo | <mkdir dir="${drivers-dir}" /> |
42 | 8765 | jjdelcerro | |
43 | 2269 | fjp | </target>
|
44 | 10185 | jmvivo | <target name="import-build-number"> |
45 | <copy todir="."> |
||
46 | <fileset file="${buildNumberFile}"/> |
||
47 | </copy>
|
||
48 | </target>
|
||
49 | 2269 | fjp | |
50 | 10271 | jmvivo | <target name="generate-without-source" |
51 | description="generate the distribution without the source file" |
||
52 | depends="init,create-jar,copy-data-files,copy-to-andami,clean-dist"> |
||
53 | 8797 | jmvivo | |
54 | 10271 | jmvivo | </target>
|
55 | 2269 | fjp | |
56 | 5647 | cesar | <target name="batch-build" |
57 | description="compile the sources, create the jar file" |
||
58 | 7813 | cesar | depends="init,compile,create-jar,copy-data-files,copy-to-andami"> |
59 | 5647 | cesar | </target>
|
60 | |||
61 | <target name="compile" description="compile the source" > |
||
62 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
63 | <mkdir dir="${build}" /> |
||
64 | <javac srcdir="${src}" |
||
65 | destdir="${build}" |
||
66 | 10565 | jmvivo | source="${JavaSourceVersion}" |
67 | target="${JavaTargetVersion}" |
||
68 | 6296 | cesar | debug="${debug}" |
69 | debuglevel="${debuglevel}" |
||
70 | 5647 | cesar | classpath="${compile-classpath}"/> |
71 | </target>
|
||
72 | 8765 | jjdelcerro | |
73 | 5647 | cesar | <target name="create-jar" |
74 | description="Creates the plugin jar"> |
||
75 | 10271 | jmvivo | |
76 | |||
77 | 10408 | fjp | <jar jarfile="${dist}/${postgisjar}.jar" basedir="${build}" |
78 | includes="com/iver/cit/gvsig/fmap/drivers/jdbc/postgis/**" |
||
79 | 8797 | jmvivo | />
|
80 | 10408 | fjp | <jar jarfile="${dist}/${mysqljar}.jar" basedir="${build}" |
81 | includes="com/iver/cit/gvsig/fmap/drivers/jdbc/mysql/**" |
||
82 | 10271 | jmvivo | />
|
83 | 10408 | fjp | <jar jarfile="${dist}/${hsqldbjar}.jar" basedir="${build}" |
84 | includes="com/iver/cit/gvsig/fmap/drivers/jdbc/hsqldb/**" |
||
85 | />
|
||
86 | 8797 | jmvivo | |
87 | 10408 | fjp | <!-- <jar jarfile="${dist}/${driverjar}-driver.jar" basedir="${build}"
|
88 | 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/**"
|
||
89 | /> -->
|
||
90 | |||
91 | 10479 | fjp | <!--
|
92 | LO CORRECTO SERÍA ESTO. CUANDO VICENTE PONGA LO DEL HEAD EN LA V10
|
||
93 | NO HARA FALTA COPIAR LOS DRIVERS AL LIB. LA COPIA SE HACE EN copy-to-andami -->
|
||
94 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" |
||
95 | 8797 | jmvivo | includes="com/iver/cit/gvsig/** " |
96 | 10479 | fjp | excludes="com/iver/cit/gvsig/fmap/drivers/**" /> |
97 | 8797 | jmvivo | |
98 | 5647 | cesar | </target>
|
99 | |||
100 | <target name="copy-data-files"> |
||
101 | 8797 | jmvivo | |
102 | |||
103 | 10271 | jmvivo | <copy file="config/config.xml" todir="${dist}"/> |
104 | 5647 | cesar | <copy todir="${dist}"> |
105 | <fileset dir="config" includes="text*.properties"/> |
||
106 | </copy>
|
||
107 | <copy todir="${dist}/images"> |
||
108 | <fileset dir="images/" includes="*"/> |
||
109 | </copy>
|
||
110 | </target>
|
||
111 | 8765 | jjdelcerro | |
112 | 7813 | cesar | <target name="copy-to-andami"> |
113 | 8797 | jmvivo | |
114 | 9140 | cesar | <copy todir="${drivers-dir}"> |
115 | 10408 | fjp | <fileset dir="${dist}" includes="${mysqljar}.jar"/> |
116 | <fileset dir="${dist}" includes="${postgisjar}.jar"/> |
||
117 | <fileset dir="${dist}" includes="${hsqldbjar}.jar"/> |
||
118 | 8909 | jmvivo | </copy>
|
119 | <copy todir="${extensionsDir}/${plugin}/"> |
||
120 | 10408 | fjp | <fileset dir="${dist}" includes="${plugin}.jar"/> |
121 | <fileset dir="${dist}" excludes="*.jar"/> |
||
122 | 8909 | jmvivo | </copy>
|
123 | 10479 | fjp | <!-- PROVISIONAL -->
|
124 | <copy todir="${lib-dir}/"> |
||
125 | <fileset dir="${dist}" includes="${mysqljar}.jar"/> |
||
126 | <fileset dir="${dist}" includes="${postgisjar}.jar"/> |
||
127 | <fileset dir="${dist}" includes="${hsqldbjar}.jar"/> |
||
128 | </copy>
|
||
129 | <!-- FIN PROVISIONAL -->
|
||
130 | 10271 | jmvivo | |
131 | 5647 | cesar | </target>
|
132 | 9140 | cesar | |
133 | 10271 | jmvivo | <target name="clean-dist"> |
134 | <delete dir="${dist}"/> |
||
135 | </target>
|
||
136 | 8765 | jjdelcerro | |
137 | 2269 | fjp | <target name="clean" |
138 | description="clean up" > |
||
139 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
140 | <delete dir="${dist}"/> |
||
141 | </target>
|
||
142 | </project>
|