| 1 |
<!-- |
| 2 |
|
| 3 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 4 |
contributor license agreements. See the NOTICE file distributed with |
| 5 |
this work for additional information regarding copyright ownership. |
| 6 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 7 |
(the "License"); you may not use this file except in compliance with |
| 8 |
the License. You may obtain a copy of the License at |
| 9 |
|
| 10 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 11 |
|
| 12 |
Unless required by applicable law or agreed to in writing, software |
| 13 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 14 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 |
See the License for the specific language governing permissions and |
| 16 |
limitations under the License. |
| 17 |
|
| 18 |
--> |
| 19 |
<project name="RasterizerTask" default="help" basedir="."> |
| 20 |
<!-- ================================================================= --> |
| 21 |
<!-- |
| 22 |
This is a build project for RasterizerTask task. |
| 23 |
|
| 24 |
Use compile target to compile source code and help target to |
| 25 |
display all available targets. |
| 26 |
|
| 27 |
Author: Henri Ruini |
| 28 |
--> |
| 29 |
<!-- ================================================================= --> |
| 30 |
|
| 31 |
<!-- == Global properties ============================================ --> |
| 32 |
<property name="root" value="${basedir}" /> |
| 33 |
<!-- root: Root directory of all the other directories. --> |
| 34 |
<property name="lib" value="${root}/../../lib" /> |
| 35 |
<!-- lib: Directory where the library files (jars etc.) are located. --> |
| 36 |
<property name="src" value="${root}/sources" /> |
| 37 |
<!-- src: Directory for source files. --> |
| 38 |
<property name="build" value="${root}/build" /> |
| 39 |
<!-- build: Directory for build results. --> |
| 40 |
<property name="build.classes" value="${build}/classes" /> |
| 41 |
<!-- build.classes: Directory for compiled classes. --> |
| 42 |
<property name="doc" value="${root}/doc" /> |
| 43 |
<!-- doc: Directory for documentation. --> |
| 44 |
<property name="doc.api" value="${doc}/javadoc" /> |
| 45 |
<!-- doc.api: Directory for javadocs. --> |
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
<!-- == Targets ====================================================== --> |
| 50 |
<target name="help" |
| 51 |
description="Displays usage information."> |
| 52 |
<echo message="SVG Rasterizer Task build file."/> |
| 53 |
<echo message="Available targets are:"/> |
| 54 |
<echo message=" compile --> Compiles the source code."/> |
| 55 |
<echo message=" jar --> Builds the JAR distribution."/> |
| 56 |
<echo message=" javadoc --> Generates Javadoc documentation."/> |
| 57 |
<echo message=" clean --> Deletes generated directories."/> |
| 58 |
</target> |
| 59 |
|
| 60 |
<target name="prepare"> |
| 61 |
<echo message="Using ${ant.version}."/> |
| 62 |
<tstamp/> |
| 63 |
</target> |
| 64 |
|
| 65 |
<target name="compile" depends="prepare" |
| 66 |
description="Compiles source files."> |
| 67 |
<mkdir dir="${build.classes}" /> |
| 68 |
<!-- Compile code. --> |
| 69 |
<javac srcdir="${src}" destdir="${build.classes}" /> |
| 70 |
</target> |
| 71 |
|
| 72 |
<target name="jar" depends="prepare, compile" |
| 73 |
description="Creates a JAR package."> |
| 74 |
|
| 75 |
<mkdir dir="${build}/lib" /> |
| 76 |
<jar jarfile="${build}/lib/RasterizerTask.jar" |
| 77 |
basedir="${build.classes}" |
| 78 |
excludes="**/.svn/" |
| 79 |
includes="**/*.class"> |
| 80 |
</jar> |
| 81 |
</target> |
| 82 |
|
| 83 |
<target name="javadoc" depends="prepare" |
| 84 |
description="Generates Javadoc documentation."> |
| 85 |
<!-- Clean and (re)create the javadocs directory. --> |
| 86 |
<delete dir="${doc.api}" /> |
| 87 |
<mkdir dir="${doc.api}" /> |
| 88 |
<!-- Create javadocs. --> |
| 89 |
<javadoc destdir="${doc.api}" |
| 90 |
packagenames="org.apache.tools.ant.*" |
| 91 |
version="false" |
| 92 |
author="false" |
| 93 |
windowtitle="Rasterizer Task Javadoc" |
| 94 |
doctitle="Rasterizer Task API Specification" |
| 95 |
bottom="Copyright © 2001-2002 Apache Software Foundation. All Rights Reserved."> |
| 96 |
<sourcepath> |
| 97 |
<pathelement path="${src}" /> |
| 98 |
<pathelement path="${root}/../../sources" /> |
| 99 |
</sourcepath> |
| 100 |
<group title="SVG Rasterizer Task" packages="org.apache.tools.ant.taskdefs.optional.RasterizerTask" /> |
| 101 |
</javadoc> |
| 102 |
</target> |
| 103 |
|
| 104 |
<target name="clean" |
| 105 |
description="Deletes directories created by this script."> |
| 106 |
<delete dir="${doc}" /> |
| 107 |
<delete dir="${build}" /> |
| 108 |
</target> |
| 109 |
|
| 110 |
</project> |
| 111 |
|