You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cayenne.apache.org by Peter Schröder <Pe...@freenet-ag.de> on 2006/12/14 13:35:15 UTC

modeling queries and inconsistent newlines

hi,

i am currently creating raw-sql queries in the modeler using XP as os. after saving changes i try to commit it to my svn which is on a linux based server and i get following svn-error:

    Sending        workspace/whitelabel/src/main/resources/whitelabelMap.map.xml
    Transmitting file data ...
    Inconsistent line ending style
svn: Commit failed (details follow):
svn: File 'C:\eclipse\workspace\whitelabel\src\main\resources\whitelabelMap.map.xml' has inconsistent newlines 

changing the file-encoding doesn't seem to have any impact on this.

i have a workaround for this: editing the .xml file with a text-editor and converting it to unix-style line ends.

is there any property i can set in modeler or elsewhere that might fix that problem?

kind regards
peter

Re: modeling queries and inconsistent newlines

Posted by Andrus Adamchik <an...@objectstyle.org>.
There is no way to change that via the UI (encoding is a different  
beast all together), but here is an idea - try starting the modeler  
overriding standard JVM "line.separator" property. Not sure if this  
works, but it might.

Andrus

On Dec 14, 2006, at 3:35 PM, Peter Schröder wrote:
> hi,
>
> i am currently creating raw-sql queries in the modeler using XP as  
> os. after saving changes i try to commit it to my svn which is on a  
> linux based server and i get following svn-error:
>
>     Sending        workspace/whitelabel/src/main/resources/ 
> whitelabelMap.map.xml
>     Transmitting file data ...
>     Inconsistent line ending style
> svn: Commit failed (details follow):
> svn: File 'C:\eclipse\workspace\whitelabel\src\main\resources 
> \whitelabelMap.map.xml' has inconsistent newlines
>
> changing the file-encoding doesn't seem to have any impact on this.
>
> i have a workaround for this: editing the .xml file with a text- 
> editor and converting it to unix-style line ends.
>
> is there any property i can set in modeler or elsewhere that might  
> fix that problem?
>
> kind regards
> peter
>