svn-gvsig-desktop / tags / v1_10_0_Build_1261 / libraries / libRemoteServices / build.xml @ 40339
History | View | Annotate | Download (3.07 KB)
1 |
<project name="libRemoteServices" default="dist" basedir="."> |
---|---|
2 |
<description>
|
3 |
Genera el jar con RemoteClient y sus dependencias |
4 |
</description>
|
5 |
<!-- set global properties for this build -->
|
6 |
<property name="src" location="src" /> |
7 |
<property name="build" location="bin" /> |
8 |
<property name="src-test" location="test" /> |
9 |
<property name="build-test" location="bin-test" /> |
10 |
<property name="dist" location="dist" /> |
11 |
<property name="lib" location="lib" /> |
12 |
<property name="andamiJar" location="../_fwAndami/andami.jar" /> |
13 |
<property name="andamiLibs" location="../_fwAndami/lib" /> |
14 |
<property name="fmapLibs" location="../libFMap" /> |
15 |
<property name="jarName" value="remote-clients" /> |
16 |
<property name="targetDir" location="../libFMap/lib" /> |
17 |
<!--<property name="compile-classpath" value="${andamiJar}:${fmapLibs}/lib/driver-manager-1.0.jar:${andamiLibs}/lib/tempFileManager.jar:${lib}/kxml2.jar" />-->
|
18 |
<import file="../binaries/ant/utilities.xml"/> |
19 |
|
20 |
<target name="init"> |
21 |
<!-- Create the time stamp -->
|
22 |
<tstamp /> |
23 |
<echo>
|
24 |
Compiling ${ant.project.name}...</echo>
|
25 |
<!-- Create the build directory structure used by compile -->
|
26 |
<mkdir dir="${build}" /> |
27 |
</target>
|
28 |
|
29 |
<target name="dist" depends="init" description="generate the distribution"> |
30 |
<!-- Create the distribution directory -->
|
31 |
<mkdir dir="${dist}" /> |
32 |
|
33 |
<!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
34 |
<jar jarfile="${dist}/${jarName}.jar" basedir="${build}" /> |
35 |
<jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*.gif" update="true" /> |
36 |
|
37 |
<move todir="${targetDir}/"> |
38 |
<fileset dir="${dist}" includes="**/**" /> |
39 |
</move>
|
40 |
<copy todir="${targetDir}/"> |
41 |
<fileset dir="${lib}" includes="*.jar" /> |
42 |
</copy>
|
43 |
</target>
|
44 |
|
45 |
<target name="batch-build" |
46 |
description="compile the sources, create the jar file" |
47 |
depends="init,compile,create-jar,move-to-fmap"> |
48 |
</target>
|
49 |
|
50 |
<target name="compile" description="compile the source"> |
51 |
<!-- Compile the Java code from ${src} to ${build} -->
|
52 |
<mkdir dir="${build}" /> |
53 |
<loadEclipseClasspath project="${basedir}"/> |
54 |
<gvSIG-javac
|
55 |
classpath="${eclipseClasspath}"/> |
56 |
</target>
|
57 |
|
58 |
<target name="move-to-fmap" description="Move jars and required libraries to fmap"> |
59 |
<copy todir="${targetDir}"> |
60 |
<fileset dir="./lib" includes="*.jar" /> |
61 |
</copy>
|
62 |
<copy todir="."> |
63 |
<fileset dir="${dist}" includes="${jarName}.jar" /> |
64 |
</copy>
|
65 |
<move todir="${targetDir}/"> |
66 |
<fileset dir="${dist}" includes="**/**" /> |
67 |
</move>
|
68 |
</target>
|
69 |
|
70 |
<target name="create-jar" description="Crea el jar de la aplicacion"> |
71 |
<mkdir dir="${dist}" /> |
72 |
<jar jarfile="${dist}/${jarName}.jar" basedir="${build}" /> |
73 |
<jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" /> |
74 |
</target>
|
75 |
|
76 |
<target name="clean" description="clean up"> |
77 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
78 |
<delete dir="${build}" /> |
79 |
<delete dir="${dist}" /> |
80 |
</target>
|
81 |
|
82 |
<target name="run-tests" depends="batch-build,compile-tests"> |
83 |
<antcall target="generic-run-tests"> |
84 |
<param name="TestSuite.Name" value="org.gvsig.remoteClient.AllTests"/> |
85 |
</antcall>
|
86 |
</target>
|
87 |
</project>
|
88 |
|