Change By: Daniel Dunbar (06/Aug/12 2:40 PM)
Description: My Jenkins slave running on Windows XP is checking out my files from CVS  in  with a  Windows format.   I.e. The files are in my file system with /r/n.

I am building inside cygwin, so my build is failing with this message:
error C4335: Mac file format detected: please convert the source file to either DOS or UNIX format

If One specific file looks like this when  I  ssh to the slave, and do a  run  ' cvs co file '  on it.  In Jenkins workspace it looks like this:

L_LicenceObjectBasePtr.cpp: ASCII C++ program text
,  with CRLF, CR line terminators

If
 I  get unix file formats.  Even if I open a cygwin window on  checkout  the  slave itself  source using cygwin ,  and do a  the output of  ' cvs co file '  I still get unix  on the same  file  formats  looks like this:

L_LicenceObjectBasePtr
. cpp: ASCII C++ program text, with CRLF line terminators  

I am attempting to run dos2unix on my files before building, but this is not the most ideal solution.


Is there another know solution to this, but why would the line endings of my files coming out of CVS be different for via Jenkins than via cygwin.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to