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

AW: Replacing value in an XML file using replaceregexp

2019-10-19 Thread jhm
.@ant.apache.org > Betreff: Replacing value in an XML file using replaceregexp > > I want to replace three values from files(12467abc,12467def,12467xyz). > > IF( TEXT( $User.ABC_USR_Brand__c )="Maruti", > "/servlet/servlet.FileDownload?file=12467abc", >

Replacing value in an XML file using replaceregexp

2019-10-16 Thread Om Omkar
I want to replace three values from files(12467abc,12467def,12467xyz). IF( TEXT( $User.ABC_USR_Brand__c )="Maruti", "/servlet/servlet.FileDownload?file=12467abc", IF ( TEXT($User.ABC_USR_Brand__c )="Maruti Suzuki", "/servlet/servlet.FileDownload?file=12467def", "/servlet/servlet.FileDownload?fil

[replaceregexp] - Couldn't rename temporary file inside RAD tool

2014-09-03 Thread Erez Inchy
Hi, We are having exactly same issue in ANT. Any idea how to resolve it? Thanks, Erez Inchy. Build Developer. Casino & Games Builds | 888 Holdings | Herzliya Pituach, Israel. P: +972-73288-8620 | m: +972-58-4321355 [Description: Description: Description: 888] This email message and its attac

Having trouble using replaceregexp with DIR locations as string to replace

2011-10-25 Thread himanshu
correct value should be as below *set TEST_DIR=C:\home\dir2* .. i am using this command in my ant build file.. " " .. ..PLZ help -- View this message in context: http://ant.1045680.n5.nabble.com/Having-trouble-using-replaceregexp-with-DIR-locations-as-string-to-replace-tp4935484p49

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
.org/ant/ant-1.6.1/docs/en/manual/OptionalTasks/replaceregexp.html ( http://tinyurl.com/replaceregexp ) " byline Process the file(s) one line at a time, executing the replacement on one line at a time (true/false). This is useful if you want to only replace the first

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

RE: Replaceregexp in ANT

2009-04-16 Thread Martin Gainty
Does Ant replaceregexp support Perl, regular or extended regular expressions? Vielen Danke, Martin __ Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene

Re: replaceregexp and html tags in replace attribute

2009-01-09 Thread jbmdharris
Please my original post. As usual, when you finally give up and make a post, you find the problem. In my case, the problem was I had an HTML escaping task that was called from the parent task of the one I was working in. The HTML escaping task was called AFTER I ran the replaceregexp that put

replaceregexp and html tags in replace attribute

2009-01-09 Thread jbmdharris
What is the proper way to format the replace attribute of a replaceregexp task so that HTML < and > characters appear in the output? My problem is, no matter how I write the attribute, my less than and greater than characters are being written out as escaped entities in the outpu

Re: replaceregexp

2008-12-04 Thread Garrett Smith
On Tue, Dec 2, 2008 at 9:04 PM, Stefan Bodewig <[EMAIL PROTECTED]> wrote: > On 2008-12-02, Garrett Smith <[EMAIL PROTECTED]> wrote: >> Why does replaceregexp designed to not take a FileList? > > It is the other way around. replaceregexp like most any task in Ant >

Re: replaceregexp

2008-12-02 Thread Stefan Bodewig
On 2008-12-02, Garrett Smith <[EMAIL PROTECTED]> wrote: > I want to use task replaceregexp to strip whitespace from selected jsp's. > The problem is that I want a FileList but replaceregexp only takes a FileSet. > Why does replaceregexp designed to not take a FileList?

replaceregexp

2008-12-02 Thread Garrett Smith
I want to use task replaceregexp to strip whitespace from selected jsp's. The problem is that I want a FileList but replaceregexp only takes a FileSet. Why does replaceregexp designed to not take a FileList? Is there another element that does? Ga

Re: ANT replaceregexp problem

2008-11-17 Thread Jerry Chimey
<[EMAIL PROTECTED]> To: Ant Users List Sent: Monday, November 17, 2008 4:02:08 AM Subject: Re: ANT replaceregexp problem Your XML file specifies the char encoding being used (UTF-8), but I'm guessing that the replaceregexp task won't understand this, since it's not XML-aware

Re: ANT replaceregexp problem

2008-11-17 Thread Brian Agnew
Your XML file specifies the char encoding being used (UTF-8), but I'm guessing that the replaceregexp task won't understand this, since it's not XML-aware. So your replacement string may be getting written out using another encoding - most likely your default environment encodin

ANT replaceregexp problem

2008-11-16 Thread Jerry Chimey
Hi, I am seeing a weird problem of using replaceregexp in ANT. Basically, for the non-English characters, they are updated even though they are not matched by the regular expression. The following is my original input: - -- file

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 ex

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

Using replaceregexp with a positive lookbehind regular expression

2008-05-01 Thread Anthony Bargnesi
Hello, Here is the replaceregexp call: As you can see I wrote the regular expression: * (?<=\#\[SYD\-DATASOURCE\]\s)disabled\s=\sfalse* To match text like the following: *.. (line break) #[SYD-DATASOURCE] disabled = false .. .. * When testing this regular expression out

Re: replaceregexp Question

2008-02-19 Thread Olivier Gies
In that case, I think it's just a matter of RegExp format: byline="true" /> (untested) If it is for more complex matches, I don't think was designed for it. I think that 1 call per expression to replace is the intent. Olivier Original Message Sub

Re: replaceregexp Question

2008-02-19 Thread Z W
Olivier, Dave I meant to ask if it's possible with a single that I could modify different and multiple matches of different words. Or do I have to do multiple , twice in this case below ? Say in a file, there are two keywords I like to modify. sun to sunfix and moon to moonfix. Thanks

Re: replaceregexp Question

2008-02-19 Thread Olivier Gies
han start or end of string. s : Singleline. Treat the string as a single line of input, using "." to match any character, including a newline, which normally, it would not match. Olivier Original Message ---- Subject: replaceregexp Question From: Z W <[EMAIL PROTECT

Re: replaceregexp Question

2008-02-19 Thread David Weintraub
ote: > Hi > > My understanding is that 1 replacement is possible with replaceregexp. > Eg. below > > > match="fix" > > replace="sunfix" > > byline="true"/> > > Question: > > Can allow multiple matches and replacements in

replaceregexp Question

2008-02-19 Thread Z W
Hi My understanding is that 1 replacement is possible with replaceregexp. Eg. below Question: Can allow multiple matches and replacements in a single , instead of one match at a time ? thanks

Re: replaceregexp issues...

2008-02-15 Thread Gilbert Rebhan
> Ok i have this: > > and i keep getting this error when i run my ant task > near index 2 > \0 the match attribute should contain your regular expressions (where btw in java '\' has to be masked with a leading '\' so it should be '\\') not a group, a '\' followed by a digit means a specific gro

Re: replaceregexp issues...

2008-02-15 Thread jonese
Got it needed to use Unicode Equivilent \p{IsCntrl} FYI for those who need it: http://perldoc.perl.org/perlre.html jonese On Feb 15, 2008 3:01 PM, jonese <[EMAIL PROTECTED]> wrote: > Ok i have this: > > > > and i keep getting this error when i run my ant task > > BUILD FAILED > C:\working

replaceregexp issues...

2008-02-15 Thread jonese
Ok i have this: and i keep getting this error when i run my ant task BUILD FAILED C:\working\isirv\build.xml:151: java.util.regex.PatternSyntaxException: Illegal octal escape sequence near index 2 \0 ^ The error is pointing to whatever occurs AFTER the \0 i've tried [\0] \0 \0{1,} (\0){1,}

Re: Am i doing this right RE: ReplaceRegExp

2008-02-12 Thread jonese
) AND > parent_object_id = OBJECT_ID(N'[100].[formEnvironment]')) > > > > > jonese wrote: > > I used Regex Coach to debug the expression and it shows it working. > > > > HOWEVER when run my target using -debug i get the following > > > > sql-gen-schema-f

Re: Am i doing this right RE: ReplaceRegExp

2008-02-12 Thread Scot P. Floess
ints WHERE object_id = OBJECT_ID(N'[100].[DF_formEnvironment_adminonly]') AND parent_object_id = OBJECT_ID(N'[100].[formEnvironment]')) jonese wrote: I used Regex Coach to debug the expression and it shows it working. HOWEVER when run my target using -debug i get the follow

Re: Am i doing this right RE: ReplaceRegExp

2008-02-12 Thread jonese
I used Regex Coach to debug the expression and it shows it working. HOWEVER when run my target using -debug i get the following sql-gen-schema-file: [replaceregexp] Replacing pattern '\[[a-zA-Z0-1]{1,}\]' with '[healthinteractionsbs]' in 'C:\working\healthintera

Re: Am i doing this right RE: ReplaceRegExp

2008-02-12 Thread Scot P. Floess
Are you sure the reg ex is working? If not, nothing will be changed in the file... Can you send the sql file or some snippet of it? jonese wrote: I have a simple build file and i'm trying to change some text in a .SQL file. in my build file i have the following target I know the regex i

Am i doing this right RE: ReplaceRegExp

2008-02-12 Thread jonese
I have a simple build file and i'm trying to change some text in a .SQL file. in my build file i have the following target I know the regex is good but every time i run it nothing happens to my .SQL file. am i missing something? Running ant 1.7.x on Windows XP Pro eric

AW: Documentation problem for replaceregexp

2007-12-11 Thread Jan.Materne
Thanks for the hint. The right part is I changed that on SVN-HEAD. Jan > -Ursprüngliche Nachricht- > Von: Ognjen Blagojevic [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 11. Dezember 2007 16:00 > An: Ant Users List > Betreff: Documentation problem for replacerege

Documentation problem for replaceregexp

2007-12-11 Thread Ognjen Blagojevic
Hi all, There is a documentation error in ant manual for ant task replaceregexp. In example: includes should be an attribute, something like this, I think: Or maybe nasted tag, something like this But the example anyway, wrong. Can someone change this

[replaceregexp] - Couldn't rename temporary file inside RAD tool

2007-07-30 Thread Walter . Heestermans
Hi, I have some ANT scripts using the 'replaceregexp' task and these need to run inside the Rational Application Developer v6 development tool. Regurarly I have the following exception. BUILD FAILED: C:\TMMEDevelopment\WHE4841\J2EEConfig\whe4841\J2EE0116\src\S01\A2P\A2P_Gui\devB

Re: canned fileset with replaceregexp

2007-06-04 Thread Frank Harnack
Hi Mark, has the (maybe undocumented) id/refid concept. Regards Frank Quoting Mark Modrall <[EMAIL PROTECTED]>: Hi... I was looking to can the fileset definitions for a , but when I looked more closely, it seems like 1) can have a nested 2) Unlike nant, doesn't have the

RE: canned fileset with replaceregexp

2007-06-04 Thread Mark Modrall
>Um... You didn't explain what you're trying to do. Are you attempting to build a PATH based upon a regular expression? > can take patternsets in the form of a refid. I'm trying to create a shared list of files to be operated on by multiple tasks. I.e. one task will apply to a set of files to

Re: canned fileset with replaceregexp

2007-06-04 Thread David Weintraub
Um... You didn't explain what you're trying to do. Are you attempting to build a PATH based upon a regular expression? can take patternsets in the form of a refid. On 6/4/07, Mark Modrall <[EMAIL PROTECTED]> wrote: Hi... I was looking to can the fileset definitions for a , but w

canned fileset with replaceregexp

2007-06-04 Thread Mark Modrall
Hi... I was looking to can the fileset definitions for a , but when I looked more closely, it seems like 1) can have a nested 2) Unlike nant, doesn't have the id/refid concept (at least according to the docs) 3) does support id/refid and can have nested s but doesn't seem to

RE: replace and replaceregexp - Multi line tokens or substitution expressions ?

2007-03-27 Thread Rebhan, Gilbert
le and outfile, your html file gets modified inplace then. you need = bsf.jar (Bean Scripting Framwork) http://jakarta.apache.org/bsf/ jruby.jar http://jruby.codehaus.org/ Regards, Gilbert -Original Message----- From: David Jacobsen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 27, 2007 11:05

Re: replace and replaceregexp - Multi line tokens or substitution expressions ?

2007-03-27 Thread Martin Gainty
Tuesday, March 27, 2007 5:05 PM Subject: replace and replaceregexp - Multi line tokens or substitution expressions ? > > Hi, > > Iâ?Tm a techwriting who has been using ANT for Search/Replaces operations > across loads of HTML files using replace and replaceregexp. > > Doe

replace and replaceregexp - Multi line tokens or substitution expressions ?

2007-03-27 Thread David Jacobsen
Hi, I’m a techwriting who has been using ANT for Search/Replaces operations across loads of HTML files using replace and replaceregexp. Does anyone know if there is way for a token to include multiple lines? I want to strip four lines from HTML files. Delete me. I’m on Windows. C

How to prevent processing of with the whitespace compression task using ReplaceRegExp

2007-02-16 Thread Rashmi Rubdi
which is supposed to display it's content exactly as they appear but, after whitespace compression everything appears on just one line - this is not a problem, except that everything inside the tag also falls on one line. Is there a way to tell the ReplaceRegExp task to not process any

RE: ReplaceRegExp installation / invocation help

2006-11-07 Thread Beims Bob-RWBC70
Peter; Thanks for the hints. I changed the pattern in my Ant build file to: In my log file, I now get this result: [replaceregexp] Replacing pattern '()' with '' in 'D:\ditaot_out\xhtml\blocks\RS08ADC8\Backu

RE: ReplaceRegExp installation / invocation help

2006-11-07 Thread Beims Bob-RWBC70
I've done a bit more sleuthing, and perhaps I spoke too soon regarding my installation. I was naively expecting *some* logfile output from ReplaceRegExp even if it didn't find any pattern matches, but I was wrong... I invoked the ant build with the -debug option and see the following

Re: ReplaceRegExp installation / invocation help

2006-11-07 Thread Peter Reilly
dn't help me find what I'm looking for ... > > I'm trying to use the ReplaceRegExp ant task in a build file with the > DITA Open Toolkit (http://dita-ot.sourceforge.net/). That should tell > you that I'm *not* a Java developer; I know just enough about Ant to be >

Re: ReplaceRegExp installation / invocation help

2006-11-07 Thread Peter Reilly
On 11/7/06, Beims Bob-RWBC70 <[EMAIL PROTECTED]> wrote: Sorry for the newbie question ... I didn't find a search option @ http://mail-archives.apache.org/mod_mbox/ant-user/ and 30+ minutes with Google couldn't help me find what I'm looking for ... I'm trying to use the

ReplaceRegExp installation / invocation help

2006-11-07 Thread Beims Bob-RWBC70
Sorry for the newbie question ... I didn't find a search option @ http://mail-archives.apache.org/mod_mbox/ant-user/ and 30+ minutes with Google couldn't help me find what I'm looking for ... I'm trying to use the ReplaceRegExp ant task in a build file with the DITA Open

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
fano 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 breaks. >> >> Right

Re: ReplaceRegExp Task and line breaks

2006-07-17 Thread Scot P. Floess
no 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 breaks. Right now I'm doing this: match="(?<=<\/method>)\s*(

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 wha

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?

Fwd: Re: AW: How to use replaceregexp in multi-line context?

2006-05-19 Thread David
t;[EMAIL PROTECTED]> wrote: Hello David! Sorry, my explanation was a little bit short, I guess. ;) I wondered --- as you --- that the replaceregexp works fine in (1) one-line-mode but not in (2) multi-line mode. So, let's see what is the difference of the in

Re: AW: How to use replaceregexp in multi-line context?

2006-05-18 Thread Brian Agnew
If you're trying to replace stuff in XML but only for particular nodes (e.g. in the below you're scoping on an attribute value) then I'd suggest: http://www.oopsconsultancy.com/software/xmltask/ and doing: withText="true"/> Brian Oliver Ashoff wrote: Hello David! Example: Consider the f

AW: How to use replaceregexp in multi-line context?

2006-05-18 Thread Oliver Ashoff
Hello David! Sorry, my explanation was a little bit short, I guess. ;) I wondered --- as you --- that the replaceregexp works fine in (1) one-line-mode but not in (2) multi-line mode. So, let's see what is the difference of the inputs! Outline: (1)

Re:How to use replaceregexp in multi-line context?

2006-05-18 Thread David
Dear Oliver, Thanks for your interest on my problem. Concerning to your comment, I don't understand wery will, please could you be a little bit more explicit. As far as I understand, I think you mean to include the new line character on the match expression. I was tested this too, wi

AW: How to use replaceregexp in multi-line context?

2006-05-17 Thread Oliver Ashoff
. :) Regards, Oliver > -Ursprüngliche Nachricht- > Von: David [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 17. Mai 2006 11:59 > An: Ant Apache User Group > Betreff: How to use replaceregexp in multi-line context? > > Dear members, > > I wou

How to use replaceregexp in multi-line context?

2006-05-17 Thread David
Dear members, I would like to use the ant task replaceregexp in order to replace tablespace information on my sql scripts, my input file is some think like this: CREATE INDEX IX_2_lra_country ON @[EMAIL PROTECTED] (be_code) PCTFREE10 INITRANS 2 MAXTRANS 255 TABLESPACE

Minor replaceregexp question

2006-02-11 Thread Rhino
I'm using replaceregexp in Ant 1.6.5 to transform one string to another. It's working perfectly but I'm having trouble making it do one small thing. I'm trying to put a tab at the beginning of the replacement string but nothing I do seems to get interpreted as a tab in t

Re: Issue using ReplaceRegExp

2005-11-08 Thread Andrew Goktepe
n my log.txt file altough now I am not getting > any error message and ant console output is showing me > > try-rep: > [replaceregexp] Replacing pattern '/\[java\] parts created:' with 'Size=' > in 'D:\pvcsAnt\log.txt' by line. > > I am totally c

RE: Issue using ReplaceRegExp

2005-11-08 Thread pritesh.saharey
I tried using the pattern something like this; But I am seeing no changes in my log.txt file altough now I am not getting any error message and ant console output is showing me try-rep: [replaceregexp] Replacing pattern '/\

AW: Issue using ReplaceRegExp

2005-10-21 Thread Jan.Materne
>"[java] parts created:" >with "Size" >than How can I go ahead, should /\[java\] parts created:/Size/ >One more thing there is "ant-apache-regexp.jar" file in ant's >lib directory. Means, that JAR needs an other file - the regexp-implementation. >Just wanted to know that I need to upgr

RE: Issue using ReplaceRegExp

2005-10-21 Thread pritesh.saharey
d to upgrade my jdk1.3 to jdk1.4 or this will work? Thanks, Pritesh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005 6:58 PM To: user@ant.apache.org Subject: AW: Issue using ReplaceRegExp Regexp could something around /.*parts creat

AW: Issue using ReplaceRegExp

2005-10-21 Thread Jan.Materne
ual. Jan >-Ursprüngliche Nachricht- >Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 21. Oktober 2005 15:09 >An: user@ant.apache.org >Betreff: Issue using ReplaceRegExp > > >Hi All, > I am trying to use ReplaceRegExp but f

Issue using ReplaceRegExp

2005-10-21 Thread pritesh.saharey
Hi All, I am trying to use ReplaceRegExp but finding it difficult to cope with it. There is a log.txt file generated from my build.xml using record task which looks like this; log.txt --- [java] Done! [java

Re: replaceregexp problem

2005-10-18 Thread Gilbert Rebhan
Hi, Jeffrey E Care wrote: > Play around with the @flags & @byline; I think those will be able to solve > your problem. > yup = did it. Thanks !! bye4now, Gilbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: replaceregexp problem

2005-10-18 Thread Jeffrey E Care
Play around with the @flags & @byline; I think those will be able to solve your problem. -- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) Gilbert Rebhan <[EMAIL PROTECTED]> wrote on 10/18/2005 01:41:02 PM: > Hi, > > i want to

replaceregexp problem

2005-10-18 Thread Gilbert Rebhan
Hi, i want to change one line in a txtfile. 1. if txtfile is like = foo=bar bla=bla works as it should, gives me = foo=bar bla=bla:123456 2. but if txtfile is like = foo=bar bla=bla foobar=foobar means the line to be altered is not the last line my snippet above gives me = fo

Re: ReplaceRegExp with windows filenames

2005-08-27 Thread Neil Benn
rom: Neil Benn [mailto:[EMAIL PROTECTED] > > Sent: Thursday, August 25, 2005 9:55 PM > > To: Ant Users List > > Subject: Re: ReplaceRegExp with windows filenames > > > > /* > > [...] > > > > So, it seems if I use ReplaceRegEx on the

Re: ReplaceRegExp with windows filenames

2005-08-27 Thread Neil Benn
enn [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 25, 2005 9:55 PM > To: Ant Users List > Subject: Re: ReplaceRegExp with windows filenames > > /* > [...] > > So, it seems if I use ReplaceRegEx on the file or load the file > into a property and if I use one or two back

RE: ReplaceRegExp with windows filenames

2005-08-26 Thread Rebhan, Gilbert
Hi, -Original Message- From: Neil Benn [mailto:[EMAIL PROTECTED] Sent: Thursday, August 25, 2005 9:55 PM To: Ant Users List Subject: Re: ReplaceRegExp with windows filenames /* [...] So, it seems if I use ReplaceRegEx on the file or load the file into a property and if I use one

Re: ReplaceRegExp with windows filenames

2005-08-25 Thread Neil Benn
next to me!!) - will post to anywhere in the world ;-). Cheers, Neil On 8/25/05, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: > > Hi, > > > -Original Message- > From: Neil Benn [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 24, 2005 11:19 PM > To: Ant Users List

RE: ReplaceRegExp with windows filenames

2005-08-24 Thread Rebhan, Gilbert
Hi, -Original Message- From: Neil Benn [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 24, 2005 11:19 PM To: Ant Users List Subject: Re: ReplaceRegExp with windows filenames /* Thanks for the tip - however it still does the same thing - it seems like the backslashes are

Re: ReplaceRegExp with windows filenames

2005-08-24 Thread Neil Benn
Documents\\svnfiles\\trunk \\DropPaq [replaceregexp] Replacing pattern 'C\:\\.*\\DropPaq' with 'C:\\Documents and Set tings\\Neil Benn\\My Documents\\svnfiles\\trunk\\DropPaq' in 'C:\Documents and S ettings\Neil Benn\My Documents\svnfiles\trunk\DropPaq\installer\CE\DropPaq.inf

Re: ReplaceRegExp with windows filenames

2005-08-22 Thread Andrew Goktepe
Assuming that having double backslashes in the basedir would solve your problem, you could use the propertyregex task from ant-contrib to use a second property with that substitution: ... Yes, there are 8 backslashes in the 'replace' attribute value. That is how many I needed to end up with

ReplaceRegExp with windows filenames

2005-08-22 Thread Neil Benn
Hello, I need to make an ant task which will go into a file, look for a pattern and replace it with the contents of the ${basedir} variable. I have the following xml to do this: The target text is : 1 = ,"DropPaqEtc",,"C:\Documents and Settings\Neil Benn\My Docu

Re: replaceregexp problem

2005-07-22 Thread Frank W. Zammetti
Thanks Chad, that did the trick perfectly! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Fri, July 22, 2005 2:43 pm, Chad Armstrong said: > Hi Frank, > The * looks a little weird below in the "match" string, * means 0 or > more of the

Re: replaceregexp problem

2005-07-22 Thread Juergen Hermann
On Fri, 22 Jul 2005 14:36:22 -0400 (EDT), Frank W. Zammetti wrote: regex != glob ==> s/*/.*/ >Hi all... having some trouble getting a regex replace to work... I have a >JSP which contains the following line: >Version 3.0Build >306301/01/2005 >I have a task in my build script like so: >match="<

Re: replaceregexp problem

2005-07-22 Thread Chad Armstrong
Hi Frank, The * looks a little weird below in the "match" string, * means 0 or more of the preceding character, which I don't think is what you want. Try it with .* instead and see if that helps. Chad On 7/22/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Hi all... having some trouble getti

replaceregexp problem

2005-07-22 Thread Frank W. Zammetti
Hi all... having some trouble getting a regex replace to work... I have a JSP which contains the following line: Version 3.0Build 306301/01/2005 I have a task in my build script like so: But, nothing is getting replaced. The file exists and is found, and all the properties are properly define

Re: replaceregexp issue: replace forward slash with backward slash

2005-07-16 Thread Gilbert Rebhan
Hi, had a similar problem, i've parsed a file with regular expressions successfully, but the changing of '\' with '/' via regular expressions didn't work. so i used after my regexp part = ... ... and it worked. HTH Regards, Gilbert Neeraj Kumar wrote: > input: c:/foo/bar > > desired

RE: replaceregexp issue: replace forward slash with backward slas h

2005-07-16 Thread Shatzer, Larry
Why not use ? http://ant.apache.org/manual/CoreTasks/pathconvert.html -- Larry -Original Message- From: Neeraj Kumar [mailto:[EMAIL PROTECTED] Sent: Saturday, July 16, 2005 5:57 AM To: Ant Users List Subject: replaceregexp issue: replace forward slash with backward slash input: c:/foo

replaceregexp issue: replace forward slash with backward slash

2005-07-16 Thread Neeraj Kumar
input: c:/foo/bar desired output: c:\foo\bar code: I'm getting an error. How do I achieve the desired output? Thanks. - Neeraj - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Error in replaceregexp example

2005-06-24 Thread Michael Giroux
On 6/23/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > - > + > I'm pretty sure that the patch needs to be " + should be + - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

AW: Error in replaceregexp example

2005-06-23 Thread Jan.Materne
>An: user@ant.apache.org >Betreff: Error in replaceregexp example > > > > > >The help doc for replaceregexp shows and example of a fileset. > The nested element is incorrect. This should >be element. I'm thinking the >author was intending th

Error in ReplaceRegExp doc

2005-06-23 Thread Michael Giroux
The help doc for replaceregexp shows and example of a fileset. The nested element is incorrect. This should be element. I'm thinking the author was intending the includes attribute of the task itself perhaps. Michael G

Error in replaceregexp example

2005-06-23 Thread Michael . Giroux
The help doc for replaceregexp shows and example of a fileset. The nested element is incorrect. This should be element. I'm thinking the author was intending the includes attribute of the task itself perhaps. Michael G

Re: replaceregexp on multiple lines

2005-03-28 Thread Nicolas Vervelle
H, David -Original Message- From: Nicolas Vervelle [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 23:36 To: user@ant.apache.org Subject: replaceregexp on multiple lines Hi, I have a file containing several times something like (xx is different) : ... For some of them (depending o

RE: replaceregexp on multiple lines

2005-03-27 Thread David Resnick
s a greedy quantifier. Try '*?' (reluctant quantifier). HTH, David -Original Message- From: Nicolas Vervelle [mailto:[EMAIL PROTECTED] Sent: Thursday, March 24, 2005 23:36 To: user@ant.apache.org Subject: replaceregexp on multiple lines Hi, I have a file containing several times s

replaceregexp on multiple lines

2005-03-24 Thread Nicolas Vervelle
Hi, I have a file containing several times something like (xx is different) : ... For some of them (depending on "xx"), I want to keep only the ...<.a> part. For the others, I wan to completely remove them. I tried this : but the problem if pattern is first matched with the text between

Re: Using ReplaceRegExp

2004-12-22 Thread Peter Reilly
Antoine Levy-Lambert wrote: What I wonder is whether you can even define a custom filter reader on the fly in a build file using JavaScript (not sure, might be possible only for tasks ???). One can apply an in-line filter reader by using a scriptfilter. http://ant.apache.org/manual/CoreTypes/filt

Re: Using ReplaceRegExp

2004-12-21 Thread Antoine Levy-Lambert
for tasks ???). Cheers, Antoine Matt Harp wrote: I'm using ReplaceRegExp to do some file mods and it's just too cool, except I can't figure out to have it re-evaluate a line in a file after it's already been evaluated. For example... I have a line in my file like this.

Using ReplaceRegExp

2004-12-21 Thread Matt Harp
I'm using ReplaceRegExp to do some file mods and it's just too cool, except I can't figure out to have it re-evaluate a line in a file after it's already been evaluated. For example... I have a line in my file like this. symbol Fred%20Barney%20Wilma%20; So, I wan

  1   2   >