public class XlatorTask
extends org.apache.tools.ant.Task
Attribute | Description | Required |
destDir | Location to write the translated files | Yes |
baseUrl | The baseUrl to use for testing | Yes |
formatter | Formatter to use; currently supported formatters are "java-rc", "cs-rc", "perl-rc", "python-rc", and "ruby-rc". | Yes |
A fileset of HTML Selenese files to translate
An option to pass to the translator, in the form <option name="foo" value="bar" />
A mapper of files to output files. The default mapper is a glob mapper from *.html to the appropriate extension for the specified formatter (.java, .cs, .pl, etc.).
Modifier and Type | Class and Description |
---|---|
static class |
XlatorTask.FormatterType |
Constructor and Description |
---|
XlatorTask() |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguredOption(org.apache.tools.ant.taskdefs.Property p) |
void |
addFileSet(org.apache.tools.ant.types.FileSet fs) |
org.apache.tools.ant.types.Mapper |
createMapper()
Defines the mapper to map source to destination files.
|
void |
execute() |
void |
setBaseUrl(URL baseUrl) |
void |
setDestDir(File destDir)
Specifies a destination directory for translated output
|
void |
setFormatter(XlatorTask.FormatterType formatter) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void setDestDir(File destDir)
public void setFormatter(XlatorTask.FormatterType formatter)
public void setBaseUrl(URL baseUrl)
public void addFileSet(org.apache.tools.ant.types.FileSet fs)
public void addConfiguredOption(org.apache.tools.ant.taskdefs.Property p)
public org.apache.tools.ant.types.Mapper createMapper() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- if more than one mapper is definedpublic void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
Copyright © 2012. All Rights Reserved.