Re: replaceregexp task overrides the file permissions

2020-08-09 Thread Stefan Bodewig
> After replacement, replaceregexp task overrode the permissions. It does, as do or or any other task where Ant creates a file by itself. Historically this all stems from Java not providing access to permissions of files or directories at all. Neither reading permissions nor writing t

replaceregexp task overrides the file permissions

2020-08-05 Thread forumUsr forumUsr
replacement, replaceregexp task overrode the permissions. I found below article that mentions this behavior as well: https://hmemcpy.com/2014/06/when-good-permissions-gone-bada-case-of-a-failed-build/ Is there an ANT task that I can use that will replace and retain the permissions of the file ? I

replaceregexp task

2011-05-01 Thread harleydude
message in context: http://ant.1045680.n5.nabble.com/replaceregexp-task-tp4363867p4363867.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional

Re: replaceregexp task

2010-06-30 Thread Mark Salter
On 30/06/2010 08:25, shindito wrote: > I've set flags to g=global, but still not working. I've tryed all flags... > It only replaces the first regexp on the line. Please try changing byline="true" to byline=false (or just let it default)? From:- http://www.jajakarta.org/ant/ant-1.6.1/docs/en/man

replaceregexp task

2010-06-30 Thread shindito
set flags to g=global, but still not working. I've tryed all flags... It only replaces the first regexp on the line. Thanks for your help. -- View this message in context: http://old.nabble.com/replaceregexp-task-tp29031606p29031606.html Sent from the Ant - Users mailing list a

AW: Typo in Manual example for replaceregexp task

2008-09-17 Thread Jan.Materne
example for replaceregexp task Hello friends, I'm not sure if this has been mentioned but there is a slight typo in one of the examples of the replaceregexp optional task. Or at least I could not get the example to work in ant 1.7.0 Specifically the includes element in the fileset see

Typo in Manual example for replaceregexp task

2008-09-17 Thread Alec Fernandez
Hello friends, I'm not sure if this has been mentioned but there is a slight typo in one of the examples of the replaceregexp optional task. Or at least I could not get the example to work in ant 1.7.0 Specifically the includes element in the fileset seems to cause problems in this example:

missing blacslash when I use ReplaceRegExp task

2008-06-25 Thread yong.xu
Hi all I have a problem when I use ReplaceRegExp task,the program as below: the test.properties content is as below: multiverse.location=d:\\multiverse the InstallService.bat content is as below

Re: ReplaceRegExp Task and line breaks

2006-07-18 Thread Alex Egg
Yeah, that works: I just used the lf ascii code and that works: On 7/18/06, Aaron Davies <[EMAIL PROTECTED]> wrote: Oops, that should of course be &lf;. On 7/18/06, Aaron Davies <[EMAIL PROTECTED]> wrote: > How about using entities? Are or or &#lf; defined in th

Re: ReplaceRegExp Task and line breaks

2006-07-18 Thread Aaron Davies
Oops, that should of course be &lf;. On 7/18/06, Aaron Davies <[EMAIL PROTECTED]> wrote: How about using entities? Are or or &#lf; defined in the XML dialect we're using? On 7/18/06, Stefano Marsili <[EMAIL PROTECTED]> wrote: > I strongly doubt it's the easiest way to achieve what > you wan

Re: ReplaceRegExp Task and line breaks

2006-07-18 Thread Aaron Davies
How about using entities? Are or or &#lf; defined in the XML dialect we're using? On 7/18/06, Stefano Marsili <[EMAIL PROTECTED]> wrote: I strongly doubt it's the easiest way to achieve what you want, but you could write a script or define a scriptdef that writes the \n (0x0A) to a property

Re: ReplaceRegExp Task and line breaks

2006-07-18 Thread Stefano Marsili
I strongly doubt it's the easiest way to achieve what you want, but you could write a script or define a scriptdef that writes the \n (0x0A) to a property and use it. Anyway, if you want your build to be platform indipendent, I think ${line.separator} is still the best choice. Stefano Marsili PFun

Re: ReplaceRegExp Task and line breaks

2006-07-18 Thread Alex Egg
Hi, I think some of your message got cut off... Is there any way you can think of to specify the line break literally in the xml attribute? (Using the line.separator property works by the way!) Thanks, Alex On 7/17/06, Scot P. Floess <[EMAIL PROTECTED]> wrote: I think that should work. Basi

Re: ReplaceRegExp Task and line breaks

2006-07-17 Thread Scot P. Floess
I think that should work. Basically, I think the problem is that the XML attribute is being taken literally so \n is literally a backslash and n Stefano Marsili wrote: Hi Alex, I didn't test it, but you could try replace="${line.separator}${line.separator}" Stefano Marsili http://www.efan

Re: ReplaceRegExp Task and line breaks

2006-07-17 Thread Stefano Marsili
Hi Alex, I didn't test it, but you could try replace="${line.separator}${line.separator}" Stefano Marsili http://www.efanomars.net/pf --- Alex Egg <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using the replaceRegexp ant task and I want to > replace whatever matches > my pattern with 2 line brea

ReplaceRegExp Task and line breaks

2006-07-17 Thread Alex Egg
Hi, I'm using the replaceRegexp ant task and I want to replace whatever matches my pattern with 2 line breaks. Right now I'm doing this: however, it replace the file with the \n\n as literal text. How can I replace these w/ 2 line breaks?

Re: A new twist on "Problem with the replaceregexp task!!!"

2003-12-11 Thread Manuel Mall
day, December 12, 2003 12:55 AM Subject: RE: A new twist on "Problem with the replaceregexp task!!!" I'm attempting to reverse this process and replace a character with a new line. Does not give me the desired result. Instead, I get the literal characters, "r" a