Ejen Logo
 
   <ejen>


Description
Ejen node is the root node for all generation process specification.
 
<?xml version="1.0" encoding="UTF-8"?>

<project default="build" name="build">

  <taskdef classname="org.ejen.ant.Ejen" name="ejen"/>

  <target name="build">
    <ejen base="file:/usr/local/xml" stacktrace="true">
      ...
    </ejen>
  </target>

</project>

This Ant build file first defines the ejen task. Then, it uses an ejen block into a "build" target. Attributes mean respectively that we want a stack trace (if any fatal exception occures) and that all URI references will be relative to the /usr/local/xml directory (except if they are absolute URIs or if we redefine later the base reference).
 
By default, the base attribute is the "basedir" attribute of the Ant project (current directory if not specified, see Ant manual for more details).

Attribute Summary
 
NameDefault ValueOptionalAccepted Values
base"basedir" attribute of the projecttrue 
stacktracefalsetruetrue | false

Attribute Detail
 
base
this is a generic block attribute that allows URI base redefinition: all uri attributes used in children nodes of this block will be relative to this new base definition (except if there is another child block node that redefines a new base). This is only a convenience attribute in order to simplify URI specifications. A base attribute must be a valid (well formed) URI, absolute or relative to another base definition.
stacktrace
(Ant interface specific) should we print a stack trace when exception occurs or not. Default is false. Note that this attribute as nothing to do with try, catch and finally nodes: this is only a debug option.

Children
 
catch, choose, depends, echo, filter, finally, foreach, if, option, remove, save, sax, source, template, try, variable


SourceForge.net Logo