svn-gvsig-desktop / branches / Mobile_Compatible_Hito_1 / libDXF / build.xml @ 26481
History | View | Annotate | Download (2.31 KB)
1 | 21930 | csanchez | <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 | <property name="src-test" location="src-test"/> |
||
8 | <property name="lib" location="lib"/> |
||
9 | <property name="build" location="bin"/> |
||
10 | <property name="build-test" location="bin-test"/> |
||
11 | <property name="dist" location="dist"/> |
||
12 | <property name="jarName" value="org.cresques.dxf.jar"/> |
||
13 | <property name="targetDir" location="../libFMap_dataFile/lib"/> |
||
14 | <property name="cresques.home" value="${build}/org/cresques" /> |
||
15 | <!--<import file="../binaries/ant/utilities.xml"/>-->
|
||
16 | |||
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 | <loadEclipseClasspath project="${basedir}"/> |
||
37 | <gvSIG-javac
|
||
38 | classpath="${eclipseClasspath}" |
||
39 | />
|
||
40 | <!--<javac srcdir="${src}"
|
||
41 | destdir="${build}"
|
||
42 | source="${JavaSourceVersion}"
|
||
43 | target="${JavaTargetVersion}"
|
||
44 | debug="${debug}"
|
||
45 | debuglevel="${debuglevel}"
|
||
46 | classpath="${compile-classpath}"
|
||
47 | encoding="${encoding}"/>-->
|
||
48 | </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 | |||
68 | <!--<target name="run-tests" depends="batch-build,compile-tests">
|
||
69 | <antcall target="generic-run-tests">
|
||
70 | <param name="TestSuite.Name" value="org.cresques.dxf.AllTests"/>
|
||
71 | </antcall>
|
||
72 | </target>-->
|
||
73 | </project>
|