File: build.xml

package info (click to toggle)
batik 1.6-3
  • links: PTS
  • area: contrib
  • in suites: etch, etch-m68k
  • size: 29,680 kB
  • ctags: 35,115
  • sloc: java: 213,715; xml: 17,453; sh: 157; makefile: 32
file content (112 lines) | stat: -rw-r--r-- 4,227 bytes parent folder | download | duplicates (2)
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
108
109
110
111
112
<?xml version="1.0" encoding="ISO-8859-1"?>

<!--

   Copyright 2001-2002  The Apache Software Foundation 

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

-->
<project name="RasterizerTask" default="help" basedir=".">
    <!-- ================================================================= -->
    <!-- 
         This is a build project for RasterizerTask task.

         Use compile target to compile source code and help target to 
         display all available targets.

         Author: Henri Ruini
    -->
    <!-- ================================================================= -->

    <!-- == Global properties ============================================ -->
    <property name="root" value="${basedir}" />
    <!-- root: Root directory of all the other directories. -->
    <property name="lib" value="${root}/../../lib" />
    <!-- lib: Directory where the library files (jars etc.) are located. -->
    <property name="src" value="${root}/sources" />
    <!-- src: Directory for source files. -->
    <property name="build" value="${root}/build" />
    <!-- build: Directory for build results. -->
    <property name="build.classes" value="${build}/classes" />
	<!-- build.classes: Directory for compiled classes. -->
    <property name="doc" value="${root}/doc" />
    <!-- doc: Directory for documentation. -->
    <property name="doc.api" value="${doc}/javadoc" />
    <!-- doc.api: Directory for javadocs. -->



    <!-- == Targets ====================================================== -->
    <target name="help"
        description="Displays usage information.">
        <echo>SVG Rasterizer Task build file.</echo>
        <echo>Available targets are:</echo>
        <echo>  compile --> Compiles the source code.</echo>
        <echo>  jar     --> Builds the JAR distribution.</echo>
        <echo>  javadoc --> Generates Javadoc documentation.</echo>
        <echo>  clean   --> Deletes generated directories.</echo>
    </target>

    <target name="prepare">
		<echo>Using ${ant.version}.</echo>
        <tstamp/>
    </target>

    <target name="compile" depends="prepare"
        description="Compiles source files.">
        <mkdir dir="${build.classes}" />
        <!-- Compile code. -->
        <javac srcdir="${src}" destdir="${build.classes}" />
    </target>

    <target name="jar" depends="prepare, compile"
        description="Creates a JAR package.">

		<mkdir dir="${build}/lib" />
        <jar jarfile="${build}/lib/RasterizerTask.jar"
            basedir="${build.classes}"
            excludes="**/CVS"
            includes="**/*.class">
        </jar>
    </target>

    <target name="javadoc" depends="prepare"
        description="Generates Javadoc documentation.">
        <!-- Clean and (re)create the javadocs directory. -->
        <delete dir="${doc.api}" />
        <mkdir dir="${doc.api}" />
        <!-- Create javadocs. -->
        <javadoc destdir="${doc.api}"
            packagenames="org.apache.tools.ant.*"
            version="false"
            author="false"
            windowtitle="Rasterizer Task Javadoc"
            doctitle="Rasterizer Task API Specification"
            bottom="Copyright &#169; 2001-2002 Apache Software Foundation. All Rights Reserved.">
            <sourcepath>
                <pathelement path="${src}" />
                <pathelement path="${root}/../../sources" />
            </sourcepath>
            <group title="SVG Rasterizer Task" packages="org.apache.tools.ant.taskdefs.optional.RasterizerTask" />
        </javadoc>
    </target>

    <target name="clean"
        description="Deletes directories created by this script.">
        <delete dir="${doc}" />
        <delete dir="${build}" />
    </target>

</project>