root / tags / v1_0_2_Build_895 / libraries / libRemoteServices / build.xml @ 10328
History | View | Annotate | Download (2.77 KB)
1 |
<project name="RemoteClient" 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="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 |
<property name="jarName" value="remote-clients" /> |
14 |
<property name="targetDir" location="../libFMap/lib" /> |
15 |
<property name="compile-classpath" value="${andamiJar}:${fmapLibs}/lib/driver-manager-1.0.jar:${andamiLibs}/lib/tempFileManager.jar:${lib}/kxml2.jar" /> |
16 |
|
17 |
<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 |
|
24 |
<target name="dist" depends="init" description="generate the distribution"> |
25 |
<!-- Create the distribution directory -->
|
26 |
<mkdir dir="${dist}" /> |
27 |
|
28 |
<!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
29 |
<jar jarfile="${dist}/${jarName}.jar" basedir="${build}" /> |
30 |
<jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*.gif" update="true" /> |
31 |
|
32 |
<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 |
|
40 |
<target name="batch-build" |
41 |
description="compile the sources, create the jar file" |
42 |
depends="compile,create-jar,move-to-fmap"> |
43 |
</target>
|
44 |
|
45 |
<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 |
source="1.4" |
51 |
target="1.4" |
52 |
classpath="${compile-classpath}" |
53 |
debug="${debug}" |
54 |
debuglevel="${debuglevel}" |
55 |
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 |
<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 |
</project>
|
82 |
|