Statistics
| Revision:

svn-gvsig-desktop / tags / Root_CqCMSGisPlanet / libraries / libCq CMS for java.old / ant.xml @ 1933

History | View | Annotate | Download (1.87 KB)

1
<project name="CMS for Java" default="dist" basedir=".">
2
    <description>
3
        Genera el jar con CMS y sus dependencias
4
    </description>
5
  <!-- set global properties for this build -->
6
  <property name="src" location="src"/>
7
  <property name="build" location="bin"/>
8
  <property name="dist"  location="dist"/>
9
  <property name="jar" value="cms"/>
10
  <!--property name="fmapdir" value="../FMAP"/-->
11
  <property name="targetDir1" location="../FMAP/lib"/>
12
  <property name="targetDir" location="../FMap 03/lib"/>
13
  <property name="targetDir2" location="."/>
14

    
15
  <target name="init">
16
    <!-- Create the time stamp -->
17
    <tstamp/>
18
    <!-- Create the build directory structure used by compile -->
19
    <mkdir dir="${build}"/>
20
  </target>
21

    
22
  <target name="compile" depends="init"
23
        description="compile the source " >
24
    <!-- Compile the java code from ${src} into ${build} 
25
    <javac srcdir="${src}" destdir="${build}"/>-->
26
  </target>
27

    
28
  <target name="dist" depends="compile"
29
        description="generate the distribution" >
30
    <!-- Create the distribution directory -->
31
    <mkdir dir="${dist}"/>
32

    
33
    <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file --> 
34
    <jar jarfile="${dist}/${jar}.jar" basedir="${build}"/>
35
    <jar jarfile="${dist}/${jar}.jar" basedir="." includes = "images/*.gif" update="true" />
36
    <copy todir="${dist}">
37
            <fileset dir="./lib" includes="*.jar"/>
38
    </copy>
39
    <copy todir="${targetDir1}/">
40
            <fileset dir="${dist}" includes="**/**"/>
41
    </copy>
42
    <copy todir="${targetDir2}/">
43
            <fileset dir="${dist}" includes="${jar}.jar"/>
44
    </copy>
45
    <move todir="${targetDir}/">
46
            <fileset dir="${dist}" includes="**/**"/>
47
    </move>
48
  </target>
49

    
50
  <target name="clean"
51
        description="clean up" >
52
    <!-- Delete the ${build} and ${dist} directory trees -->
53
    <delete dir="${build}"/>
54
    <delete dir="${dist}"/>
55
  </target>
56
</project>
57