|
FixCRLF (Apache Ant API)
org.apache.tools.ant.taskdefs
|
Nested Class Summary | |
static class |
FixCRLF.AddAsisRemove
Enumerated attribute with the values "asis", "add" and "remove". |
static class |
FixCRLF.CrLf
Enumerated attribute with the values "asis", "cr", "lf" and "crlf". |
Field Summary |
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
fileset, useDefaultExcludes |
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 | |
FixCRLF()
Defaults the properties based on the system type. |
Method Summary | |
void |
execute()
Executes the task. |
void |
setCr(FixCRLF.AddAsisRemove attr)
Deprecated. use setEol instead. |
void |
setDestdir(java.io.File destDir)
Set the destination where the fixed files should be placed. |
void |
setEncoding(java.lang.String encoding)
Specifies the encoding Ant expects the files to be in - defaults to the platforms default encoding. |
void |
setEof(FixCRLF.AddAsisRemove attr)
Specify how DOS EOF (control-z) characters are to be handled. |
void |
setEol(FixCRLF.CrLf attr)
Specify how EndOfLine characters are to be handled. |
void |
setJavafiles(boolean javafiles)
Set to true if modifying Java source files. |
void |
setSrcdir(java.io.File srcDir)
Set the source dir to find the source text files. |
void |
setTab(FixCRLF.AddAsisRemove attr)
Specify how tab characters are to be handled. |
void |
setTablength(int tlength)
Specify tab length in characters. |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
addAnd, addContains, addCustom, addDate, addDepend, addDepth, addFilename, addMajority, addNone, addNot, addOr, addPresent, addSelector, addSize, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FixCRLF()
Method Detail |
public void setSrcdir(java.io.File srcDir)
public void setDestdir(java.io.File destDir)
public void setJavafiles(boolean javafiles)
public void setEol(FixCRLF.CrLf attr)
attr
- valid values:
public void setCr(FixCRLF.AddAsisRemove attr)
setEol
instead.
public void setTab(FixCRLF.AddAsisRemove attr)
attr
- valid values:
public void setTablength(int tlength) throws BuildException
tlength
- specify the length of tab in spaces,
BuildException
public void setEof(FixCRLF.AddAsisRemove attr)
attr
- valid values:
public void setEncoding(java.lang.String encoding)
public void execute() throws BuildException
BuildException
- if something goes wrong with the build
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |