svn-gvsig-desktop / trunk / libraries / libArcIMS / build.xml @ 24224
History | View | Annotate | Download (2.57 KB)
1 | 8109 | jsanz | <project name="RemoteClient" 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 | 17347 | jmvivo | |
14 | 8109 | jsanz | <!-- 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 | 17347 | jmvivo | |
19 | <import file="../binaries/ant/utilities.xml"/> |
||
20 | |||
21 | 8109 | jsanz | <target name="init"> |
22 | <!-- Create the build directory structure used by compile -->
|
||
23 | <mkdir dir="${build}"/> |
||
24 | 17347 | jmvivo | <mkdir dir="${dist}"/> |
25 | |||
26 | 8109 | jsanz | </target>
|
27 | 17347 | jmvivo | |
28 | <target name="compile" depends="init" description="compile the source"> |
||
29 | 8109 | jsanz | <!-- Compile the Java code from ${src} to ${bin} -->
|
30 | 17347 | jmvivo | <loadEclipseClasspath project="${basedir}"/> |
31 | <gvSIG-javac
|
||
32 | classpath="${eclipseClasspath}"/> |
||
33 | 8109 | jsanz | </target>
|
34 | 17347 | jmvivo | |
35 | <target name="batch-build" |
||
36 | description="compile the sources, create the jar file" |
||
37 | depends="compile,create-jar,copy-files"> |
||
38 | </target>
|
||
39 | |||
40 | <target name="dist" depends="init,create-jar,copy-files" description="generate the distribution"> |
||
41 | |||
42 | <!-- <move todir="${targetDir}/">
|
||
43 | <fileset dir="${dist}" includes="**/**"/>
|
||
44 | </move>-->
|
||
45 | </target>
|
||
46 | |||
47 | <target name="copy-files"> |
||
48 | 8109 | jsanz | <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
|
49 | 17347 | jmvivo | |
50 | 8109 | jsanz | <copy todir="${targetDir3}"> |
51 | <fileset dir="${dist}" includes="${jar}.jar"/> |
||
52 | </copy>
|
||
53 | 17347 | jmvivo | |
54 | 8109 | jsanz | <move todir="${targetDir2}/"> |
55 | <fileset dir="${dist}" includes="**/**"/> |
||
56 | </move>
|
||
57 | <copy todir="${targetDir2}/"> |
||
58 | <fileset dir="${lib}" includes="*.jar"/> |
||
59 | </copy>
|
||
60 | |||
61 | </target>
|
||
62 | 17347 | jmvivo | |
63 | <target name="create-jar" |
||
64 | description="Creates the library jars"> |
||
65 | <jar jarfile="${dist}/${jar}.jar" basedir="${build}"/> |
||
66 | <jar jarfile="${dist}/${jar}.jar" basedir="." includes="images/*.gif" |
||
67 | update="true"/> |
||
68 | |||
69 | </target>
|
||
70 | |||
71 | |||
72 | 8109 | jsanz | <target name="clean" description="clean up"> |
73 | <!-- Delete the ${build} and ${dist} directory trees -->
|
||
74 | <delete includeemptydirs="true" failonerror="no"> |
||
75 | <fileset dir="${build}" includes="**/*"/> |
||
76 | </delete>
|
||
77 | <delete includeemptydirs="true" failonerror="no"> |
||
78 | <fileset dir="${dist}" includes="**/*"/> |
||
79 | </delete>
|
||
80 | </target>
|
||
81 | </project>
|
||
82 |