Fikin Ant Tasks

Generated on 20070312 at 2357 by niki

Summary of Ant Tasks:

antTasksDocHtmlDoclet
antTasksDocTextDoclet
antTasksPropertiesDoclet
antTasksAntlibDoclet
doclet
stx
toXhtml
velocityDoclet
xpath
xslt2
httpdelete
httpget
httphead
httpmpost
httpoptions
httppost
httpput
httptrace


antTasksDocHtmlDoclet

Description:

Generate single-page HTML documentation file for all Ant Tasks found in the source

Recognized classes/tasks must qialify the following criteria:

  • They are public classes
  • Not abstract classes
  • Descendant (direct or indirect) of Ant's Task class org.apache.tools.ant.Task
  • Having @antTaskName tag in their class comment, denoting the task name in Ant
  • Each mandatory setter method must have @antTaskParamRequired tag in the method's comment

All setter methods are resolved automatically based on Ant specification for methods introspection

This task is based on {@link VelocityDocletTask}. The Velocity file ant-doc.html.vm used as HTML-page template is located in this package folder and loaded via the classloader.

Example:

      /**
       * This is example class
       * @antTaskName exampleTask
       * /
      public class Example extends Task {
          /**
           * setter method
           * @antTaskParamRequired true
           * /
          public void setName(String name) { ... }
          ...
      }
 
created on Sep 24, 2006

Class:

net.sf.fikin.ant.AntTasksDocHtmlDocletTask

Parameters:

Attribute: Description: Required:
bootClasspathRef Adds a reference to a CLASSPATH defined elsewhere. false
bootclasspath Set the boot classpath to use. false
classpath false
classpathRef Adds a reference to a CLASSPATH defined elsewhere. false
excludePackageNames Set the list of packages to be excluded. false
executable Sets the actual executable command to invoke, instead of the binary javadoc found in Ant's JDK. false
failonerror Should the build process fail if javadoc fails (as indicated by a non zero return code)?

Default is false.

false
file set output file to be generated true
linksource Enables the -linksource switch, will be ignored if javadoc is not the 1.4 version. Default is false false
packageList The name of a file containing the packages to process. false
packagenames Set the package names to be processed. false
source Enables the -source switch, will be ignored if javadoc is not the 1.4 version. false
sourcepath Specify where to find source file At least one of the three or nested <sourcepath>, <fileset> or <packageset>
sourcepathRef Adds a reference to a CLASSPATH defined elsewhere. At least one of the three or nested <sourcepath>, <fileset> or <packageset>
velocityLog if true indicate that a velocity.log is to be generated false
verbose Run javadoc in verbose mode false

Nested Elements:

<fileset>

Adds a fileset.

All included files will be added as sourcefiles. The task will automatically add includes="**/*.java" to the fileset.

false

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<package>

Add a single package to be processed. If the package name ends with ".*" the Javadoc task will find and process all subpackages. false

Parameters:

Attribute: Description: Required:
name  

<packageset>

Adds a packageset.

All included directories will be translated into package names be converting the directory separator into dots.

false

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<bootclasspath>

Create a Path to be configured with the boot classpath false

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 


Nested Elements:

<classpath>

Create a Path to be configured with the classpath to use false

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 


Nested Elements:

<param>

Create a doclet parameter to be configured by Ant. false

Parameters:

Attribute: Description: Required:
name  
value  

Nested Elements:

<sourcepath>

Create a path to be configured with the locations of the source files. At least one of the three or nested <sourcepath>, <fileset> or <packageset>

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 




antTasksDocTextDoclet

Description:

Generate single-page TEXT documentation file for all Ant Tasks found in the source

Recognized classes/tasks must qialify the following criteria:

  • They are public classes
  • Not abstract classes
  • Descendant (direct or indirect) of Ant's Task class org.apache.tools.ant.Task
  • Having @antTaskName tag in their class comment, denoting the task name in Ant
  • Each mandatory setter method must have @antTaskParamRequired tag in the method's comment
  • The setter method must not be deprecatated

