root / tags / v1_0_2_Build_906 / libraries / libRemoteServices / build.xml @ 10972
History | View | Annotate | Download (2.9 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 | 10565 | jmvivo | <property name="JavaSourceVersion" value="1.4"/> |
17 | <property name="JavaTargetVersion" value="1.4"/> |
||
18 | |||
19 | 4864 | cesar | <target name="init"> |
20 | <!-- Create the time stamp -->
|
||
21 | <tstamp /> |
||
22 | <!-- Create the build directory structure used by compile -->
|
||
23 | <mkdir dir="${build}" /> |
||
24 | </target>
|
||
25 | 3169 | ldiaz | |
26 | 4864 | cesar | <target name="dist" depends="init" description="generate the distribution"> |
27 | <!-- Create the distribution directory -->
|
||
28 | <mkdir dir="${dist}" /> |
||
29 | 3169 | ldiaz | |
30 | 4864 | cesar | <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
31 | 4867 | cesar | <jar jarfile="${dist}/${jarName}.jar" basedir="${build}" /> |
32 | <jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*.gif" update="true" /> |
||
33 | 3169 | ldiaz | |
34 | 4864 | cesar | <move todir="${targetDir}/"> |
35 | <fileset dir="${dist}" includes="**/**" /> |
||
36 | </move>
|
||
37 | <copy todir="${targetDir}/"> |
||
38 | <fileset dir="${lib}" includes="*.jar" /> |
||
39 | </copy>
|
||
40 | </target>
|
||
41 | 3169 | ldiaz | |
42 | 4867 | cesar | <target name="batch-build" |
43 | description="compile the sources, create the jar file" |
||
44 | depends="compile,create-jar,move-to-fmap"> |
||
45 | 4864 | cesar | </target>
|
46 | 3169 | ldiaz | |
47 | 4864 | cesar | <target name="compile" description="compile the source"> |
48 | <!-- Compile the Java code from ${src} to ${build} -->
|
||
49 | <mkdir dir="${build}" /> |
||
50 | <javac srcdir="${src}" |
||
51 | destdir="${build}" |
||
52 | 10565 | jmvivo | source="${JavaSourceVersion}" |
53 | target="${JavaTargetVersion}" |
||
54 | 4864 | cesar | classpath="${compile-classpath}" |
55 | 6293 | cesar | debug="${debug}" |
56 | debuglevel="${debuglevel}" |
||
57 | 4864 | cesar | excludes="**/Tests/*.java" /> |
58 | </target>
|
||
59 | |||
60 | <target name="move-to-fmap" description="Move jars and required libraries to fmap"> |
||
61 | <copy todir="${targetDir}"> |
||
62 | <fileset dir="./lib" includes="*.jar" /> |
||
63 | </copy>
|
||
64 | <copy todir="."> |
||
65 | 4867 | cesar | <fileset dir="${dist}" includes="${jarName}.jar" /> |
66 | 4864 | cesar | </copy>
|
67 | <move todir="${targetDir}/"> |
||
68 | <fileset dir="${dist}" includes="**/**" /> |
||
69 | </move>
|
||
70 | </target>
|
||
71 | |||
72 | <target name="create-jar" description="Crea el jar de la aplicacion"> |
||
73 | <mkdir dir="${dist}" /> |
||
74 | 4867 | cesar | <jar jarfile="${dist}/${jarName}.jar" basedir="${build}" /> |
75 | <jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" /> |
||
76 | 4864 | cesar | </target>
|
77 | |||
78 | <target name="clean" description="clean up"> |
||
79 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
80 | <delete dir="${build}" /> |
||
81 | <delete dir="${dist}" /> |
||
82 | </target>
|
||
83 | 3169 | ldiaz | </project>
|