svn-gvsig-desktop / tags / v1_1_Build_1010 / libraries / libArcIMS / build.xml @ 12804
History | View | Annotate | Download (3.23 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 |
<property name="andamiLibs" location="${andami}/lib"/> |
15 |
<property name="fmapLibs" location="${fmap}/lib"/> |
16 |
<property name="compile-classpath" value="${andami}/andami.jar:${andamiLibs}/iver-utiles.jar:${fmapLibs}/fmap.jar:${fmapLibs}/driver-manager-1.1.jar:${fmapLibs}/gdbms-0.8-SNAPSHOT.jar:${fmapLibs}/cms.jar:${andamiLibs}/kxml2.jar:${andamiLibs}/log4j-1.2.8.jar:lib/junit.jar:${andami}/lib/tempFileManager.jar:${fmapLibs}/remote-clients.jar"/> |
17 |
<property name="compile-classpath-original" value="${andami}/andami.jar:${fmap}/lib/driver-manager-1.0.jar:${andami}/lib/tempFileManager.jar:lib/kxml2.jar:lib/junit.jar"/> |
18 |
|
19 |
|
20 |
|
21 |
<!-- to move the lib directly to andami without having to run extArcims build.xml-->
|
22 |
<property name="extensionDir" location="${andami}/gvSIG/extensiones"/> |
23 |
<property name="mainplugin" value="com.iver.cit.gvsig"/> |
24 |
<property name="targetDir3" location="${extensionDir}/${mainplugin}/lib"/> |
25 |
|
26 |
<target name="init"> |
27 |
<!-- Create the time stamp -->
|
28 |
<tstamp/> |
29 |
<!-- Create the build directory structure used by compile -->
|
30 |
<mkdir dir="${build}"/> |
31 |
</target>
|
32 |
|
33 |
<target name="compile" description="compile the source"> |
34 |
<!-- Compile the Java code from ${src} to ${bin} -->
|
35 |
<javac
|
36 |
srcdir="${src}" |
37 |
destdir="${build}" |
38 |
source="${JavaSourceVersion}" |
39 |
target="${JavaTargetVersion}" |
40 |
debug="${debug}" |
41 |
debuglevel="${debuglevel}" |
42 |
classpath="${compile-classpath}"/> |
43 |
</target>
|
44 |
<target name="batch-build" depends="compile,dist"> |
45 |
<echo>
|
46 |
Compiling ${ant.project.name}...</echo>
|
47 |
</target>
|
48 |
<target name="dist" description="generate the distribution"> |
49 |
<!-- Create the distribution directory -->
|
50 |
<mkdir dir="${dist}"/> |
51 |
|
52 |
<!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
53 |
<jar jarfile="${dist}/${jar}.jar" basedir="${build}"/> |
54 |
<jar jarfile="${dist}/${jar}.jar" basedir="." includes="images/*.gif" |
55 |
update="true"/> |
56 |
|
57 |
<copy todir="${targetDir3}"> |
58 |
<fileset dir="${dist}" includes="${jar}.jar"/> |
59 |
</copy>
|
60 |
|
61 |
<move todir="${targetDir2}/"> |
62 |
<fileset dir="${dist}" includes="**/**"/> |
63 |
</move>
|
64 |
<copy todir="${targetDir2}/"> |
65 |
<fileset dir="${lib}" includes="*.jar"/> |
66 |
</copy>
|
67 |
|
68 |
|
69 |
<!-- <move todir="${targetDir}/">
|
70 |
<fileset dir="${dist}" includes="**/**"/>
|
71 |
</move>-->
|
72 |
</target>
|
73 |
|
74 |
<target name="clean" description="clean up"> |
75 |
<!-- Delete the ${build} and ${dist} directory trees -->
|
76 |
<delete includeemptydirs="true" failonerror="no"> |
77 |
<fileset dir="${build}" includes="**/*"/> |
78 |
</delete>
|
79 |
<delete includeemptydirs="true" failonerror="no"> |
80 |
<fileset dir="${dist}" includes="**/*"/> |
81 |
</delete>
|
82 |
</target>
|
83 |
</project>
|
84 |
|
85 |
|