All setter methods are resolved automatically based on Ant specification for methods introspection

This task is based on {@link VelocityDocletTask}. The Velocity file ant-doc.html.vm used as text-page template is located in this package folder and loaded via the classloader.

Example:

      /**
       * This is example class
       * @antTaskName exampleTask
       * /
      public class Example extends Task {
          /**
           * setter method
           * @antTaskParamRequired true
           * /
          public void setName(String name) { ... }
          ...
      }
 
created on Sep 24, 2006

Class:

net.sf.fikin.ant.AntTasksDocTextDocletTask

Parameters:

Attribute: Description: Required:
bootClasspathRef Adds a reference to a CLASSPATH defined elsewhere. false
bootclasspath Set the boot classpath to use. false
classpath false
classpathRef Adds a reference to a CLASSPATH defined elsewhere. false
excludePackageNames Set the list of packages to be excluded. false
executable Sets the actual executable command to invoke, instead of the binary javadoc found in Ant's JDK. false
failonerror Should the build process fail if javadoc fails (as indicated by a non zero return code)?

Default is false.

false
file set output file to be generated true
linksource Enables the -linksource switch, will be ignored if javadoc is not the 1.4 version. Default is false false
packageList The name of a file containing the packages to process. false
packagenames Set the package names to be processed. false
source Enables the -source switch, will be ignored if javadoc is not the 1.4 version. false
sourcepath Specify where to find source file At least one of the three or nested <sourcepath>, <fileset> or <packageset>
sourcepathRef Adds a reference to a CLASSPATH defined elsewhere. At least one of the three or nested <sourcepath>, <fileset> or <packageset>
velocityLog if true indicate that a velocity.log is to be generated false
verbose Run javadoc in verbose mode false

Nested Elements:

<fileset>

Adds a fileset.

All included files will be added as sourcefiles. The task will automatically add includes="**/*.java" to the fileset.

false

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<package>

Add a single package to be processed. If the package name ends with ".*" the Javadoc task will find and process all subpackages. false

Parameters:

Attribute: Description: Required:
name  

<packageset>

Adds a packageset.

All included directories will be translated into package names be converting the directory separator into dots.

false

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<bootclasspath>

Create a Path to be configured with the boot classpath false

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 


Nested Elements:

<classpath>

Create a Path to be configured with the classpath to use false

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 


Nested Elements:

<param>

Create a doclet parameter to be configured by Ant. false

Parameters:

Attribute: Description: Required:
name  
value  

Nested Elements:

<sourcepath>

Create a path to be configured with the locations of the source files. At least one of the three or nested <sourcepath>, <fileset> or <packageset>

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 




antTasksPropertiesDoclet

Description:

Generate ant.properties file for all Ant Tasks found in the source

Recognized classes/tasks must qialify the following criteria:

  • They are public classes
  • Not abstract classes
  • Descendant (direct or indirect) of Ant's Task class org.apache.tools.ant.Task
  • Having @antTaskName tag in their class comment, denoting the task name in Ant
  • Example:

          /**
           * This is example class
           * @antTaskName exampleTask
           * /
          public class Example extends Task {
              ...
          }
     
    would result in:
          ...
          exampleTask=Example
          ...
     
    created on Sep 24, 2006

Class:

net.sf.fikin.ant.DocletAntPropertiesTask

Parameters:

Attribute: Description: Required:
bootClasspathRef Adds a reference to a CLASSPATH defined elsewhere. false
bootclasspath Set the boot classpath to use. false
classpath false
classpathRef Adds a reference to a CLASSPATH defined elsewhere. false
excludePackageNames Set the list of packages to be excluded. false
executable Sets the actual executable command to invoke, instead of the binary javadoc found in Ant's JDK. false
failonerror Should the build process fail if javadoc fails (as indicated by a non zero return code)?

Default is false.

false
file set output file to be generated true
linksource Enables the -linksource switch, will be ignored if javadoc is not the 1.4 version. Default is false false
packageList The name of a file containing the packages to process. false
packagenames Set the package names to be processed. false
source Enables the -source switch, will be ignored if javadoc is not the 1.4 version. false
sourcepath Specify where to find source file At least one of the three or nested <sourcepath>, <fileset> or <packageset>
sourcepathRef Adds a reference to a CLASSPATH defined elsewhere. At least one of the three or nested <sourcepath>, <fileset> or <packageset>
velocityLog if true indicate that a velocity.log is to be generated false
verbose Run javadoc in verbose mode false

Nested Elements:

<fileset>

Adds a fileset.

All included files will be added as sourcefiles. The task will automatically add includes="**/*.java" to the fileset.

false

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<package>

Add a single package to be processed. If the package name ends with ".*" the Javadoc task will find and process all subpackages. false

Parameters:

Attribute: Description: Required:
name  

<packageset>

Adds a packageset.

All included directories will be translated into package names be converting the directory separator into dots.

false

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<bootclasspath>

Create a Path to be configured with the boot classpath false

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 


Nested Elements:

<classpath>

Create a Path to be configured with the classpath to use false

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 


Nested Elements:

<param>

Create a doclet parameter to be configured by Ant. false

Parameters:

Attribute: Description: Required:
name  
value  

Nested Elements:

<sourcepath>

Create a path to be configured with the locations of the source files. At least one of the three or nested <sourcepath>, <fileset> or <packageset>

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 




antTasksAntlibDoclet

Description:

Generate antlib.xml file for all Ant Tasks found in the source

Recognized classes/tasks must qialify the following criteria:

  • They are public classes
  • Not abstract classes
  • Descendant (direct or indirect) of Ant's Task class org.apache.tools.ant.Task
  • Having @antTaskName tag in their class comment, denoting the task name in Ant
  • Example:

          /**
           * This is example class
           * @antTaskName exampleTask
           * /
          public class Example extends Task {
              ...
          }
     
    would result in:
          ...
          <task name="exampleTask" class="Example" />
          ...
     
    created on Sep 24, 2006

Class:

net.sf.fikin.ant.DocletAntlibTask

Parameters:

Attribute: Description: Required:
bootClasspathRef Adds a reference to a CLASSPATH defined elsewhere. false
bootclasspath Set the boot classpath to use. false
classpath false
classpathRef Adds a reference to a CLASSPATH defined elsewhere. false
excludePackageNames Set the list of packages to be excluded. false
executable Sets the actual executable command to invoke, instead of the binary javadoc found in Ant's JDK. false
failonerror Should the build process fail if javadoc fails (as indicated by a non zero return code)?

Default is false.

false
file set output file to be generated true
linksource Enables the -linksource switch, will be ignored if javadoc is not the 1.4 version. Default is false false
packageList The name of a file containing the packages to process. false
packagenames Set the package names to be processed. false
source Enables the -source switch, will be ignored if javadoc is not the 1.4 version. false
sourcepath Specify where to find source file At least one of the three or nested <sourcepath>, <fileset> or <packageset>
sourcepathRef Adds a reference to a CLASSPATH defined elsewhere. At least one of the three or nested <sourcepath>, <fileset> or <packageset>
velocityLog if true indicate that a velocity.log is to be generated false
verbose Run javadoc in verbose mode false

Nested Elements:

<fileset>

Adds a fileset.

All included files will be added as sourcefiles. The task will automatically add includes="**/*.java" to the fileset.

false

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<package>

Add a single package to be processed. If the package name ends with ".*" the Javadoc task will find and process all subpackages. false

Parameters:

Attribute: Description: Required:
name  

<packageset>

Adds a packageset.

All included directories will be translated into package names be converting the directory separator into dots.

