# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#
# This file is used by build.xml
#
# Global defaults
name= Anakia
project= anakia
version= 1.0
final.name= ${project}-${version}
root.package= org.apache.anakia
# compile switches
debug= on
optimize= on
deprecation= off
ant.build.dir= build
build.dir= ${app.dir}/bin
# The source tree runs through a filter copy task to
# allow substitution of version, date etc. and will
# end up in build.src
build.lib= ${build.dir}/lib
build.test.lib= ${build.dir}/test-lib
build.dest= ${build.dir}/classes
build.test.dest= ${build.dir}/test-classes
build.javadoc= ${build.dir}/apidocs
build.test= ${build.dir}/test
build.docs= ${build.dir}/docs
# Various local pathes in the distribution
src.java.dir= ${app.dir}/src/java
test.java.dir= ${app.dir}/src/test
test.dir= ${app.dir}/test
example.dir= ${app.dir}/examples
xdocs.dir= ${app.dir}/xdocs
# Running the tests
test.haltonerror= true
test.haltonfailure= true
# Building the distribution
dist.root= ${build.dir}/dist
dist.dir= ${dist.root}/${final.name}
# Set to Sun Javadocs
javadocs.ref.jsdk= http://java.sun.com/j2se/1.4.2/docs/api/
# for the javadoc
javadoc.packagenames = ${root.package}.*
# attributes for the jar manifest
mf.package = ${root.package}
mf.extension.name = ${project}
mf.specification.title = Anakia is a XML-based text processor
mf.specification.vendor = Apache Software Foundation
mf.implementation.title = ${mf.package}
mf.implementation.vendor.id = org.apache
mf.implementation.vendor = Apache Software Foundation
mf.implementation.version = ${version}
# #######################################################################
#
# Downloading jars from ibiblio repository
#
# #######################################################################
# The default behaviour is to download dependency jars only when
# they are not already present.
# Set skip.jar.loading to true to never download any dependency jar,
# or force.jar.loading to true to always download all dependency jars.
skip.jar.loading= false
force.jar.loading= false
#
# Settings for the proxy to use for download. Change this if you must
# use a proxy from your host. If the proxy.host property is unset, no
# proxy is used.
proxy.host=
proxy.port= 80
#
# We download directly from the ibiblio maven repository
repo.url= http://www.ibiblio.org/maven
#
# Jars to be downloaded
jar.antlr.version= 2.7.5
jar.commons-collections.version= 3.1
jar.commons-lang.version= 2.1
jar.jdom.version= 1.0
jar.werken-xpath.version= 0.9.4
jar.junit.version= 3.8.1
jar.velocity.version= 1.5
description="Build the project jar and documentation"/>
Global settings:
java.home = ${java.home}
user.home = ${user.home}
java.class.path = ${java.class.path}
Project settings:
Version: ${version}
Debug: ${debug}
Optimize: ${optimize}
Deprecation: ${deprecation}
Target settings (relative to build tree root):
Classes: ${build.dest}
API Docs: ${build.javadoc}
Docs: ${build.docs}
description="Compiles the source">
destdir="${build.dest}"
encoding="UTF-8"
debug="${debug}"
deprecation="${deprecation}"
optimize="${optimize}"
classpathref="build.classpath"/>
description="Compiles the test classes">
destdir="${build.test.dest}"
encoding="UTF-8"
debug="${debug}"
deprecation="${deprecation}"
optimize="${optimize}">
description="Builds the Jar file">
depends="prepare"
description="Builds the Source Jar File">
description="Creates the Javadoc API documentation">
packagenames="${javadoc.packagenames}"
destdir="${build.javadoc}"
author="true"
private="false"
version="true"
use="true"
windowtitle="${name} ${version} API"
doctitle="${name} ${version} API"
encoding="UTF-8"
docencoding="UTF-8"
bottom="Copyright © 2000-${build.year} <a href="http://www.apache.org/">Apache Software Foundation</a>. All Rights Reserved."
classpathref="build.classpath">
file="${build.dir}/${final.name}.jar"
tofile="${dist.dir}/${final.name}.jar"
/>
depends="build-package-tree">
includes="**/${final.name}/**"/>
depends="build-package-tree">
includes="**/${final.name}/**" longfile="gnu" compression="gzip" />
depends="package-zip,package-tgz"
description="Generates the distribution files">
description="Cleans all generated files except downloaded libs">
description="Cleans all generated files">
description="Generates the HTML documentation">
classname="org.apache.anakia.AnakiaTask"
classpathref="run.classpath"/>
#######################################################
#
# Now using Anakia to transform the XML documentation
# to HTML.
#######################################################
extension=".html" style="site.vsl"
projectFile="../stylesheets/project.xml"
includes="**/*.xml"
lastModifiedCheck="true"
templatePath="${xdocs.dir}/stylesheets">
depends="build-prepare,compile-test,test-anakia"/>
classpathref="test.classpath"/>
destdir="${build.test}/anakia"
extension=".html" style="./site_contexts.vsl"
projectFile="./stylesheets/project.xml"
excludes="**/stylesheets/**"
includes="**/*.xml"
templatePath="${test.dir}/anakia/xdocs/stylesheets"
lastModifiedCheck="false">
destdir="${build.test}/anakia"
extension=".context.html" style="./site_contexts.vsl"
projectFile="./stylesheets/project.xml"
excludes="**/stylesheets/**"
includes="**/*.xml"
templatePath="${test.dir}/anakia/xdocs/stylesheets"
lastModifiedCheck="false">
classpathref="test.classpath">