summaryrefslogtreecommitdiffstats
path: root/tools/targets/init.xtarget
blob: 54a74d278af45ad5b3f33260c1f890a2117d6db8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
  <!-- =================================================================== -->
  <!-- Initialization target                                               -->
  <!-- =================================================================== -->
  <target name="init">
    <tstamp/>

    <property name="version"  value="1.1-dev"/>
    <property name="short.version" value="1.1"/>
    <property name="year"     value="2001-2002"/>

    <echo message="--------------------------------------------------------------"/>    
    <echo message="                      ${fullname} [${year}]                   "/>   
    <echo message="--------------------------------------------------------------"/>    
    <echo message="Building with ${ant.version}"/>  
    <echo message="using build file ${ant.file}"/>  
    <echo message="--------------------------------------------------------------"/>         

    <property name="debug"          value="on"/>
    <property name="optimize"       value="off"/>
    <property name="deprecation"    value="off"/>
    <property name="nowarn"         value="on"/>
    <property name="build.compiler" value="classic"/>
    <property name="target.vm"      value="1.2"/>

    <property name="src.dir"       value="./src"/>
    <property name="java.dir"      value="${src.dir}/java"/>
    <property name="test.dir"      value="${src.dir}/testcases"/>
    <property name="test.specific" value=""/>
    <property name="lib.dir"       value="./lib"/>
    <property name="bin.dir"       value="./bin"/>
    <property name="tools.dir"     value="./tools"/>
    <property name="tools.lib.dir" value="${tools.dir}/lib"/>    
    <property name="docs.dir"      value="${src.dir}/documentation/xdocs"/>
    <property name="images.dir"    value="${src.dir}/documentation/images"/>
    <property name="resource.dir"  value="${src.dir}/resources"/>
    <property name="context.dir"   value="${src.dir}/documentation"/>

    <property name="scratchpad.dir"  value="${src.dir}/scratchpad"/>
    <property name="scratchpad.src"  value="${scratchpad.dir}/src"/>
    <property name="scratchpad.lib"  value="${scratchpad.dir}/lib"/>
    <property name="scratchpad.name" value="${name}-scratchpad"/>

    <property name="examples.dir"  value="${src.dir}/examples"/>
    <property name="examples.src"  value="${examples.dir}/src"/>
    <property name="examples.lib"  value="${examples.dir}/lib"/>
    <property name="examples.name" value="${name}-examples"/>

    <property name="contrib.dir"  value="${src.dir}/contrib"/>
    <property name="contrib.src"  value="${contrib.dir}/src"/>
    <property name="contrib.lib"  value="${contrib.dir}/lib"/>
    <property name="contrib.name" value="${name}-contrib"/>
    
    <property name="build.root"     value="./build"/>
    <property name="build.dir"      value="${build.root}/${name}"/>
    <property name="build.src"      value="${build.dir}/src"/>
    <property name="build.test"      value="${build.dir}/testcases"/>
    <property name="build.dest"     value="${build.dir}/classes"/>
    <property name="build.docs"     value="${build.dir}/docs"/>
    <property name="build.xdocs"    value="${build.dir}/xdocs"/>
    <property name="build.docs.printer" value="${build.dir}/printer-docs"/>
    <property name="build.javadocs" value="${build.dir}/javadocs"/>
    <property name="build.context" value="${build.dir}/documentation"/>
    <property name="build.scratchpad" value="${build.dir}/scratchpad"/>
    <property name="build.scratchpad.src" value="${build.scratchpad}/src"/>
    <property name="build.scratchpad.dest" value="${build.scratchpad}/classes"/>
    <property name="build.examples" value="${build.dir}/examples"/>
    <property name="build.examples.src" value="${build.examples}/src"/>
    <property name="build.examples.dest" value="${build.examples}/classes"/>
    <property name="build.contrib" value="${build.dir}/contrib"/>
    <property name="build.contrib.src" value="${build.contrib}/src"/>
    <property name="build.contrib.dest" value="${build.contrib}/classes"/>    
    <property name="build.patchqueue" value="${build.dir}/patchqueue"/>
    
    <property name="dist.root"   value="./dist"/>
    <property name="dist.name" value="${name}-${version}"/>
    <property name="dist.dir"    value="${dist.root}/${dist.name}"/>
    <property name="dist.src.dir"    value="${dist.root}/source/${dist.name}"/>
    <property name="dist.bin.dir"    value="${dist.root}/bin/${dist.name}"/>
    <property name="dist.target" value="${dist.root}"/>

    <property name="site" value="../xml-site/targets/${name}"/>

    <property name="project-info" value="./project-info.xml"/>
    <property name="build.project-info" value="${build.dir}/project-info.xml"/>
    <property name="project-info2txt" value="${src.dir}/documentation/stylesheets/projectinfo2txt.xsl"/>
    <property name="projectinfo2announcement" value="${src.dir}/documentation/stylesheets/projectinfo2announcement.xsl"/>
    <property name="projectinfo2todo" value="${src.dir}/documentation/stylesheets/projectinfo2todo.xsl"/>

    <!--
    The location of tools.jar, relative to the JAVA_HOME home.
    -->
    <property name="tools.jar" value="${java.home}/../lib/tools.jar"/>
    <available file="${tools.jar}" property="tools.jar.present"/>

    <filter token="Name"    value="${fullname}"/>
    <filter token="name"    value="${fullname}"/>
    <filter token="year"    value="${year}"/>
    <filter token="version" value="${version}"/>
    <filter token="date"    value="${TODAY}"/>
    <filter token="log"     value="true"/>
    <filter token="verbose" value="true"/>

    <!-- compile the ant tasks -->
    <mkdir dir="${tools.dir}/anttasks"/>
    <javac srcdir="${tools.dir}/src" destdir="${tools.dir}/anttasks"/>

  </target>