false

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<bootclasspath>

Create a Path to be configured with the boot classpath false

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 


Nested Elements:

<classpath>

Create a Path to be configured with the classpath to use false

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 


Nested Elements:

<param>

Create a doclet parameter to be configured by Ant. false

Parameters:

Attribute: Description: Required:
name  
value  

Nested Elements:

<sourcepath>

Create a path to be configured with the locations of the source files. At least one of the three or nested <sourcepath>, <fileset> or <packageset>

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 




doclet

Description:

Ant task tailored at running JavaDoc Doclets

Example: Execute MyDoclet against some java sources

      <doclet name="net.sf.fikin.ant.MyDoclet" >
          <packageset dir="src" defaultexcludes="yes">
              <include name="net/sf/fikin/ant/**" />
          </packageset>
      </doclet>
 

Example: Pass current timestamp as extra Java System parameters used by MyDoclet

      <doclet name="net.sf.fikin.ant.MyDoclet" >
          <packageset dir="src" defaultexcludes="yes">
              <include name="net/sf/fikin/ant/**" />
          </packageset>
          <param name="-J-DDSTAMP=${DSTAMP}" />
      </doclet>
 
created on Sep 24, 2006

Class:

net.sf.fikin.ant.DocletTask

Parameters:

Attribute: Description: Required:
bootClasspathRef Adds a reference to a CLASSPATH defined elsewhere. false
bootclasspath Set the boot classpath to use. false
classpath false
classpathRef Adds a reference to a CLASSPATH defined elsewhere. false
excludePackageNames Set the list of packages to be excluded. false
executable Sets the actual executable command to invoke, instead of the binary javadoc found in Ant's JDK. false
failonerror Should the build process fail if javadoc fails (as indicated by a non zero return code)?

Default is false.

false
linksource Enables the -linksource switch, will be ignored if javadoc is not the 1.4 version. Default is false false
name set doclet's fully-qualified class name true
packageList The name of a file containing the packages to process. false
packagenames Set the package names to be processed. false
source Enables the -source switch, will be ignored if javadoc is not the 1.4 version. false
sourcepath Specify where to find source file At least one of the three or nested <sourcepath>, <fileset> or <packageset>
sourcepathRef Adds a reference to a CLASSPATH defined elsewhere. At least one of the three or nested <sourcepath>, <fileset> or <packageset>
verbose Run javadoc in verbose mode false

Nested Elements:

<fileset>

Adds a fileset.

All included files will be added as sourcefiles. The task will automatically add includes="**/*.java" to the fileset.

false

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<package>

Add a single package to be processed. If the package name ends with ".*" the Javadoc task will find and process all subpackages. false

Parameters:

Attribute: Description: Required:
name  

<packageset>

Adds a packageset.

All included directories will be translated into package names be converting the directory separator into dots.

false

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<bootclasspath>

Create a Path to be configured with the boot classpath false

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 


Nested Elements:

<classpath>

Create a Path to be configured with the classpath to use false

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 


Nested Elements:

<param>

Create a doclet parameter to be configured by Ant. false

Parameters:

Attribute: Description: Required:
name  
value  

Nested Elements:

<sourcepath>

Create a path to be configured with the locations of the source files. At least one of the three or nested <sourcepath>, <fileset> or <packageset>

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 




stx

Description:

STX transformations Ant task

Eseentially the same as {@link XsltTask} but providing Joost-based engine for transformations

Recognize all parameters of {@link XsltTask} expect <factory>

created on Oct 11, 2006

Class:

net.sf.fikin.ant.StxTask

Parameters:

Attribute: Description: Required:
failOnError Set whether to abort the execution in case of error during xslt, by default is true false
force Set whether to check dependencies, or always generate; optional, default is false. false
in specifies a single XML document to be styled. Should be used with the out attribute required if out is set, otherwise one or more nested are expected
out Specifies the output name for the styled result from the in attribute; required if in is set required if in is set, otherwise a nested is expected
reloadStylesheet Controls whether the stylesheet is reloaded for every transform.

