Thanks Paul. If that is truly the case, then I can rule out jsch.
Since jcraft should over-write any settings in the Team Support I believe the culprit would lie with jcraft's sftp plugin. Unfortunately, I'm not getting any return emails from them atm. I will have to make do with the work around for now. Thanks again, you've been v helpful. -----Original Message----- From: Paul Ebermann Sent: Saturday, June 18, 2011 1:07 AM To: superspace Cc: jsch-users@lists.sourceforge.net Subject: Re: [JSch-users] Carriage Return Automatically added on upload to remote server [@superspace: sorry for double sending, I used a wrong sending address before, which would not get through to the mailing list.] superspace schrieb: > I use jcraft sftp in eclipse to upload local changes to my development > server. For the readers of the list who didn't know this: http://www.jcraft.com/eclipse-sftp/ > I’ve noticed (for a while now) that it automatically adds a windows > carriage return to my php files. > > To ensure that my local copy is carriage return free I have done the > following: > > * I fromdos all local files > * I’ve set “New text file line delimiter” to Unix > * I’ve set subversion eol for php files to LF: *.php = svn:eol-style=LF > > But it still did not fix the issue. > > The only workaround I’ve found (which is usable but not entirely > satisfactory) is if I add the following: > > /Preferences/Team/File Content/ > * Name/Extension: *.php > * Content: Binary > > Any reason why jsch (i assume this is the underlying code responsible) > adds the carriage return? I think this does not relate to JSch, which does no transformation at all. The culprit is either the SFTP plugin or the Eclipse Team support infrastructure. I assume there is some heuristic which says "text files should be transformed to the receivers line ending type, while binary files should not be transformed at all". With your configuration saying that PHP files are binary, they are then left alone. I have no experience with this plugin (or the team support at all, other than a bit Git and Subversion), thus I can't say whether there is any configuration option specifically for this. Paŭlo ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users