Antlion
Welcome
License
 
How-To Guides
Getting Started
Libraries
Artifacts
Subprojects
Repositories
Policy Strategies
Format Strings
Extending Antlion
FAQ
 
Tutorials
First Tutorial: Simple
 
Ant Tasks
<artifact>
<libraryDef>
<library>
<library-policy>
inner processors
inner repositories
<library-type>
<library-repository>
<library-urlrepository>
<library-mavenrepository>
<library-repositoryset>
<create-artifact>
<subprojects>
<run-subproject>
<replace-target>
 
Optional Tasks
About optional tasks
RegexpTokenFormatter
 
Next  
Getting Started

To get started using Antlion, you'll need to download or build the latest release. Then, add the release into your Ant build file:

<typedef file="antlion-libraries-types.properties"
    loaderRef="loader.antlion-inline">
  <classpath refid="antlion-path" />
</typedef>
<taskdef resource="antlion-libraries.properties"
    loaderRef="loader.antlion-inline">
  <classpath refid="antlion-path" />
</taskdef>

Alternatively, you can use the Antlib feature of Ant 1.6. The antlib file resides under the path net/sf/antlion/inline/antlib.xml. You have several options when using the Antlib:

  1. Put the Antlion jar file into the Ant lib directory, and modify your project declaration to something like:
    <project name="myproject"
        xmlns:antlion="antlib:net.sf.antlion.inline">
      ...
    
    and reference the Antlion tasks with the namespace "antlion".
  2. Have the Antlion jar file in a location of your choice, and still reference the Antlion tasks through a namespace, by adding a typedef like so:
    <typedef resource="net/sf/antlion/inline/antlib.xml"
        uri="antlion:/antlion.sf.net/inline">
      <classpath>
        <pathelement
            location="${mylibs}/antlion-inline-0.9.0.jar" />
      </classpath>
    </typedef>
    
  3. Have the Antlion jar file in a location of your choice, but don't use namespaces, by adding a typedef like so:
    <typedef resource="net/sf/antlion/antlib.xml">
      <classpath>
        <pathelement
            location="${mylibs}/antlion-inline-0.9.0.jar" />
      </classpath>
    </typedef>
    

Now, you can start using Antlion.


Figuring Out What's Happening

After you begin using Antlion, you may want to see more details about what Antlion is doing under the covers with your libraries. If you turn on Ant's debug mode (command line argument -debug), you will see Antlion reporting each process step. However, Ant, too, will report lots of data you most probably won't care about.

If you want to enable Antlion process logging, you can set the Ant property antlion.enable-tracing to true. This will turn the process step logging into "info" level, which is the default level for Ant. To set this property from the command-line, pass the argument -Dantlion.enable-tracing=true along with your normal arguments.


Next  
Document version $Revision: 1.9 $ $Date: 2005/09/29 21:40:25 $

SourceForge Logo
Copyright © 2004-2006, The Antlion Project