org.jcoderz.commons.taskdefs
Class XsltBasedTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.jcoderz.commons.taskdefs.XsltBasedTask
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
AppInfoTask, ConfigurationClassesGenerator, ConfigurationInitFileGenerator, ConfigurationTestGenerator, ConfigurationValidatorGenerator, ErrorCodeManual, JsfConverterGenerator, LogMessageGenerator, SimpleTypeGenerator

public abstract class XsltBasedTask
extends org.apache.tools.ant.Task

This class implements common functionality for XSLT based Ant tasks.

Author:
Michael Griffel

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
XsltBasedTask()
           
 
Method Summary
 void execute()
          Execute this task.
 String getFawkezVersionAsString()
           
 void resolveExternalEntities(boolean b)
          If set to false, external entities will not be resolved.
 void setDestdir(File dir)
          Set the destination directory into which the XSL result files should be copied to.
 void setFailonerror(boolean b)
          Set whether we should fail on an error.
 void setForce(boolean b)
          Sets the force output of target files flag to the given value.
 void setIn(File f)
          Sets the XML input file that contains the log message info document.
 void setLogLevel(int level)
          Sets the log level.
 void setOut(File f)
          Sets the output file.
 void setXsl(String s)
          Sets the XSL file that is used to generate the log message info classes.
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XsltBasedTask

public XsltBasedTask()
Method Detail

setDestdir

public void setDestdir(File dir)
Set the destination directory into which the XSL result files should be copied to. This parameter is required.

Parameters:
dir - the name of the destination directory.

setXsl

public void setXsl(String s)
Sets the XSL file that is used to generate the log message info classes.

Parameters:
s - the XSL file to use.

setIn

public void setIn(File f)
Sets the XML input file that contains the log message info document.

Parameters:
f - the XML input file (log message info).

setOut

public void setOut(File f)
Sets the output file.

Parameters:
f - The output file.

setForce

public void setForce(boolean b)
Sets the force output of target files flag to the given value.

Parameters:
b - Whether we should force the generation of output files.

setFailonerror

public void setFailonerror(boolean b)
Set whether we should fail on an error.

Parameters:
b - Whether we should fail on an error.

setLogLevel

public void setLogLevel(int level)
Sets the log level.

Parameters:
level - the new log level

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Execute this task.

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException - An building exception occurred.

getFawkezVersionAsString

public String getFawkezVersionAsString()
Returns:
the fawkez version used for build.

resolveExternalEntities

public void resolveExternalEntities(boolean b)
If set to false, external entities will not be resolved.

Parameters:
b - new value.


Copyright 2007 The jCoderZ Project.