[
http://nagoya.apache.org/jira/browse/CACTUS-143?page=comments#action_55203 ]
Vincent Massol commented on CACTUS-143:
---------------------------------------
Ah I think I see the problem. The NewlineAtEndOfFile will check if the file
contains the line ending corresponding to the executing platform. Thus it'll
fail on unixes as the EOF character used is the one for windows I guess. So
maybe we simply need to add the lineSeparator property:
<module name="NewlineAtEndOfFile">
<property name="lineSeparator" value="crlf"/>
</module>
?
> ant fails on [checkstyle] task under cygwin due to mixup with newlines
> ----------------------------------------------------------------------
>
> Key: CACTUS-143
> URL: http://nagoya.apache.org/jira/browse/CACTUS-143
> Project: Cactus
> Type: Bug
> Environment: cygwin - got cactus HEAD from CVS
> Reporter: Ralf Hauser
> Assignee: Felipe Leme
> Fix For: 1.7
>
> ...
> [checkstyle] C:\Documents and Settings\r\My Documents\psph\workspace\c
> actus\framework\src\test\share-13-14\org\apache\cactus\extension\jetty\TestJetty
> TestSetup.java:0: File does not end with a newline.
> BUILD FAILED
> C:\Documents and Settings\r\My Documents\psph\workspace\cactus\build.x
> ml:43: Following error occured while executing this line
> C:\Documents and Settings\r\My Documents\psph\workspace\cactus\framewo
> rk\build.xml:627: Got 122 errors.
> when doing a
> [EMAIL PROTECTED]:~/<1>workspace/cactus> u2d framework/src/test/share-13-14
> /org/apache/cactus/extension/jetty/TestJettyTestSetup.java
> that file no longer shows up.
> when doing "cat -vte" this file now ends with
> // Ensure that tearDown will shutdown the container^M$
> jettyTestSetup.setForceShutdown(true);^M$
> } ^M$
> }^M$
> instead of
> // Ensure that tearDown will shutdown the container$
> jettyTestSetup.setForceShutdown(true);$
> } $
> }$
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]