Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » ResourceCreationTask and line delimiter CRLF
ResourceCreationTask and line delimiter CRLF [message #1835377] Wed, 02 December 2020 02:23 Go to next message
Frank Becker is currently offline Frank BeckerFriend
Messages: 89
Registered: July 2009
Member
How can I use the ResourceCreationTask to create a Resource with the windows line delimiter (CRLF)?

My workspace use the Unix line delimiter.

I need the windows line delimiter because I want to create a digital signed powershell script. The signing comment lines have to use windows line delimiter. Otherwise the signing is broken.

Thoughts?
Re: ResourceCreationTask and line delimiter CRLF [message #1835394 is a reply to message #1835377] Wed, 02 December 2020 10:35 Go to previous messageGo to next message
Frank Becker is currently offline Frank BeckerFriend
Messages: 89
Registered: July 2009
Member
I found a way.

I need to base64 the content of the file and then set the encoding to base64.

Frank
Re: ResourceCreationTask and line delimiter CRLF [message #1835397 is a reply to message #1835394] Wed, 02 December 2020 12:46 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Sorry, I was looking at this to answer it and then got side-tracked. That was the first idea that came to me, given I've used this to create binary files, e.g., *.png, in the past. A little less ugly would be to use ${0x0D} to represent the \r character as a variable; 0x00-0x1F are all predefined.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: ResourceCreationTask and line delimiter CRLF [message #1835400 is a reply to message #1835397] Wed, 02 December 2020 12:53 Go to previous messageGo to next message
Frank Becker is currently offline Frank BeckerFriend
Messages: 89
Registered: July 2009
Member
Ed Merks wrote on Wed, 02 December 2020 13:46
Sorry, I was looking at this to answer it and then got side-tracked. That was the first idea that came to me, given I've used this to create binary files, e.g., *.png, in the past. A little less ugly would be to use ${0x0D} to represent the \r character as a variable; 0x00-0x1F are all predefined.


Thank you, I will try your way also and look what I then prefer.

Frank
Re: ResourceCreationTask and line delimiter CRLF [message #1835431 is a reply to message #1835400] Thu, 03 December 2020 08:59 Go to previous messageGo to next message
Frank Becker is currently offline Frank BeckerFriend
Messages: 89
Registered: July 2009
Member
Frank Becker wrote on Wed, 02 December 2020 13:53
Ed Merks wrote on Wed, 02 December 2020 13:46
Sorry, I was looking at this to answer it and then got side-tracked. That was the first idea that came to me, given I've used this to create binary files, e.g., *.png, in the past. A little less ugly would be to use ${0x0D} to represent the \r character as a variable; 0x00-0x1F are all predefined.


Thank you, I will try your way also and look what I then prefer.

Frank


Did not work for me. I get "0x0D (undeclared):" in the variables page.
Re: ResourceCreationTask and line delimiter CRLF [message #1835437 is a reply to message #1835431] Thu, 03 December 2020 12:32 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Sorry. :-(

It's these values:

https://git.eclipse.org/c/oomph/org.eclipse.oomph.git/tree/plugins/org.eclipse.oomph.setup/src/org/eclipse/oomph/setup/util/StringExpander.java#n27

So ${0x9} not ${0x09}.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: ResourceCreationTask and line delimiter CRLF [message #1835495 is a reply to message #1835437] Fri, 04 December 2020 17:56 Go to previous message
Frank Becker is currently offline Frank BeckerFriend
Messages: 89
Registered: July 2009
Member
Ed Merks wrote on Thu, 03 December 2020 13:32
Sorry. :-(

It's these values:

https://git.eclipse.org/c/oomph/org.eclipse.oomph.git/tree/plugins/org.eclipse.oomph.setup/src/org/eclipse/oomph/setup/util/StringExpander.java#n27


Thanks now it works and I use ${0xD} instead of base64 the whole content.
Previous Topic:Java heap space during installation
Next Topic:Form-based authentication with gitlab 13.6.1 not working because of missing closing tag for "me
Goto Forum:
  


Current Time: Tue Apr 16 03:29:37 GMT 2024

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

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

Back to the top