public class AntTask
extends org.apache.tools.ant.Task
The following attributes are mutually exclusive:
| Constructor and Description |
|---|
AntTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigured(org.apache.tools.ant.types.ResourceCollection value)
Resources to convert.
|
void |
execute()
The ANT task "execute" method.
|
void |
setFile(File value)
The file that contains the HTML document to convert.
|
void |
setInputCharset(String charsetName)
The charset to use when reading HTML input files.
|
void |
setOutputCharset(String charsetName)
The charset to use when writing text input files.
|
void |
setPageLeftMargin(int value)
The number of spaces that preceeds each line of output.
|
void |
setPageRightMargin(int value)
The maximum length of output lines is "pageWidth - rightMarginWidth".
|
void |
setPageWidth(int value)
The maximum length of output lines is "pageWidth - rightMarginWidth".
|
void |
setTodir(File value)
The directory where the output file(s) will be created.
|
void |
setTofile(File value)
The file that contains generated plain text.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setFile(File value)
public void setTofile(File value)
public void setTodir(File value)
.html" suffix (if any), plus an ".txt" extension.
The default is the source resource's base directory (if any), otherwise the project's base directory.
public void setPageLeftMargin(int value)
public void setPageRightMargin(int value)
The default value is @"1" in order to avoid extra line wraps on certain terminals.
public void setPageWidth(int value)
Defaults to the value of the environment variable "$COLUMNS", or, if that is not set, to 80.
public void setInputCharset(String charsetName)
JVM default
charset.public void setOutputCharset(String charsetName)
JVM default
charset.public void addConfigured(org.apache.tools.ant.types.ResourceCollection value)
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionTask.execute()Copyright © 2016 Arno Unkrig. All rights reserved.