Class CheckEol

  • All Implemented Interfaces:

    public class CheckEol
    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 Summary

      • Fields inherited from class

        target, taskName, taskType, wrapper
      • Fields inherited from class

        description, location, project
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFileset​( fs)
      Sets the files to be checked
      void execute()
      Perform the check
      void setMode​(java.lang.String mode)
      Sets the line ending mode.
      • Methods inherited from class

        bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
      • Methods inherited from class

        clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CheckEol

        public CheckEol()
    • Method Detail

      • addFileset

        public void addFileset​( fs)
        Sets the files to be checked
        fs - The fileset to be checked.
      • setMode

        public void setMode​(java.lang.String mode)
        Sets the line ending mode.
        mode - The line ending mode (either LF or CRLF)
      • execute

        public void execute()
        Perform the check
        execute in class
        Throws: - if an error occurs during execution of this task.