Statistics
| Revision:

svn-gvsig-desktop / tags / v1_1_Build_1013 / libraries / libArcIMS / build.xml @ 13521

History | View | Annotate | Download (3.48 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
        <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
        
24

    
25
        
26
        <!-- 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
                <javac 
41
            srcdir="${src}" 
42
            destdir="${build}"
43
            source="${JavaSourceVersion}"
44
            target="${JavaTargetVersion}"
45
            debug="${debug}"
46
            debuglevel="${debuglevel}"         
47
                        classpath="${compile-classpath}"
48
                        encoding="${encoding}"/>
49
        </target>
50
        <target name="batch-build" depends="compile,dist">
51
        <echo>
52
            Compiling ${ant.project.name}...</echo>      
53
    </target>
54
        <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

    
91