Package org.apache.tomcat.buildutil
Class CheckEol
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tomcat.buildutil.CheckEol
- All Implemented Interfaces:
- Cloneable
public class CheckEol
extends org.apache.tools.ant.Task
Ant task that checks that all the files in the given fileset have end-of-line
 delimiters that are appropriate.
 
The goal is to check whether we have problems with Subversion's svn:eol-style property or Git's autocrlf setting when files are committed on one OS and then checked on another one.
- 
Field SummaryFields inherited from class org.apache.tools.ant.Tasktarget, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddFileset(org.apache.tools.ant.types.FileSet fs) Sets the files to be checkedvoidexecute()Perform the checkvoidSets the line ending mode.Methods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Constructor Details- 
CheckEolpublic CheckEol()
 
- 
- 
Method Details- 
addFilesetpublic void addFileset(org.apache.tools.ant.types.FileSet fs) Sets the files to be checked- Parameters:
- fs- The fileset to be checked.
 
- 
setModeSets the line ending mode.- Parameters:
- mode- The line ending mode (either LF or CRLF)
 
- 
executepublic void execute() throws org.apache.tools.ant.BuildExceptionPerform the check- Overrides:
- executein class- org.apache.tools.ant.Task
- Throws:
- org.apache.tools.ant.BuildException- if an error occurs during execution of this task.
 
 
-