Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-vcm-dev] File line terminators - setting default and programatically converting

I am writing a VCM plugin, unfortunately the version control system I am using CMVC,
insists on given me files with Windows line terminators, when I call it from windows.
But I want to always use Unix line terminators......
 
I run Eclipse on NT, accessing files on a UNIX shared drive.
I want all files to use Unix line-feeds, even though they might be created
on NT.

- How can I set the default line terminator in Eclipse?
  - Can I force files to be terminated in a certain way (for certain types
of files - so as not to damage binary files)

- I also need to programmatically change line termination.
How can I re-use the Eclipse code to do this?
-- i.e. how can I ask to set line termination on a resource?
-- do I need to do anything different to do this from within a team plugin's file-edit-validate hook?
 
Thanks,
Mark.
 

Back to the top