svn-gvsig-desktop / tags / v1_0_2_Build_897 / libraries / libRemoteServices / build.xml @ 30098
History | View | Annotate | Download (2.77 KB)
1 | 4222 | jaume | <project name="RemoteClient" 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 | <property name="dist" location="dist" /> |
||
9 | <property name="lib" location="lib" /> |
||
10 | <property name="andamiJar" location="../_fwAndami/andami.jar" /> |
||
11 | <property name="andamiLibs" location="../_fwAndami/lib" /> |
||
12 | <property name="fmapLibs" location="../libFMap" /> |
||
13 | 4867 | cesar | <property name="jarName" value="remote-clients" /> |
14 | 4864 | cesar | <property name="targetDir" location="../libFMap/lib" /> |
15 | 4870 | cesar | <property name="compile-classpath" value="${andamiJar}:${fmapLibs}/lib/driver-manager-1.0.jar:${andamiLibs}/lib/tempFileManager.jar:${lib}/kxml2.jar" /> |
16 | 3517 | jaume | |
17 | 4864 | cesar | <target name="init"> |
18 | <!-- Create the time stamp -->
|
||
19 | <tstamp /> |
||
20 | <!-- Create the build directory structure used by compile -->
|
||
21 | <mkdir dir="${build}" /> |
||
22 | </target>
|
||
23 | 3169 | ldiaz | |
24 | 4864 | cesar | <target name="dist" depends="init" description="generate the distribution"> |
25 | <!-- Create the distribution directory -->
|
||
26 | <mkdir dir="${dist}" /> |
||
27 | 3169 | ldiaz | |
28 | 4864 | cesar | <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
29 | 4867 | cesar | <jar jarfile="${dist}/${jarName}.jar" basedir="${build}" /> |
30 | <jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*.gif" update="true" /> |
||
31 | 3169 | ldiaz | |
32 | 4864 | cesar | <move todir="${targetDir}/"> |
33 | <fileset dir="${dist}" includes="**/**" /> |
||
34 | </move>
|
||
35 | <copy todir="${targetDir}/"> |
||
36 | <fileset dir="${lib}" includes="*.jar" /> |
||
37 | </copy>
|
||
38 | </target>
|
||
39 | 3169 | ldiaz | |
40 | 4867 | cesar | <target name="batch-build" |
41 | description="compile the sources, create the jar file" |
||
42 | depends="compile,create-jar,move-to-fmap"> |
||
43 | 4864 | cesar | </target>
|
44 | 3169 | ldiaz | |
45 | 4864 | cesar | <target name="compile" description="compile the source"> |
46 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
47 | <mkdir dir="${build}" /> |
||
48 | <javac srcdir="${src}" |
||
49 | destdir="${build}" |
||
50 | 7776 | cesar | source="1.4" |
51 | target="1.4" |
||
52 | 4864 | cesar | classpath="${compile-classpath}" |
53 | 6293 | cesar | debug="${debug}" |
54 | debuglevel="${debuglevel}" |
||
55 | 4864 | cesar | excludes="**/Tests/*.java" /> |
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 | 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 | 3169 | ldiaz | </project>
|