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