Statistics
| Revision:

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

History | View | Annotate | Download (1.72 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="../FMAP/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
    <jar jarfile="${dist}/${jar}.jar" basedir="${build}"/>
34
    <jar jarfile="${dist}/${jar}.jar" basedir="." includes = "images/*.gif" update="true" />
35
    <copy todir="${dist}">
36
            <fileset dir="./lib" includes="*.jar"/>
37
    </copy>
38
    <copy todir="${targetDir2}/">
39
            <fileset dir="${dist}" includes="${jar}.jar"/>
40
    </copy>
41
    <move todir="${targetDir}/">
42
            <fileset dir="${dist}" includes="**/**"/>
43
    </move>
44
  </target>
45

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