Statistics
| Revision:

svn-gvsig-desktop / trunk / libraries / libCq CMS for java.old / ant.xml @ 109

History | View | Annotate | Download (1.74 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
  <property name="targetDir2" location="."/>
13

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

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

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

    
32
    <!-- Put everything in ${build} into the cms-${DSTAMP}.jar file -->
33
   
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="${targetDir2}/">
40
            <fileset dir="${dist}" includes="${jar}.jar"/>
41
    </copy>
42
    <move todir="${targetDir}/">
43
            <fileset dir="${dist}" includes="**/**"/>
44
    </move>
45
  </target>
46

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