Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » [xtend] Line-Endings
[xtend] Line-Endings [message #777555] Tue, 10 January 2012 17:29 Go to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

I'm using xtend to generate XML-Files from an DSL I created. The
generated XML-Files get checked into Git like any other file because of
various reasons (e.g. sharing the project with other IDEs).

My problem now is that xtend uses the line endings of the system which
means when I check out the sources on windows and mac I get a file
change because of the line endings.

I looked into the sources and it looks like the StringConcatenation can
be passed a custom line delimiter but the xtend to java translation is
not using it.

Can I somehow make the xtend => java code creation use
StringConcatenation("\r\n") instead of StringConcatenation()?

Tom
Re: [xtend] Line-Endings [message #777594 is a reply to message #777555] Tue, 10 January 2012 19:26 Go to previous message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Tom,

this was already solved in the latest builds from HEAD.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 10.01.12 18:29, schrieb Tom Schindl:
> Hi,
>
> I'm using xtend to generate XML-Files from an DSL I created. The
> generated XML-Files get checked into Git like any other file because of
> various reasons (e.g. sharing the project with other IDEs).
>
> My problem now is that xtend uses the line endings of the system which
> means when I check out the sources on windows and mac I get a file
> change because of the line endings.
>
> I looked into the sources and it looks like the StringConcatenation can
> be passed a custom line delimiter but the xtend to java translation is
> not using it.
>
> Can I somehow make the xtend => java code creation use
> StringConcatenation("\r\n") instead of StringConcatenation()?
>
> Tom
Previous Topic:Diagnosing ambiguous references
Next Topic:HTML doc for web and content assist ?
Goto Forum:
  


Current Time: Fri Apr 26 00:16:16 GMT 2024

Powered by FUDForum. Page generated in 0.02869 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top