svn-gvsig-desktop / tags / v1_0_2_Build_907 / libraries / libRemoteServices / build.xml @ 36455
History | View | Annotate | Download (2.9 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 |
<property name="JavaSourceVersion" value="1.4"/> |
17 |
<property name="JavaTargetVersion" value="1.4"/> |
18 |
|
19 |
<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 |
|
26 |
<target name="dist" depends="init" description="generate the distribution"> |
27 |
<!-- Create the distribution directory -->
|
28 |
<mkdir dir="${dist}" /> |
29 |
|
30 |
<!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
31 |
<jar jarfile="${dist}/${jarName}.jar" basedir="${build}" /> |
32 |
<jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*.gif" update="true" /> |
33 |
|
34 |
<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 |
|
42 |
<target name="batch-build" |
43 |
description="compile the sources, create the jar file" |
44 |
depends="compile,create-jar,move-to-fmap"> |
45 |
</target>
|
46 |
|
47 |
<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 |
source="${JavaSourceVersion}" |
53 |
target="${JavaTargetVersion}" |
54 |
classpath="${compile-classpath}" |
55 |
debug="${debug}" |
56 |
debuglevel="${debuglevel}" |
57 |
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 |
<fileset dir="${dist}" includes="${jarName}.jar" /> |
66 |
</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 |
<jar jarfile="${dist}/${jarName}.jar" basedir="${build}" /> |
75 |
<jar jarfile="${dist}/${jarName}.jar" basedir="." includes="images/*" update="true" /> |
76 |
</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 |
</project>
|
84 |
|