svn-gvsig-desktop / tags / v1_10_0_Build_1263_RC2 / extensions / extJDBC / build.xml @ 39482
History | View | Annotate | Download (3.8 KB)
1 |
<project name="extJDBC" default="generate-without-source" basedir="."> |
---|---|
2 |
<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="src-test" location="src-test"/> |
9 |
<property name="build-test" location="bin-test"/> |
10 |
<property name="dist" location="dist"/> |
11 |
<property name="lib" location="lib"/> |
12 |
<property name="mainplugin" value="com.iver.cit.gvsig"/> |
13 |
<property name="plugin" value="com.iver.cit.gvsig.jdbc_spatial"/> |
14 |
<property name="driverjar" value="jdbc_spatial"/> |
15 |
<property name="andami" location="../_fwAndami"/> |
16 |
<property name="extensionsDir" location="${andami}/gvSIG/extensiones"/> |
17 |
<property name="drivers-dir" location="${extensionsDir}/${mainplugin}/drivers/jdbc_spatial" /> |
18 |
<property name="lib-dir" location="${extensionsDir}/${mainplugin}/lib"/> |
19 |
<import file="../binaries/ant/utilities.xml"/> |
20 |
|
21 |
<target name="init"> |
22 |
<!-- Create the time stamp -->
|
23 |
<tstamp/> |
24 |
<echo>
|
25 |
Compiling ${ant.project.name}...</echo>
|
26 |
<!-- Create the build directory structure used by compile -->
|
27 |
<mkdir dir="${build}"/> |
28 |
<mkdir dir="${dist}"/> |
29 |
<mkdir dir="${drivers-dir}" /> |
30 |
|
31 |
</target>
|
32 |
|
33 |
<target name="generate-without-source" |
34 |
description="generate the distribution without the source file" |
35 |
depends="init,create-jar,copy-data-files,copy-to-andami,clean-dist"> |
36 |
|
37 |
</target>
|
38 |
|
39 |
<target name="batch-build" |
40 |
description="compile the sources, create the jar file" |
41 |
depends="init,compile,create-jar,copy-data-files,copy-to-andami"> |
42 |
</target>
|
43 |
|
44 |
<target name="compile" description="compile the source" > |
45 |
<antcall target="gvSIG-import-build-number"/> |
46 |
<!-- Compile the Java code from ${src} to ${build} -->
|
47 |
<mkdir dir="${build}" /> |
48 |
<loadEclipseClasspath project="${basedir}"/> |
49 |
<gvSIG-javac
|
50 |
classpath="${eclipseClasspath}" |
51 |
/>
|
52 |
</target>
|
53 |
|
54 |
<target name="create-jar" |
55 |
description="Creates the plugin jar"> |
56 |
|
57 |
|
58 |
<jar jarfile="${dist}/${driverjar}.jar" basedir="${build}" |
59 |
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/**" |
60 |
/>
|
61 |
<jar jarfile="${dist}/${driverjar}-driver.jar" basedir="${build}" |
62 |
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/**" |
63 |
/>
|
64 |
|
65 |
<jar jarfile="${dist}/${plugin}.jar" basedir="${build}" |
66 |
includes="com/iver/cit/gvsig/** " |
67 |
excludes="com/iver/cit/gvsig/fmap/drivers/**" /> |
68 |
|
69 |
</target>
|
70 |
|
71 |
<target name="copy-data-files"> |
72 |
|
73 |
<copy file="config/config.xml" todir="${dist}"/> |
74 |
|
75 |
<copy file="build.number" todir="${dist}"/> |
76 |
<copy todir="${dist}"> |
77 |
<fileset dir="config" includes="text*.properties"/> |
78 |
</copy>
|
79 |
<copy todir="${dist}/images"> |
80 |
<fileset dir="images/" includes="*"/> |
81 |
</copy>
|
82 |
</target>
|
83 |
|
84 |
<target name="copy-to-andami"> |
85 |
<copy file="build.number" todir="${extensionsDir}/${plugin}"/> |
86 |
|
87 |
<copy todir="${drivers-dir}"> |
88 |
<fileset dir="${dist}" includes="${driverjar}.jar"/> |
89 |
</copy>
|
90 |
<copy todir="${extensionsDir}/${plugin}/"> |
91 |
<fileset dir="${dist}" excludes="${driverjar}.jar,${driverjar}-driver.jar"/> |
92 |
</copy>
|
93 |
<copy todir="${lib-dir}"> |
94 |
<fileset dir="${dist}" includes="${driverjar}-driver.jar"/> |
95 |
</copy>
|
96 |
|
97 |
</target>
|
98 |
|
99 |
<target name="clean-dist"> |
100 |
<delete dir="${dist}"/> |
101 |
</target>
|
102 |
|
103 |
<target name="clean" |
104 |
description="clean up" > |
105 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
106 |
<delete dir="${dist}"/> |
107 |
<delete dir="${build}"/> |
108 |
</target>
|
109 |
|
110 |
<target name="run-tests" depends="batch-build,compile-tests"> |
111 |
<antcall target="generic-run-tests"> |
112 |
<param name="TestSuite.Name" value="org.gvsig.remoteClient.AllTests"/> |
113 |
</antcall>
|
114 |
</target>
|
115 |
</project>
|
116 |
|