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