/usr/share/doc/libantelope-java/manual/bk03ch03.html is in libantelope-java-doc 3.5.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 3. Installation</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Antelope Users Guide"><link rel="up" href="bk03.html" title="Additional Ant Tasks"><link rel="prev" href="bk03ch02.html" title="Chapter 2. License"><link rel="next" href="bk03ch04.html" title="Chapter 4. Assert Task"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 3. Installation</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="bk03ch02.html">Prev</a> </td><th width="60%" align="center">Additional Ant Tasks</th><td width="20%" align="right"> <a accesskey="n" href="bk03ch04.html">Next</a></td></tr></table><hr></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a name="installation"></a>Chapter 3. Installation</h1></div></div></div>
@style@
<p>
If you are running your build files from Antelope, these tasks are already installed and nothing more needs to be done. The following discusses installing the tasks by hand for use outside of Antelope.
</p><p>
These Ant tasks are packaged as a part of Antelope, which is an application for running Ant build files. They may also be obtained as a separate package. Depending on the distribution you have on hand, copy either antelope.jar or antelope_tasks.jar into your ${ant.home}/lib directory or add it to your classpath. This is the directory where ant.jar and optional.jar are installed for your Ant distribution.
</p><p>
Once installed, each task that you want to use in a build file must be defined in that build file. Since several of the Antelope tasks are dependent on each other, the preferred way to define them is like this:
</p><pre class="programlisting">
<taskdef resource="ise.antelope.tasks.antelope.taskdefs
classpath="path/to/AntelopeTasks_@buildnum@.jar"/>
</pre><p>
This will load all Antelope tasks without further hassle, and will only load the tasks once. It is not good to load the tasks multiple times, this can cause problems with 'ant' and 'antcall' in particular.
</p><p>
If you don't want to load all of the tasks, the documentation for each task explains in detail what you will need to add to your build file to use the individual task. For example, the Assert tasks says:
</p><p>
</p><pre class="programlisting">
To use this task in your build files, include a task definition like this:
<taskdef name="assert" classname="ise.antelope.tasks.Assert"/>
<property name="ant.enable.asserts" value="true"/>
</pre><p>
</p><p>
Notice that you may name the tasks whatever you want via 'taskdef'. The names listed in the individual task descriptions are those that are set via the preferred method mentioned above.
</p><p>
As of Antelope version 2.64, the 'AntLib' feature of Ant 1.6 is supported, which provides an alternate way of loading optional tasks. If AntelopeTasks_@buildnum@.jar is in the core classpath (in ${ant.home}/lib for example) one can use the namespace short-cut to load them:
</p><pre class="programlisting">
<project xmlns:antelope="antlib:ise.antelope.tasks">
<antelope:try messageproperty="failed">
<fail>This should fail</fail>
<echo>This will not be reached</echo>
<antelope:catch>
<echo>failed is ${failed}</echo>
</antelope:catch>
</antelope:try>
</project>
</pre><p>
<span class="italic">Thanks to Peter Reilly of the Ant development team for this pointer and example.</span>
</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="bk03ch02.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="bk03.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="bk03ch04.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 2. License </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 4. Assert Task</td></tr></table></div></body></html>
|