svn-gvsig-desktop / tags / v2_0_0_Build_2000 / libraries / libDriverManager / build.xml @ 33469
History | View | Annotate | Download (2.03 KB)
1 | 10660 | cesar | <project name="Driver Manager" default="dist" basedir="."> |
---|---|---|---|
2 | 467 | fernando | <description>
|
3 | Instala el plugin |
||
4 | </description>
|
||
5 | 4250 | caballero | <!-- set global properties for this build
|
6 | 974 | fjp | <property name="drivers-dir" location="../Andami/gvSIG/extensiones/com.iver.cit.gvsig/drivers" />-->
|
7 | 4872 | cesar | <property name="src" value="src"/> |
8 | <property name="build" value="bin"/> |
||
9 | 13528 | cesar | <property name="src-test" value="src-test"/> |
10 | <property name="build-test" value="bin-test"/> |
||
11 | 10660 | cesar | <property name="dist" location="dist"/> |
12 | 4872 | cesar | <property name="jarName" value="driver-manager-1.1"/> |
13 | 13126 | jmvivo | <property name="targetDir" value="../libFMap/lib"/> |
14 | 13236 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
15 | 13126 | jmvivo | |
16 | 467 | fernando | <target name="init"> |
17 | <!-- Create the time stamp -->
|
||
18 | <tstamp /> |
||
19 | 10660 | cesar | <echo>
|
20 | Compiling ${ant.project.name}...</echo>
|
||
21 | 467 | fernando | </target>
|
22 | |||
23 | 4872 | cesar | <target name="batch-build" |
24 | description="compile the sources, create the jar file" |
||
25 | 10660 | cesar | depends="init,compile,create-jar,move-to-fmap"> |
26 | 4872 | cesar | </target>
|
27 | 13126 | jmvivo | |
28 | 10660 | cesar | <target name="dist" |
29 | description="create the jar file, copy it to libFMap" |
||
30 | depends="init,create-jar,move-to-fmap"> |
||
31 | </target>
|
||
32 | 4872 | cesar | <target name="compile" description="compile the source" > |
33 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
34 | <mkdir dir="${build}" /> |
||
35 | 13126 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
36 | 13296 | jmvivo | <gvSIG-javac
|
37 | 13204 | jmvivo | classpath="${eclipseClasspath}" |
38 | />
|
||
39 | 13126 | jmvivo | </target>
|
40 | |||
41 | 4872 | cesar | <target name="create-jar" description="Crea el jar de la aplicacion"> |
42 | 10660 | cesar | <mkdir dir="${dist}"/> |
43 | <jar jarfile="${dist}/${jarName}.jar" basedir="${build}"/> |
||
44 | 467 | fernando | </target>
|
45 | 13126 | jmvivo | |
46 | 10660 | cesar | <target name="move-to-fmap" description="Move the jar file to the libFMap lib-dir"> |
47 | <move file="${dist}/${jarName}.jar" todir="${targetDir}"/> |
||
48 | 4872 | cesar | </target>
|
49 | 13126 | jmvivo | |
50 | 4872 | cesar | <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 | 13450 | cesar | |
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 | 467 | fernando | </project> |