svn-gvsig-desktop / tags / v1_10_0_Build_1256 / libraries / libGeoUtils / build.xml @ 44465
History | View | Annotate | Download (1.65 KB)
1 | 27839 | cmartinez | <project name="libGeoUtils" default="create-jar" basedir="."> |
---|---|---|---|
2 | <!-- set global properties for this build -->
|
||
3 | <property name="src" location="src"/> |
||
4 | <property name="src-test" location="src-test"/> |
||
5 | <property name="build" location="bin"/> |
||
6 | <property name="build-test" location="bin-test"/> |
||
7 | <property name="dist" location="dist"/> |
||
8 | <property name="targetDir" location="../libFMap/lib"/> |
||
9 | <property name="jarName" value="geoutils.jar"/> |
||
10 | <import file="../binaries/ant/utilities.xml"/> |
||
11 | |||
12 | <target name="init"> |
||
13 | <!-- Create the time stamp -->
|
||
14 | <!-- <tstamp/>-->
|
||
15 | <echo>
|
||
16 | Compiling ${ant.project.name}...</echo>
|
||
17 | </target>
|
||
18 | |||
19 | <target name="batch-build" |
||
20 | description="compile the sources, create the jar file" |
||
21 | depends="init,compile,create-jar"> |
||
22 | </target>
|
||
23 | |||
24 | <target name="compile" description="compile the source"> |
||
25 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
26 | <mkdir dir="${build}" /> |
||
27 | <loadEclipseClasspath project="${basedir}"/> |
||
28 | <gvSIG-javac
|
||
29 | classpath="${eclipseClasspath}" |
||
30 | />
|
||
31 | <copy todir="${build}"> |
||
32 | <fileset dir="${src}" excludes="**/*.java" casesensitive="false"/> |
||
33 | </copy>
|
||
34 | </target>
|
||
35 | |||
36 | <target name="create-jar" description="Crea el jar de la aplicacion"> |
||
37 | <!--<mkdir dir="${dist}" />-->
|
||
38 | 27893 | vcaballero | <jar jarfile="${targetDir}/${jarName}" basedir="${build}"/> |
39 | 27839 | cmartinez | </target>
|
40 | |||
41 | <target name="clean" description="clean up"> |
||
42 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
43 | <delete dir="${build}" /> |
||
44 | <delete dir="${dist}" /> |
||
45 | </target>
|
||
46 | |||
47 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
48 | <antcall target="generic-run-tests"> |
||
49 | <param name="TestSuite.Name" value="com.iver.utiles.AllTests"/> |
||
50 | </antcall>
|
||
51 | </target>
|
||
52 | </project> |