svn-gvsig-desktop / tags / v1_1_Build_1013 / libraries / libArcIMS / build.xml @ 13521
History | View | Annotate | Download (3.48 KB)
1 | 12256 | jmvivo | <project name="libArcIMS" default="dist" basedir="."> |
---|---|---|---|
2 | 8109 | jsanz | <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 | 12737 | jmvivo | |
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 | 12974 | cesar | <property name="JavaSourceVersion" value="1.4"/> |
19 | <property name="JavaTargetVersion" value="1.5"/> |
||
20 | <property name="encoding" value="ISO_8859_1"/> |
||
21 | <property name="debug" value="on"/> |
||
22 | <property name="debuglevel" value="lines, vars"/> |
||
23 | 8109 | jsanz | |
24 | 12737 | jmvivo | |
25 | |||
26 | 8109 | jsanz | <!-- to move the lib directly to andami without having to run extArcims build.xml-->
|
27 | <property name="extensionDir" location="${andami}/gvSIG/extensiones"/> |
||
28 | <property name="mainplugin" value="com.iver.cit.gvsig"/> |
||
29 | <property name="targetDir3" location="${extensionDir}/${mainplugin}/lib"/> |
||
30 | |||
31 | <target name="init"> |
||
32 | <!-- Create the time stamp -->
|
||
33 | <tstamp/> |
||
34 | <!-- Create the build directory structure used by compile -->
|
||
35 | <mkdir dir="${build}"/> |
||
36 | </target>
|
||
37 | |||
38 | <target name="compile" description="compile the source"> |
||
39 | <!-- Compile the Java code from ${src} to ${bin} -->
|
||
40 | 12256 | jmvivo | <javac
|
41 | srcdir="${src}" |
||
42 | destdir="${build}" |
||
43 | source="${JavaSourceVersion}" |
||
44 | target="${JavaTargetVersion}" |
||
45 | debug="${debug}" |
||
46 | debuglevel="${debuglevel}" |
||
47 | 12974 | cesar | classpath="${compile-classpath}" |
48 | encoding="${encoding}"/> |
||
49 | 8109 | jsanz | </target>
|
50 | 12256 | jmvivo | <target name="batch-build" depends="compile,dist"> |
51 | <echo>
|
||
52 | Compiling ${ant.project.name}...</echo>
|
||
53 | </target>
|
||
54 | 8109 | jsanz | <target name="dist" description="generate the distribution"> |
55 | <!-- Create the distribution directory -->
|
||
56 | <mkdir dir="${dist}"/> |
||
57 | |||
58 | <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
||
59 | <jar jarfile="${dist}/${jar}.jar" basedir="${build}"/> |
||
60 | <jar jarfile="${dist}/${jar}.jar" basedir="." includes="images/*.gif" |
||
61 | update="true"/> |
||
62 | |||
63 | <copy todir="${targetDir3}"> |
||
64 | <fileset dir="${dist}" includes="${jar}.jar"/> |
||
65 | </copy>
|
||
66 | |||
67 | <move todir="${targetDir2}/"> |
||
68 | <fileset dir="${dist}" includes="**/**"/> |
||
69 | </move>
|
||
70 | <copy todir="${targetDir2}/"> |
||
71 | <fileset dir="${lib}" includes="*.jar"/> |
||
72 | </copy>
|
||
73 | |||
74 | |||
75 | <!-- <move todir="${targetDir}/">
|
||
76 | <fileset dir="${dist}" includes="**/**"/>
|
||
77 | </move>-->
|
||
78 | </target>
|
||
79 | |||
80 | <target name="clean" description="clean up"> |
||
81 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
82 | <delete includeemptydirs="true" failonerror="no"> |
||
83 | <fileset dir="${build}" includes="**/*"/> |
||
84 | </delete>
|
||
85 | <delete includeemptydirs="true" failonerror="no"> |
||
86 | <fileset dir="${dist}" includes="**/*"/> |
||
87 | </delete>
|
||
88 | </target>
|
||
89 | </project>
|
||
90 |