Setting this to true may get around a bug in certain Xalan-J versions, default is false.

false
style Name of the stylesheet to use - given either relative to the project's basedir or as an absolute path this or styleSystemId="mySystemId"

Nested Elements:

<fileset>

Adds a set of files to copy. required if is set too, otherwise in and out is expected

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<depends>

Create an instance of an XSL parameter type "depends" for configuration by Ant. false

Parameters:

Attribute: Description: Required:
if Set whether this param should be used. It will be used if the property has been set, otherwise it won't. false
location set parameter's location true
unless Set whether this param should NOT be used. It will not be used if the property has been set, otherwise it will be used. false

Nested Elements:

<factory>

Create the factory element to configure a trax liaison.  

Parameters:

Attribute: Description: Required:
if Set whether this param should be used. It will be used if the property has been set, otherwise it won't. false
name Set the name of the factory  
unless Set whether this param should NOT be used. It will not be used if the property has been set, otherwise it will be used. false

Nested Elements:

<attribute>

Create an instance of a factory attribute. the newly created factory attribute  

Parameters:

Attribute: Description: Required:
if Set whether this param should be used. It will be used if the property has been set, otherwise it won't. false
name name of the parameter true
type type of the parameter false
unless Set whether this param should NOT be used. It will not be used if the property has been set, otherwise it will be used. false
value value of the parameter false


<mapper>

Defines the mapper to map source to destination files. required if is used

Parameters:

Attribute: Description: Required:
classname  
classpath  
classpathRef  
description  
from  
refid  
to  
type  

Nested Elements:

<configuredMapper>

 

Parameters:

Attribute: Description: Required:
classname  
classpath  
classpathRef  
description  
from  
refid  
to  
type  

<classpath>

 


Nested Elements:

<param>

Create an instance of an XSL parameter for configuration by Ant. false

Parameters:

Attribute: Description: Required:
expression parameter's expression this or "location" must be specified
if Set whether this param should be used. It will be used if the property has been set, otherwise it won't. false
location set parameter's location this or "expression" must be specified
name name of the parameter true
type type of the parameter false
unless Set whether this param should NOT be used. It will not be used if the property has been set, otherwise it will be used. false
value value of the parameter false



toXhtml

Description:

Perform to-XHTML conversion of an input document

to-XHTML is backed by neckHTML parser

Example: Perform to-xhtml conversion only and print the file

      <toXhtml>
          <input file="in1.html" />
          <output property="p1" />
      </toXhtml>
      <echo>${p1}</echo>
 

created on Jan 5, 2007

Class:

net.sf.fikin.ant.ToXhtml

Parameters:

Attribute: Description: Required:
failOnError abort build whenever execution error false

Nested Elements:

<input>

create xml/html/xhtml input tag true

Parameters:

Attribute: Description: Required:
file set input file this or property or inner text must be given
namespaceAware set if DOM factory to be namespace aware false
property set input property name this or file or inner text must be given
saveXHTMLInto save produced by toXHTML document into a file, useful for troubleshooting purposes false
toXHTML perform to-XHTML transformation to the input document

This is backed by NeckoHTML parser and does few thinks:

  • fix all open-close tags according built-in logic
  • fix all HTML-only entities to be XML compliant (such as $nbsp;)
  • makes all tags upper case
  • places all tags into default namespace "http://www.w3.org/1999/xhtml"

by default true

false

Nested Elements:

<text>

set nested tag's text this or property or file must be given


Nested Elements:

<output>

create output tag this or a sequential tag is expected

Parameters:

Attribute: Description: Required:
append append to the output file false
delimiter set records delimiter

typically tasks can use that string to separate lines of data instead of new line

false
file set output file this or property must be given
property set output property name this or file must be given
trim trim the resulting value before setting it to the property

