|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task de.opsdesign.yax.tools.YaxTask
public class YaxTask
runs yax (an xproc (xml pipeline language) processor) which applies the xproc pipeline script to the input resources.
Field Summary | |
---|---|
protected boolean |
debug
if set to true, yax logs also debug messages. |
protected boolean |
force
if set to true, existant output files will be overwritten. |
protected java.io.File |
in
input file (for treating a single file) |
protected java.util.List<org.apache.tools.ant.types.ResourceCollection> |
inList
multiple input files (receives all include files from fileset) |
protected boolean |
noOutputfile
set to 'true' supresses generation of (top level) output file(s). |
protected java.io.File |
out
output file (only if a single input file is used (will say 'in' is used). |
protected java.io.File |
outDir
output directory (if omitted input file parent will be used instead) |
protected java.lang.String |
outPattern
output file name pattern use like {$inTrunk}.output. |
protected java.util.List<org.apache.tools.ant.taskdefs.Property> |
properties
start parameters equivalent to the start parameter of command line uses + properties of the properties file(s) |
protected java.io.File |
propertyfile
property file. its content overrides the yax property file (if there are any) |
protected boolean |
quiet
if set to true, yax logs only very important events. |
protected java.io.File |
script
xproc script file. |
protected boolean |
verbose
if set to true, yax comments intensively the progress. |
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 |
Fields inherited from interface de.opsdesign.yax.ArgsHandler |
---|
IN_LIST, NO_OUPUTFILE, OUT_DIR, OUT_PATTERN |
Constructor Summary | |
---|---|
YaxTask()
|
Method Summary | |
---|---|
void |
add(org.apache.tools.ant.taskdefs.Property property)
|
void |
add(org.apache.tools.ant.types.ResourceCollection inputs)
Adds input files to treat as input. |
org.apache.tools.ant.types.Path |
createClasspath()
|
void |
execute()
|
java.io.File |
getIn()
Sets the single file to treat as input. |
java.io.File |
getOut()
|
java.io.File |
getOutDir()
|
java.lang.String |
getOutPattern()
|
java.io.File |
getPropertyfile()
|
java.io.File |
getScript()
|
void |
init()
Initialize internal instance of XMLCatalog |
boolean |
isDebug()
|
boolean |
isForce()
Get the XML catalog containing entity definitions |
boolean |
isNoOutputfile()
|
boolean |
isQuiet()
|
boolean |
isVerbose()
|
void |
setClasspathRef(org.apache.tools.ant.types.Reference r)
|
void |
setDebug(boolean debug)
|
void |
setForce(boolean force)
|
void |
setIn(java.io.File in)
|
void |
setNoOutputfile(boolean noOutputfile)
|
void |
setOut(java.io.File out)
|
void |
setOutDir(java.io.File outDir)
|
void |
setOutPattern(java.lang.String outPattern)
|
void |
setPropertyfile(java.io.File propertyfile)
|
void |
setQuiet(boolean quiet)
|
void |
setScript(java.io.File script)
|
void |
setVerbose(boolean verbose)
|
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, 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 |
Field Detail |
---|
protected boolean verbose
protected boolean quiet
protected boolean debug
protected java.io.File propertyfile
protected java.io.File in
protected java.io.File out
protected java.io.File outDir
protected java.lang.String outPattern
protected boolean noOutputfile
protected java.io.File script
protected boolean force
protected java.util.List<org.apache.tools.ant.taskdefs.Property> properties
protected java.util.List<org.apache.tools.ant.types.ResourceCollection> inList
Constructor Detail |
---|
public YaxTask()
Method Detail |
---|
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
public void init() throws org.apache.tools.ant.BuildException
init
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- on errorpublic void add(org.apache.tools.ant.types.ResourceCollection inputs)
inputs
- a set of input files to treat as input documents.public void add(org.apache.tools.ant.taskdefs.Property property)
public boolean isForce()
public void setForce(boolean force)
public java.io.File getIn()
in
- a single input file to treat as input document.public void setIn(java.io.File in)
public java.io.File getOut()
public void setOut(java.io.File out)
public java.io.File getOutDir()
public void setOutDir(java.io.File outDir)
public java.lang.String getOutPattern()
public void setOutPattern(java.lang.String outPattern)
public java.io.File getScript()
public void setScript(java.io.File script)
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
public org.apache.tools.ant.types.Path createClasspath()
public boolean isDebug()
public void setDebug(boolean debug)
public java.io.File getPropertyfile()
public void setPropertyfile(java.io.File propertyfile)
public boolean isQuiet()
public void setQuiet(boolean quiet)
public boolean isVerbose()
public void setVerbose(boolean verbose)
public boolean isNoOutputfile()
public void setNoOutputfile(boolean noOutputfile)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |