Statistics
| Revision:

root / trunk / libraries / libCq CMS for java.old / ant.xml @ 95

History | View | Annotate | Download (1.59 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="targetDir" location="c:\eclipse2\workspace\GVSIG\lib"/>
12

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

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

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

    
31
    <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
32
    <copy todir="${build}">
33
            <fileset dir="${src}" includes="**"/>
34
    </copy>
35
    <jar jarfile="${dist}/${jar}.jar" basedir="${build}"/>
36
    <copy todir="${dist}">
37
            <fileset dir="./lib" includes="*.jar"/>
38
    </copy>
39

    
40
    <move todir="${targetDir}/">
41
            <fileset dir="${dist}" includes="**/**"/>
42
    </move>
43
  </target>
44

    
45
  <target name="clean"
46
        description="clean up" >
47
    <!-- Delete the ${build} and ${dist} directory trees -->
48
    <delete dir="${build}"/>
49
    <delete dir="${dist}"/>
50
  </target>
51
</project>
52