|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
net.sf.tomp.xtcl.ant.XtclTask
public class XtclTask
<project name="OwnTaskExample" default="main" basedir="."> <taskdef name="xtcl" classname="net.sf.tomp.xtcl.ant.XtclTask"/> <target name="main"> <xtcl quiet="false" file="demo/echo.xcf" fileAfter="demo/echo.xcf" resolvingReader="net.sf.tomp.xtcl.resolver.XTResolvingReader" uriResolver="net.sf.tomp.xtcl.resolver.XTResolver"/> </target> <target name="main"> <xtcl scriptbefore="true" file="demo/echo.xcf" fileAfter="demo/echo.xcf"> ECHO Hello! </xtcl> </target> </project>It will give:
Buildfile: build.xml main: [xtcl] Echo! [xtcl] Echo!
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
project |
Constructor Summary | |
---|---|
XtclTask()
|
Method Summary | |
---|---|
void |
addText(java.lang.String text)
|
void |
execute()
Executes the task. |
void |
setFile(java.io.File file)
|
void |
setFileafter(java.io.File fileafter)
|
void |
setIgnoreerrors(boolean g)
|
void |
setQuiet(boolean quiet)
|
void |
setResolvingReader(java.lang.Class resolvingReader)
|
void |
setScriptbefore(boolean sb)
|
void |
setUriResolver(java.lang.Class uriResolver)
|
Methods inherited from class org.apache.tools.ant.Task |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getProject, setProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XtclTask()
Method Detail |
---|
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
Task.execute()
public void setIgnoreerrors(boolean g)
sb
- whether the script specified in the task body is to be executed before
the scripts from filepublic void setScriptbefore(boolean sb)
sb
- whether the script specified in the task body is to be executed before
the scripts from filepublic void addText(java.lang.String text)
text
- The text of the script to be executed as if written
on the command linepublic void setFile(java.io.File file)
file
- The file to set. The name of the XTCL (usually *.xcf) script
file to be executedpublic void setFileafter(java.io.File fileafter)
fileAfter
- The file to set. The name of the XTCL (usually *.xcf) script
file to be executedpublic void setQuiet(boolean quiet)
quiet
- The quiet to set. sets the non-verbose mode if set to truepublic void setResolvingReader(java.lang.Class resolvingReader)
resolvingReader
- The resolvingReader class to set. sets
XMLResolvingReader class used to read XML resolving URIspublic void setUriResolver(java.lang.Class uriResolver)
uriResolver
- The uriResolver to set. sets URIResolver class to be
used by JAXP
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |