svn-gvsig-desktop / tags / gvsig_topologia-0_1_0-1232 / libraries / libRemoteServices / build.xml @ 45670
History | View | Annotate | Download (3.07 KB)
1 | 9757 | cesar | <project name="libRemoteServices" default="dist" basedir="."> |
---|---|---|---|
2 | 4864 | cesar | <description>
|
3 | 4222 | jaume | Genera el jar con RemoteClient y sus dependencias |
4 | 3169 | ldiaz | </description>
|
5 | 4864 | cesar | <!-- set global properties for this build -->
|
6 | <property name="src" location="src" /> |
||
7 | <property name="build" location="bin" /> |
||
8 | 13448 | cesar | <property name="src-test" location="test" /> |
9 | <property name="build-test" location="bin-test" /> |
||
10 | 4864 | cesar | <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 | 4867 | cesar | <property name="jarName" value="remote-clients" /> |
16 | 4864 | cesar | <property name="targetDir" location="../libFMap/lib" /> |
17 | 13126 | jmvivo | <!--<property name="compile-classpath" value="${andamiJar}:${fmapLibs}/lib/driver-manager-1.0.jar:${andamiLibs}/lib/tempFileManager.jar:${lib}/kxml2.jar" />-->
|
18 | 13236 | jmvivo | <import file="../binaries/ant/utilities.xml"/> |
19 | 3517 | jaume | |
20 | 4864 | cesar | <target name="init"> |
21 | <!-- Create the time stamp -->
|
||
22 | <tstamp /> |
||
23 | 9757 | cesar | <echo>
|
24 | Compiling ${ant.project.name}...</echo>
|
||
25 | 4864 | cesar | <!-- Create the build directory structure used by compile -->
|
26 | <mkdir dir="${build}" /> |
||
27 | </target>
|
||
28 | 3169 | ldiaz | |
29 | 4864 | cesar | <target name="dist" depends="init" description="generate the distribution"> |
30 | <!-- Create the distribution directory -->
|
||
31 | <mkdir dir="${dist}" /> |
||
32 | 3169 | ldiaz | |
33 | 4864 | cesar | <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
34 | 4867 | cesar | <jar jarfile="${dist}/${jarName}.jar" basedir="${build}" /> |
35 | <jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*.gif" update="true" /> |
||
36 | 3169 | ldiaz | |
37 | 4864 | cesar | <move todir="${targetDir}/"> |
38 | <fileset dir="${dist}" includes="**/**" /> |
||
39 | </move>
|
||
40 | <copy todir="${targetDir}/"> |
||
41 | <fileset dir="${lib}" includes="*.jar" /> |
||
42 | 9756 | cesar | </copy>
|
43 | 4864 | cesar | </target>
|
44 | 3169 | ldiaz | |
45 | 4867 | cesar | <target name="batch-build" |
46 | description="compile the sources, create the jar file" |
||
47 | 9757 | cesar | depends="init,compile,create-jar,move-to-fmap"> |
48 | 4864 | cesar | </target>
|
49 | 3169 | ldiaz | |
50 | 4864 | cesar | <target name="compile" description="compile the source"> |
51 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
52 | <mkdir dir="${build}" /> |
||
53 | 13126 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
54 | 13296 | jmvivo | <gvSIG-javac
|
55 | 13474 | cesar | classpath="${eclipseClasspath}"/> |
56 | 4864 | cesar | </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 | 4867 | cesar | <fileset dir="${dist}" includes="${jarName}.jar" /> |
64 | 4864 | cesar | </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 | 4867 | cesar | <jar jarfile="${dist}/${jarName}.jar" basedir="${build}" /> |
73 | <jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" /> |
||
74 | 4864 | cesar | </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 | 13448 | cesar | |
82 | <target name="run-tests" depends="batch-build,compile-tests"> |
||
83 | <antcall target="generic-run-tests"> |
||
84 | 13449 | cesar | <param name="TestSuite.Name" value="org.gvsig.remoteClient.AllTests"/> |
85 | 13448 | cesar | </antcall>
|
86 | </target>
|
||
87 | 3169 | ldiaz | </project>
|