root / trunk / extensions / extJDBC / build.xml @ 9337
History | View | Annotate | Download (4.22 KB)
1 | 7218 | cesar | <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 | 2279 | fjp | <!-- <property name="drivers-src" value="com.iver.cit.gvsig.fmap.drivers.jdbc"/> -->
|
13 | <property name="driverjar" value="jdbc_spatial"/> |
||
14 | 5647 | cesar | <property name="andami" location="../_fwAndami"/> |
15 | <property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
||
16 | <property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers/jdbc_spatial" /> |
||
17 | 8662 | caballero | |
18 | 5647 | cesar | <property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/> |
19 | <property name="fmapLibs" location="../libFMap/lib" /> |
||
20 | <property name="andamiLibs" location="${andami}/lib" /> |
||
21 | <property name="andamiJar" location="${andami}/andami.jar"/> |
||
22 | <property name="gvsigJar" location="${extensionsDir}/${mainplugin}/lib/${mainplugin}.jar"/> |
||
23 | 7140 | cesar | <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" /> |
24 | 9140 | cesar | <property name="debug" value="on"/> |
25 | <property name="debuglevel" value="lines, vars"/> |
||
26 | 5648 | cesar | |
27 | 2269 | fjp | <target name="init"> |
28 | <!-- Create the time stamp -->
|
||
29 | <tstamp/> |
||
30 | 7218 | cesar | <echo>
|
31 | Compiling ${ant.project.name}...</echo>
|
||
32 | 2269 | fjp | <!-- Create the build directory structure used by compile -->
|
33 | <mkdir dir="${build}"/> |
||
34 | <mkdir dir="${dist}"/> |
||
35 | 8796 | jmvivo | <mkdir dir="${drivers-dir}" /> |
36 | 8662 | caballero | |
37 | 2269 | fjp | </target>
|
38 | |||
39 | <target name="generate-without-source" |
||
40 | 8796 | jmvivo | description="generate the distribution without the source file" |
41 | 9140 | cesar | depends="init,create-jar,copy-data-files,copy-to-andami,clean-dist"> |
42 | 8796 | jmvivo | |
43 | 2269 | fjp | </target>
|
44 | |||
45 | 5647 | cesar | <target name="batch-build" |
46 | description="compile the sources, create the jar file" |
||
47 | 7813 | cesar | depends="init,compile,create-jar,copy-data-files,copy-to-andami"> |
48 | 5647 | cesar | </target>
|
49 | |||
50 | <target name="compile" description="compile the source" > |
||
51 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
52 | <mkdir dir="${build}" /> |
||
53 | <javac srcdir="${src}" |
||
54 | destdir="${build}" |
||
55 | 7786 | cesar | source="1.4" |
56 | target="1.4" |
||
57 | 6296 | cesar | debug="${debug}" |
58 | debuglevel="${debuglevel}" |
||
59 | 5647 | cesar | classpath="${compile-classpath}"/> |
60 | </target>
|
||
61 | 8662 | caballero | |
62 | 5647 | cesar | <target name="create-jar" |
63 | description="Creates the plugin jar"> |
||
64 | 8796 | jmvivo | |
65 | |||
66 | 9140 | cesar | <jar jarfile="${dist}/${driverjar}.jar" basedir="${build}" |
67 | 8796 | jmvivo | 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/**" |
68 | />
|
||
69 | 9162 | cesar | <jar jarfile="${dist}/${driverjar}-driver.jar" basedir="${build}" |
70 | 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/**" |
||
71 | />
|
||
72 | 8796 | jmvivo | |
73 | <jar jarfile="${dist}/${plugin}.jar" basedir="${build}" |
||
74 | includes="com/iver/cit/gvsig/** " |
||
75 | excludes="com/iver/cit/gvsig/fmap/drivers/**" /> |
||
76 | |||
77 | 5647 | cesar | </target>
|
78 | |||
79 | <target name="copy-data-files"> |
||
80 | 8796 | jmvivo | |
81 | |||
82 | 5647 | cesar | <copy file="config/config.xml" todir="${dist}"/> |
83 | <copy todir="${dist}"> |
||
84 | <fileset dir="config" includes="text*.properties"/> |
||
85 | </copy>
|
||
86 | <copy todir="${dist}/images"> |
||
87 | <fileset dir="images/" includes="*"/> |
||
88 | </copy>
|
||
89 | </target>
|
||
90 | 8662 | caballero | |
91 | 7813 | cesar | <target name="copy-to-andami"> |
92 | 8796 | jmvivo | |
93 | 9140 | cesar | <copy todir="${drivers-dir}"> |
94 | <fileset dir="${dist}" includes="${driverjar}.jar"/> |
||
95 | 8908 | jmvivo | </copy>
|
96 | <copy todir="${extensionsDir}/${plugin}/"> |
||
97 | 9162 | cesar | <fileset dir="${dist}" excludes="${driverjar}.jar,${driverjar}-driver.jar"/> |
98 | 8908 | jmvivo | </copy>
|
99 | 9162 | cesar | <copy todir="${lib-dir}"> |
100 | <fileset dir="${dist}" includes="${driverjar}-driver.jar"/> |
||
101 | </copy>
|
||
102 | 8796 | jmvivo | |
103 | 5647 | cesar | </target>
|
104 | 9140 | cesar | |
105 | <target name="clean-dist"> |
||
106 | <delete dir="${dist}"/> |
||
107 | </target>
|
||
108 | 8662 | caballero | |
109 | 2269 | fjp | <target name="clean" |
110 | description="clean up" > |
||
111 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
112 | <delete dir="${dist}"/> |
||
113 | 5647 | cesar | <delete dir="${build}"/> |
114 | 2269 | fjp | </target>
|
115 | </project>
|