svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libExceptions / build.xml @ 21173
History | View | Annotate | Download (2.22 KB)
1 | 9777 | cesar | <project name="libExceptions" default="create-jar" basedir="."> |
---|---|---|---|
2 | 9659 | fdiaz | <!-- set global properties for this build -->
|
3 | <property name="src" location="src"/> |
||
4 | <property name="build" location="bin"/> |
||
5 | 13446 | cesar | <property name="src-test" location="src-test"/> |
6 | <property name="build-test" location="bin-test"/> |
||
7 | 9659 | fdiaz | <property name="dist" location="dist"/> |
8 | <property name="targetDir" location="dist"/> |
||
9 | 9743 | jorpiell | <property name="fmapLibs" location="../libFMap/lib" /> |
10 | 17232 | jmvivo | <property name="andamiLibs" location="../_fwAndami/lib" /> |
11 | 9770 | jorpiell | <property name="remoteServicesLibs" location="../libRemoteServices/lib" /> |
12 | 13252 | jmvivo | <property name="jarName" value="org.gvsig.exceptions"/> |
13 | 13126 | jmvivo | <!--<property name="compile-classpath" value="" />-->
|
14 | 13236 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
15 | 9659 | fdiaz | |
16 | <target name="init"> |
||
17 | <!-- Create the time stamp -->
|
||
18 | <tstamp/> |
||
19 | 9777 | cesar | <echo>
|
20 | Compiling ${ant.project.name}...</echo>
|
||
21 | 9659 | fdiaz | </target>
|
22 | |||
23 | <target name="batch-build" |
||
24 | description="compile the sources, create the jar file" |
||
25 | 9778 | cesar | depends="init,compile,create-jar"> |
26 | 9659 | fdiaz | </target>
|
27 | |||
28 | <target name="compile" description="compile the source"> |
||
29 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
30 | <mkdir dir="${build}" /> |
||
31 | 13126 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
32 | 13296 | jmvivo | <gvSIG-javac
|
33 | 13204 | jmvivo | classpath="${eclipseClasspath}" |
34 | />
|
||
35 | 13126 | jmvivo | |
36 | <!--<javac srcdir="${src}"
|
||
37 | 9659 | fdiaz | destdir="${build}"
|
38 | source="1.4"
|
||
39 | target="1.4"
|
||
40 | debug="${debug}"
|
||
41 | debuglevel="${debuglevel}"
|
||
42 | 13126 | jmvivo | classpath="${compile-classpath}"/>-->
|
43 | 9659 | fdiaz | <!-- copy any images or resources present in the src dir -->
|
44 | <copy todir="${build}"> |
||
45 | <fileset dir="${src}" excludes="**/*.java" casesensitive="false"/> |
||
46 | </copy>
|
||
47 | </target>
|
||
48 | |||
49 | <target name="create-jar" description="Crea el jar de la aplicacion"> |
||
50 | <mkdir dir="${dist}" /> |
||
51 | <jar jarfile="${targetDir}/${jarName}.jar" basedir="${build}"/> |
||
52 | 17232 | jmvivo | <copy todir="${andamiLibs}"> |
53 | <fileset dir="${targetDir}" includes="${jarName}.jar" /> |
||
54 | 9743 | jorpiell | </copy>
|
55 | 9659 | fdiaz | </target>
|
56 | |||
57 | <target name="clean" description="clean up"> |
||
58 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
59 | <delete dir="${build}" /> |
||
60 | <delete dir="${dist}" /> |
||
61 | </target>
|
||
62 | 17232 | jmvivo | |
63 | 13446 | cesar | <target name="run-tests" depends="batch-build,compile-tests"> |
64 | <antcall target="generic-run-tests"> |
||
65 | <param name="TestSuite.Name" value="org.gvsig.gui.beans.AllTests"/> |
||
66 | </antcall>
|
||
67 | </target>
|
||
68 | 13126 | jmvivo | |
69 | 9659 | fdiaz | </project> |