Statistics
| Revision:

root / branches / v10 / libraries / libArcIMS / build.xml @ 38081

History | View | Annotate | Download (3.55 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
            <copy todir="${build}">
50
                    <fileset
51
                            dir="${src}"
52
                            excludes="**/*.java"/>
53
                </copy>
54

    
55
        </target>
56
        <target name="batch-build" depends="compile,dist">
57
        <echo>
58
            Compiling ${ant.project.name}...</echo>
59
    </target>
60
        <target name="dist" description="generate the distribution">
61
                <!-- Create the distribution directory -->
62
                <mkdir dir="${dist}"/>
63

    
64
                <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
65
                <jar jarfile="${dist}/${jar}.jar" basedir="${build}"/>
66
                <jar jarfile="${dist}/${jar}.jar" basedir="." includes="images/*.gif"
67
                        update="true"/>
68

    
69
                <copy todir="${targetDir3}">
70
                        <fileset dir="${dist}" includes="${jar}.jar"/>
71
                </copy>
72

    
73
                <move todir="${targetDir2}/">
74
                        <fileset dir="${dist}" includes="**/**"/>
75
                </move>
76
                <copy todir="${targetDir2}/">
77
                        <fileset dir="${lib}" includes="*.jar"/>
78
                </copy>
79

    
80

    
81
                <!--   <move todir="${targetDir}/">
82
                <fileset dir="${dist}" includes="**/**"/>
83
                </move>-->
84
        </target>
85

    
86
        <target name="clean" description="clean up">
87
                <!-- Delete the ${build} and ${dist} directory trees -->
88
                <delete includeemptydirs="true" failonerror="no">
89
                        <fileset dir="${build}" includes="**/*"/>
90
                </delete>
91
                <delete includeemptydirs="true" failonerror="no">
92
                        <fileset dir="${dist}" includes="**/*"/>
93
                </delete>
94
        </target>
95
</project>
96

    
97