svn-gvsig-desktop / tags / v2_0_0_Build_2000 / libraries / libDriverManager / build.xml @ 45597
History | View | Annotate | Download (2.03 KB)
1 |
<project name="Driver Manager" default="dist" basedir="."> |
---|---|
2 |
<description>
|
3 |
Instala el plugin |
4 |
</description>
|
5 |
<!-- set global properties for this build
|
6 |
<property name="drivers-dir" location="../Andami/gvSIG/extensiones/com.iver.cit.gvsig/drivers" />-->
|
7 |
<property name="src" value="src"/> |
8 |
<property name="build" value="bin"/> |
9 |
<property name="src-test" value="src-test"/> |
10 |
<property name="build-test" value="bin-test"/> |
11 |
<property name="dist" location="dist"/> |
12 |
<property name="jarName" value="driver-manager-1.1"/> |
13 |
<property name="targetDir" value="../libFMap/lib"/> |
14 |
<import file="../binaries/ant/utilities.xml"/> |
15 |
|
16 |
<target name="init"> |
17 |
<!-- Create the time stamp -->
|
18 |
<tstamp /> |
19 |
<echo>
|
20 |
Compiling ${ant.project.name}...</echo>
|
21 |
</target>
|
22 |
|
23 |
<target name="batch-build" |
24 |
description="compile the sources, create the jar file" |
25 |
depends="init,compile,create-jar,move-to-fmap"> |
26 |
</target>
|
27 |
|
28 |
<target name="dist" |
29 |
description="create the jar file, copy it to libFMap" |
30 |
depends="init,create-jar,move-to-fmap"> |
31 |
</target>
|
32 |
<target name="compile" description="compile the source" > |
33 |
<!-- Compile the Java code from ${src} to ${build} -->
|
34 |
<mkdir dir="${build}" /> |
35 |
<loadEclipseClasspath project="${basedir}"/> |
36 |
<gvSIG-javac
|
37 |
classpath="${eclipseClasspath}" |
38 |
/>
|
39 |
</target>
|
40 |
|
41 |
<target name="create-jar" description="Crea el jar de la aplicacion"> |
42 |
<mkdir dir="${dist}"/> |
43 |
<jar jarfile="${dist}/${jarName}.jar" basedir="${build}"/> |
44 |
</target>
|
45 |
|
46 |
<target name="move-to-fmap" description="Move the jar file to the libFMap lib-dir"> |
47 |
<move file="${dist}/${jarName}.jar" todir="${targetDir}"/> |
48 |
</target>
|
49 |
|
50 |
<target name="clean" description="clean up" > |
51 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
52 |
<delete dir="${build}"/> |
53 |
<delete dir="${dist}"/> |
54 |
<delete file="${jarName}.jar" /> |
55 |
</target>
|
56 |
|
57 |
<target name="run-tests" depends="batch-build,compile-tests"> |
58 |
<antcall target="generic-run-tests"> |
59 |
<param name="TestSuite.Name" value="com.hardcode.driverManager.AllTests"/> |
60 |
</antcall>
|
61 |
</target>
|
62 |
</project>
|