Project

General

Profile

Download (1.9 KB) Statistics
| Branch: | Revision:

git_sitools_idoc / flarecast / workspace / sitools-update-classpath / build.xml @ master

1
<!-- ant build file for getopt -->
2

    
3
<project name="sitools-update-classpath" default="all" basedir=".">
4

    
5
  <!-- Properties -->
6

    
7
  <property name="name" value="sitools-update-classpath"/>
8
  <property name="src" value="src"/>
9
  <property name="conf" value="conf"/>
10
  <property name="build" value="build"/>
11
  <property name="build.classes" value="${build}/classes"/>
12
  <property name="build.doc" value="${build}/api"/>
13
  <property name="build.lib" value="."/>
14
  <property name="packagenames" value="gnu.getopt.*, fr.cnes.sitools.common"/>
15

    
16
  <!-- Targets -->
17

    
18
  <!-- Prepare build directories -->
19
  <target name="prepare">
20
    <mkdir dir="${src}"/>
21
    <mkdir dir="${build}"/>
22
    <mkdir dir="${build.classes}"/>
23
    <mkdir dir="${build.lib}"/>
24
    <mkdir dir="${build.doc}"/>
25
    <!--copy todir="${src}/gnu">
26
      <fileset dir="gnu"/>
27
    </copy-->
28
  </target>
29

    
30
  <!-- Kill all the created directories -->
31
  <target name="clean">
32
    <delete dir="${build}"/>
33
    <delete dir="${src}"/>
34
  </target>
35

    
36
  <!-- Build classes -->
37
  <target name="classes" depends="prepare">
38
    <javac srcdir="${src}" destdir="${build.classes}" debug="on" 
39
optimize="on"/>
40
    <copy todir="${build.classes}">
41
      <fileset dir="${src}">
42
        <include name="**/*.properties"/>
43
      </fileset>
44
    </copy>
45
  </target>
46

    
47
  <!-- Build jar archives -->
48
  <target name="jar" depends="classes">
49
    <jar jarfile="${build.lib}/${name}.jar" manifest="${conf}/MANIFEST.MF" basedir="${build.classes}" />
50
  </target>
51

    
52
  <!-- Build the full JavaDocs -->
53
  <target name="javadoc" depends="prepare">
54
    <javadoc sourcepath="${src}"
55
            destdir="${build.doc}"
56
            doctitle="${name} JavaDoc"
57
            windowtitle="${name} JavaDoc"
58
            package="true"
59
            author="true"
60
            version="true"
61
            packagenames="${packagenames}"
62
    />
63
  </target>
64

    
65
  <!-- Build everything -->
66
  <target name="all" depends="jar,javadoc"/>
67

    
68
</project>
69