root / tags / v1_1_Build_1003 / libraries / libArcIMS / build.xml @ 12271
History | View | Annotate | Download (2.71 KB)
1 |
<project name="libArcIMS" default="dist" basedir="."> |
---|---|
2 |
<description> Genera el jar con RemoteClient y sus dependencias </description> |
3 |
<!-- set global properties for this build -->
|
4 |
<property name="src" location="src"/> |
5 |
<property name="build" location="bin"/> |
6 |
<property name="dist" location="dist"/> |
7 |
<property name="lib" location="lib"/> |
8 |
<property name="jar" value="remote-clients-arcims"/> |
9 |
<property name="targetDir" location="."/> |
10 |
<property name="targetDir2" location="../extArcims/lib"/> |
11 |
<property name="fmap" location="../libFMap"/> |
12 |
<property name="andami" location="../_fwAndami"/> |
13 |
|
14 |
<!-- to move the lib directly to andami without having to run extArcims build.xml-->
|
15 |
<property name="extensionDir" location="${andami}/gvSIG/extensiones"/> |
16 |
<property name="mainplugin" value="com.iver.cit.gvsig"/> |
17 |
<property name="targetDir3" location="${extensionDir}/${mainplugin}/lib"/> |
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="compile" description="compile the source"> |
27 |
<!-- Compile the Java code from ${src} to ${bin} -->
|
28 |
<javac
|
29 |
srcdir="${src}" |
30 |
destdir="${build}" |
31 |
source="${JavaSourceVersion}" |
32 |
target="${JavaTargetVersion}" |
33 |
debug="${debug}" |
34 |
debuglevel="${debuglevel}" |
35 |
classpath="${andami}/andami.jar:${fmap}/lib/driver-manager-1.0.jar:${andami}/lib/tempFileManager.jar:lib/kxml2.jar:lib/junit.jar"/> |
36 |
</target>
|
37 |
<target name="batch-build" depends="compile,dist"> |
38 |
<echo>
|
39 |
Compiling ${ant.project.name}...</echo>
|
40 |
</target>
|
41 |
<target name="dist" description="generate the distribution"> |
42 |
<!-- Create the distribution directory -->
|
43 |
<mkdir dir="${dist}"/> |
44 |
|
45 |
<!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
46 |
<jar jarfile="${dist}/${jar}.jar" basedir="${build}"/> |
47 |
<jar jarfile="${dist}/${jar}.jar" basedir="." includes="images/*.gif" |
48 |
update="true"/> |
49 |
|
50 |
<copy todir="${targetDir3}"> |
51 |
<fileset dir="${dist}" includes="${jar}.jar"/> |
52 |
</copy>
|
53 |
|
54 |
<move todir="${targetDir2}/"> |
55 |
<fileset dir="${dist}" includes="**/**"/> |
56 |
</move>
|
57 |
<copy todir="${targetDir2}/"> |
58 |
<fileset dir="${lib}" includes="*.jar"/> |
59 |
</copy>
|
60 |
|
61 |
|
62 |
<!-- <move todir="${targetDir}/">
|
63 |
<fileset dir="${dist}" includes="**/**"/>
|
64 |
</move>-->
|
65 |
</target>
|
66 |
|
67 |
<target name="clean" description="clean up"> |
68 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
69 |
<delete includeemptydirs="true" failonerror="no"> |
70 |
<fileset dir="${build}" includes="**/*"/> |
71 |
</delete>
|
72 |
<delete includeemptydirs="true" failonerror="no"> |
73 |
<fileset dir="${dist}" includes="**/*"/> |
74 |
</delete>
|
75 |
</target>
|
76 |
</project>
|
77 |
|
78 |
|