svn-gvsig-desktop / tags / v2_0_0_Build_2002 / libraries / libDXF / build.xml @ 41957
History | View | Annotate | Download (2.22 KB)
1 | 13057 | caballero | <project name="libDXF" default="dist" basedir="."> |
---|---|---|---|
2 | <description>
|
||
3 | Genera el jar con libDXF |
||
4 | </description>
|
||
5 | <!-- set global properties for this build -->
|
||
6 | <property name="src" location="src"/> |
||
7 | 13425 | cesar | <property name="src-test" location="src-test"/> |
8 | 13057 | caballero | <property name="lib" location="lib"/> |
9 | <property name="build" location="bin"/> |
||
10 | 13349 | cesar | <property name="build-test" location="bin-test"/> |
11 | 13057 | caballero | <property name="dist" location="dist"/> |
12 | 13319 | cesar | <property name="jarName" value="org.cresques.dxf.jar"/> |
13 | 21361 | jmvivo | <property name="targetDir" location="../libFMap_dataFile/lib"/> |
14 | 13057 | caballero | <property name="cresques.home" value="${build}/org/cresques" /> |
15 | 13236 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
16 | 13057 | caballero | |
17 | <target name="init"> |
||
18 | <tstamp/> |
||
19 | <echo>
|
||
20 | Compiling ${ant.project.name}... |
||
21 | </echo>
|
||
22 | </target>
|
||
23 | |||
24 | <target name="dist" depends="init, create-jar, move-to-fmap" |
||
25 | description="generate the distribution" > |
||
26 | </target>
|
||
27 | |||
28 | <target name="batch-build" |
||
29 | description="compile the sources, create the jar file" |
||
30 | depends="compile,create-jar,move-to-fmap"> |
||
31 | </target>
|
||
32 | |||
33 | <target name="compile" description="compile the source" > |
||
34 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
35 | <mkdir dir="${build}" /> |
||
36 | 13126 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
37 | 13296 | jmvivo | <gvSIG-javac
|
38 | 13204 | jmvivo | classpath="${eclipseClasspath}" |
39 | />
|
||
40 | 13126 | jmvivo | <!--<javac srcdir="${src}"
|
41 | 13057 | caballero | destdir="${build}"
|
42 | source="${JavaSourceVersion}"
|
||
43 | target="${JavaTargetVersion}"
|
||
44 | debug="${debug}"
|
||
45 | debuglevel="${debuglevel}"
|
||
46 | classpath="${compile-classpath}"
|
||
47 | 13126 | jmvivo | encoding="${encoding}"/>-->
|
48 | 13057 | caballero | </target>
|
49 | |||
50 | <target name="create-jar" description="Crea el jar de la aplicacion"> |
||
51 | <mkdir dir="${dist}"/> |
||
52 | <jar jarfile="${dist}/${jarName}" basedir="${build}"/> |
||
53 | </target>
|
||
54 | |||
55 | <target name="move-to-fmap" description="Move jars and required libraries to fmap"> |
||
56 | <move todir="${targetDir}/"> |
||
57 | <fileset dir="${dist}" includes="**/**"/> |
||
58 | </move>
|
||
59 | </target>
|
||
60 | |||
61 | <target name="clean" |
||
62 | description="clean up" > |
||
63 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
64 | <delete dir="${build}"/> |
||
65 | <delete dir="${dist}"/> |
||
66 | </target>
|
||
67 | 13342 | cesar | |
68 | 13425 | cesar | <target name="run-tests" depends="batch-build,compile-tests"> |
69 | 13342 | cesar | <antcall target="generic-run-tests"> |
70 | <param name="TestSuite.Name" value="org.cresques.dxf.AllTests"/> |
||
71 | </antcall>
|
||
72 | </target>
|
||
73 | 13057 | caballero | </project>
|