|
|||||||||
| 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
org.openqa.selenium.XlatorTask
public class XlatorTask
Provides an Ant task to run the Selenium Translator, which translates HTML Selenese into other programming languages.
| Attribute | Description | Required |
| destDir | Location to write the translated files | 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
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.).
| Nested Class Summary | |
|---|---|
static class |
XlatorTask.FormatterType
|
| 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 | |
|---|---|
XlatorTask()
|
|
| Method Summary | |
|---|---|
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 |
setDestDir(java.io.File destDir)
Specifies a destination directory for translated output |
void |
setFormatter(XlatorTask.FormatterType formatter)
|
| 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 XlatorTask()
| Method Detail |
|---|
public void setDestDir(java.io.File destDir)
public void setFormatter(XlatorTask.FormatterType formatter)
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 defined
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||