by default true

has no meaning for file

false



velocityDoclet

Description:

Dedicated Ant task for executing a Velocity Template via {@link net.sf.fikin.doclets.VelocityDoclet} doclet

Example: Execute a template against some java sources

      <velocityDoclet template="my-template.vm" file="my-output.txt" >
          <packageset dir="src" defaultexcludes="yes">
              <include name="net/sf/fikin/ant/**" />
          </packageset>
      </velocityDoclet>
 

Example: Pass current timestamp as extra Java System parameters read by the template

      <velocityDoclet template="my-template.vm" file="my-output.txt" >
          <packageset dir="src" defaultexcludes="yes">
              <include name="net/sf/fikin/ant/**" />
          </packageset>
          <param name="-J-DDSTAMP=${DSTAMP}" />
      </velocityDoclet>
 
created on Sep 24, 2006

Class:

net.sf.fikin.ant.VelocityDocletTask

Parameters:

Attribute: Description: Required:
bootClasspathRef Adds a reference to a CLASSPATH defined elsewhere. false
bootclasspath Set the boot classpath to use. false
classpath false
classpathRef Adds a reference to a CLASSPATH defined elsewhere. false
excludePackageNames Set the list of packages to be excluded. false
executable Sets the actual executable command to invoke, instead of the binary javadoc found in Ant's JDK. false
failonerror Should the build process fail if javadoc fails (as indicated by a non zero return code)?

Default is false.

false
file set output file to be generated true
linksource Enables the -linksource switch, will be ignored if javadoc is not the 1.4 version. Default is false false
packageList The name of a file containing the packages to process. false
packagenames Set the package names to be processed. false
source Enables the -source switch, will be ignored if javadoc is not the 1.4 version. false
sourcepath Specify where to find source file At least one of the three or nested <sourcepath>, <fileset> or <packageset>
sourcepathRef Adds a reference to a CLASSPATH defined elsewhere. At least one of the three or nested <sourcepath>, <fileset> or <packageset>
template set template name, it resolves either to a file or a classloader resource true
velocityLog if true indicate that a velocity.log is to be generated false
verbose Run javadoc in verbose mode false

Nested Elements:

<fileset>

Adds a fileset.

All included files will be added as sourcefiles. The task will automatically add includes="**/*.java" to the fileset.

false

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<package>

Add a single package to be processed. If the package name ends with ".*" the Javadoc task will find and process all subpackages. false

Parameters:

Attribute: Description: Required:
name  

<packageset>

Adds a packageset.

All included directories will be translated into package names be converting the directory separator into dots.

false

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<bootclasspath>

Create a Path to be configured with the boot classpath false

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 


Nested Elements:

<classpath>

Create a Path to be configured with the classpath to use false

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 


Nested Elements:

<param>

Create a doclet parameter to be configured by Ant. false

Parameters:

Attribute: Description: Required:
name  
value  

Nested Elements:

<sourcepath>

Create a path to be configured with the locations of the source files. At least one of the three or nested <sourcepath>, <fileset> or <packageset>

Parameters:

Attribute: Description: Required:
description  
location  
path  
refid  

Nested Elements:

<dirset>

 

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<existing>

 

Nested Elements:

<extdirs>

 

Nested Elements:

<filelist>

 

Nested Elements:

<fileset>

 

Nested Elements:

<path>

 

Nested Elements:

<pathElement>

 




xpath

Description:

Execute XPath expressions against input XML/HTML data and return result.

Support XML or HTML inputs

Support writing to Project properties or a file

Support for multiple xpath expressions per single input

Example:

      <xpath>
          <input file="bin/test/ant/test1/in1.xml" />
          <output property="p1" />
          <forEach select="/root/id" >
              <valueOf select="local-name(..)" />
              <valueOf select="'/'" />
              <valueOf select="local-name()" />
          </forEach>
          <forEach select="/root" >
              <valueOf select="local-name()" />
              <valueOf select="' count nested tags : '" />
              <valueOf select="count(.)" />
          </forEach>
      </xpath>
      <echo>${p1}</echo>
 

where for input file:

      <root><id/></root>
 

would set property p1 to: [echo] root/id root count nested tags : 1

Example:

      <xpath>
          <input>
              <![CDATA[ <root><tag id="1"/><tag id="2"/></root> ]]>
          </input>
          <forEach select="/root/tag" >
              <valueOf select="@id" />
          </forEach>
          <sequential>
              <echo>@{node}</echo>
          </sequential>
      </xpath>
 

would print out: [echo] 1 [echo] 2

created on Jan 3, 2007

Class:

net.sf.fikin.ant.XPathTask

Parameters:

Attribute: Description: Required:
failOnError abort build whenever execution error false

Nested Elements:

<namespace>

add new namespace tag false

Parameters:

Attribute: Description: Required:
if Set whether this param should be used. It will be used if the property has been set, otherwise it won't. false
prefix set the namespace prefix true
unless Set whether this param should NOT be used. It will not be used if the property has been set, otherwise it will be used. false
uri set the namespace uri true

<factory>

create factory tag false

Parameters:

Attribute: Description: Required:
classname set the facotry class name false
if Set whether this param should be used. It will be used if the property has been set, otherwise it won't. false
unless Set whether this param should NOT be used. It will not be used if the property has been set, otherwise it will be used. false

Nested Elements:

<attibute>

add factory attribute false

Parameters:

Attribute: Description: Required:
if Set whether this param should be used. It will be used if the property has been set, otherwise it won't. false
name name of the parameter true
type type of the parameter false
unless Set whether this param should NOT be used. It will not be used if the property has been set, otherwise it will be used. false
value value of the parameter false


<forEach>

create new for-each tag true

Parameters:

Attribute: Description: Required:
if Set whether this param should be used. It will be used if the property has been set, otherwise it won't. false
select set xpath select expression true
unless Set whether this param should NOT be used. It will not be used if the property has been set, otherwise it will be used. false

Nested Elements:

<valueOf>

create value-of nested tag return valueOf nested value-of tag false

Parameters:

Attribute: Description: Required:
if Set whether this param should be used. It will be used if the property has been set, otherwise it won't. false
select set xpath select expression true
unless Set whether this param should NOT be used. It will not be used if the property has been set, otherwise it will be used. false


<function>

create new function tag false

Parameters:

Attribute: Description: Required:
classname set classname of the function true
if Set whether this param should be used. It will be used if the property has been set, otherwise it won't. false
isReusable is the function object reusable i.e. one and same object used in multiple xpath calls

by default true

 
name function name in xpath  
prefix set the namespace prefix true
unless Set whether this param should NOT be used. It will not be used if the property has been set, otherwise it will be used. false
uri set the namespace uri true

Nested Elements:

<input>

create xml/html/xhtml input tag true

Parameters:

Attribute: Description: Required:
file set input file this or property or inner text must be given
namespaceAware set if DOM factory to be namespace aware false
property set input property name this or file or inner text must be given
saveXHTMLInto save produced by toXHTML document into a file, useful for troubleshooting purposes false
toXHTML perform to-XHTML transformation to the input document

This is backed by NeckoHTML parser and does few thinks:

  • fix all open-close tags according built-in logic
  • fix all HTML-only entities to be XML compliant (such as $nbsp;)
  • makes all tags upper case
  • places all tags into default namespace "http://www.w3.org/1999/xhtml"

by default true

false

Nested Elements:

<text>

set nested tag's text this or property or file must be given


Nested Elements:

<output>

create output tag this or a sequential tag is expected

Parameters:

Attribute: Description: Required:
append append to the output file false
delimiter set records delimiter

typically tasks can use that string to separate lines of data instead of new line

false
file set output file this or property must be given
property set output property name this or file must be given
trim trim the resulting value before setting it to the property

by default true

has no meaning for file

false

Nested Elements:

<sequential>

Create sequential task

Its code will be executed for each Node found in by for-each tags

One can refer to the combined value-of string (computed for that Node) via the macro attribute @{node}

this or a sequential tag is expected



xslt2

Description:

Reworked version of Ant's STYLE/XSLT task

Main differences are:

  • transformation is based on {@link net.sf.fikin.xml.Xslt} object
  • one is capable of specifying location="..." instead of expression="..." for parameteres and attibutes. This allows for up-to-date dependency checking and also passing these values as URLs instead of simple file names. Last is required by Xalan when the xslt parameter is document location.
  • one can specify nested <depend location="..."> elements. They serve to enrich the up-to-date dependency checking with files which could be typically referenced from the xswlt itself and thus Ant would otherwise have no ability to see them. This is a short version of using <dependset> task.
created on Aug 9, 2005

Class:

net.sf.fikin.ant.XsltTask

Parameters:

Attribute: Description: Required:
failOnError Set whether to abort the execution in case of error during xslt, by default is true false
force Set whether to check dependencies, or always generate; optional, default is false. false
in specifies a single XML document to be styled. Should be used with the out attribute required if out is set, otherwise one or more nested are expected
out Specifies the output name for the styled result from the in attribute; required if in is set required if in is set, otherwise a nested is expected
reloadStylesheet Controls whether the stylesheet is reloaded for every transform.

Setting this to true may get around a bug in certain Xalan-J versions, default is false.

false
style Name of the stylesheet to use - given either relative to the project's basedir or as an absolute path this or styleSystemId="mySystemId"

Nested Elements:

<fileset>

Adds a set of files to copy. required if is set too, otherwise in and out is expected

Parameters:

Attribute: Description: Required:
caseSensitive  
defaultexcludes  
description  
dir  
excludes  
excludesfile  
file  
followSymlinks  
includes  
includesfile  
refid  

<depends>

Create an instance of an XSL parameter type "depends" for configuration by Ant. false

Parameters:

Attribute: Description: Required:
if Set whether this param should be used. It will be used if the property has been set, otherwise it won't. false
location set parameter's location true
unless Set whether this param should NOT be used. It will not be used if the property has been set, otherwise it will be used. false

Nested Elements:

<factory>

Create the factory element to configure a trax liaison.  

Parameters:

Attribute: Description: Required:
if Set whether this param should be used. It will be used if the property has been set, otherwise it won't. false
name Set the name of the factory  
unless Set whether this param should NOT be used. It will not be used if the property has been set, otherwise it will be used. false

Nested Elements:

<attribute>

Create an instance of a factory attribute. the newly created factory attribute  

Parameters:

Attribute: Description: Required:
if Set whether this param should be used. It will be used if the property has been set, otherwise it won't. false
name name of the parameter true
type type of the parameter false
unless Set whether this param should NOT be used. It will not be used if the property has been set, otherwise it will be used. false
value value of the parameter false


<mapper>

Defines the mapper to map source to destination files. required if is used

Parameters:

Attribute: Description: Required:
classname  
classpath  
classpathRef  
description  
from  
refid  
to  
type  

Nested Elements:

<configuredMapper>

 

Parameters:

Attribute: Description: Required:
classname  
classpath  
classpathRef  
description  
from  
refid  
to  
type  

<classpath>

 


Nested Elements:

<param>

Create an instance of an XSL parameter for configuration by Ant. false

Parameters:

Attribute: Description: Required:
expression parameter's expression this or "location" must be specified
if Set whether this param should be used. It will be used if the property has been set, otherwise it won't. false
location set parameter's location this or "expression" must be specified
name name of the parameter true
type type of the parameter false
unless Set whether this param should NOT be used. It will not be used if the property has been set, otherwise it will be used. false
value value of the parameter false