Replace without a token

2003-02-07 Thread Martin Funk
Hello! Im looking for a "replacement" task that replaces a certain substring in a file with a given value, regardless of what is in the certain substring. example: private static final int level = 3; should be replaced by: private static final int level = 4; the information i could give a

RE: Help with Replace regexp with ant 1.5

2003-01-31 Thread Bin Chen
uch!! Bin -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 3:02 AM To: [EMAIL PROTECTED] Subject: Re: Help with Replace regexp with ant 1.5 Sorry for the late reply On Thu, 16 Jan 2003, Bin Chen <[EMAIL PROTECTED]> wrote: > > &

Re: Help with Replace regexp with ant 1.5

2003-01-31 Thread Stefan Bodewig
Sorry for the late reply On Thu, 16 Jan 2003, Bin Chen <[EMAIL PROTECTED]> wrote: > > > > > > Here is the output I expect to have > @rem My path > set MY_HOME=@ROOT\mybindir > > What I got with the about is > @rem My path > set MY_HOME=@ROOTmybindir What do you get if you simply use \

RE: Help with Replace regexp with ant 1.5

2003-01-16 Thread Bin Chen
, January 16, 2003 12:17 AM To: [EMAIL PROTECTED] Subject: Re: Help with Replace regexp with ant 1.5 On Wed, 15 Jan 2003, Bin Chen <[EMAIL PROTECTED]> wrote: > Running with -debug flag, ant did give the message of substituted > pattern "\" as expected, but the output still

Re: Help with Replace regexp with ant 1.5

2003-01-15 Thread Stefan Bodewig
On Wed, 15 Jan 2003, Bin Chen <[EMAIL PROTECTED]> wrote: > Running with -debug flag, ant did give the message of substituted > pattern "\" as expected, but the output still did have "\" shown. Is > this a bug? Could you give us the complete task you use, a sample of what you want to translate, w

RE: Help with Replace regexp with ant 1.5

2003-01-15 Thread Bin Chen
his a bug? Thanks again, Bin -Original Message- From: Stefan Bodewig [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 7:19 AM To: [EMAIL PROTECTED] Subject: Re: Help with Replace regexp with ant 1.5 On Tue, 14 Jan 2003, Bin Chen <[EMAIL PROTECTED]> wrote: > Here &quo

Re: Help with Replace regexp with ant 1.5

2003-01-15 Thread Stefan Bodewig
On Tue, 14 Jan 2003, Bin Chen <[EMAIL PROTECTED]> wrote: > Here "\n" is supposed to be a newline, use or better ${line.separator} instead. \n doesn't mean anything special to XML or the regexp engine. > when the substitution occured, all back slashes were taken out, doubling them should help

Help with Replace regexp with ant 1.5

2003-01-14 Thread Bin Chen
Hi, I am trying to use the replaceregexp task of ant 1.5 to match and replace certain patterns, here is the sample: Here "\n" is supposed to be a newline, and "\" in CMD_HOME is supposed to be a direcory However, when the substitution occured, a

How to use regexp replace task with ant 1.5

2003-01-14 Thread Bin Chen
Hi, I am trying to use the replaceregexp task of ant 1.5 to match and replace certain patterns, here is the sample: Here "\n" is supposed to be a newline, and "\" in CMD_HOME is supposed to be a direcory However, when the substitution occured, a

question on "replace"

2002-12-11 Thread Mylene Reiners
Hi, To replace all instances of e.g. adapter-instance in a directory I use: Now I have an XML file from where I want to get the values. something like: XML: bar Is this possible using Ant? TIA, Mylène -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands,

Re: how to do a case insensitive replace?

2002-07-24 Thread Diane Holt
See the task and its 'flags' attribute. Also, note that this task has additional library dependencies. Diane = ([EMAIL PROTECTED]) __ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com -- To unsubscribe, e-ma

how to do a case insensitive replace?

2002-07-24 Thread Chris Chang
Folks, Anyone know how to achieve the captioned? e.g. abc --> def Abc --> def ABc --> def ABC --> def ... --> def abC --> def Thanks in advance! Chris -- To unsubscribe, e-mail: For additi

Re: replace

2002-07-05 Thread Diane Holt
--- Geoff Meakin <[EMAIL PROTECTED]> wrote: > I'm trying to use the task, but its failing as > for each {filename} its replacing, its trying to create a > {filename}.temp file, which already exists for another > purpose within the application. Is there any way > to override this / get this wor

Re: replace

2002-07-05 Thread Stefan Bodewig
On Fri, 5 Jul 2002, Geoff Meakin <[EMAIL PROTECTED]> wrote: > Is there any way to override this / get this working? Only one way, upgrading to 1.5 - supposed to be fixed there. Stefan -- To unsubscribe, e-mail: For additional commands, e-mail:

replace

2002-07-05 Thread Geoff Meakin
Dear all, I'm trying to use the task, but its failing as for each {filename} its replacing, its trying to create a {filename}.temp file, which already exists for another purpose within the application. Is there any way to override this / get this working? Cheers -Geoff -- To unsubscribe, e

RE: Replace Task "propertyFile" syntax

2002-06-04 Thread Max Clark
Thanks Diane, I'll fool around with it and figure out how I want to run this. Max -Original Message- From: Diane Holt [mailto:[EMAIL PROTECTED]] Sent: Monday, June 03, 2002 5:18 PM To: Ant Users List Subject: RE: Replace Task "propertyFile" syntax --- Max Clark &l

RE: Replace Task "propertyFile" syntax

2002-06-03 Thread Diane Holt
--- Max Clark <[EMAIL PROTECTED]> wrote: > So are the files mutually exclusive? If you have a: foo=bar in your properties file, and a: foo=foobar in your 'replacefilterfile', then the word "foo" will be replaced with the word "foobar". For why, read on... > It seems that I could accomplish e

RE: Replace Task "propertyFile" syntax

2002-06-03 Thread Max Clark
3:11 PM To: Ant Users List Subject: Re: Replace Task "propertyFile" syntax --- Max Clark <[EMAIL PROTECTED]> wrote: > Could anyone forward me an example "replacefilterfile" and > "propertyFile" with the proper syntax for the files. $ cat replaceme.txt T

Re: Replace Task "propertyFile" syntax

2002-06-03 Thread Diane Holt
--- Max Clark <[EMAIL PROTECTED]> wrote: > Could anyone forward me an example "replacefilterfile" and > "propertyFile" with the proper syntax for the files. $ cat replaceme.txt This foo is totally baz. $ cat foo.properties foo=bar $ cat repl.properties baz=blat $ ant r ..

Replace Task "propertyFile" syntax

2002-06-03 Thread Max Clark
Hi, I am trying to configure a build file to replace tokens within subdirectories to manage software builds for different environments. I have the replace task working correctly if I specify all of the tokens and values in the build.xml file. I would like to use the "replacefilterfile

Re: Filter and replace ....

2002-05-29 Thread Srinivas_Pasuparthi
You can use the "replace" task. Ex: "Das, Kuntal" <[EMAIL PROTECTED]> 05/29/2002 04:43 PM Please respond to "Ant Users List" To: "'Ant Users List'" <[EMAIL PROTECTED]> cc: Subject:

RE: Filter and replace ....

2002-05-29 Thread Diane Holt
--- Chris Bailey <[EMAIL PROTECTED]> wrote: > Have you looked at the task? I believe you could set the > token to be "c:\weblogic", and replace it with "c:\bea". If you're running 1.5, you may want to look at the (optional) task, which, as the name implies

Resolved: Filter and replace ....

2002-05-29 Thread Das, Kuntal
- -Original Message- From: Chris Bailey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 3:29 PM To: Ant Users List Subject: RE: Filter and replace Have you looked at the task? I believe you could set the token to be "c:\weblogic", and replace it with "c:\bea". -

RE: Filter and replace ....

2002-05-29 Thread Chris Bailey
Have you looked at the task? I believe you could set the token to be "c:\weblogic", and replace it with "c:\bea". -Original Message- From: Das, Kuntal [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 2:44 PM To: 'Ant Users List' Subject: Filter a

Filter and replace ....

2002-05-29 Thread Das, Kuntal
Is there any way of replacing any character or word in a file using ant ? e.g. If I want to replace the path c:\weblogic with c:\bea in the weblogic.properties file or for that matter any file. I could use FilterSet, but then that will replace only macros. Any suggestions ? Thanks in advance

Re[6]: Bug in replace?

2002-05-28 Thread Eugene Voytitsky
Hello Stefan, >> But error message is slightly confusing: >> "Couldn't delete a.xxx" SB> I'm open for better suggestions. Consider messages displayed by and in the same situation: Scrap from my first letter: === * : Failed to copy #src_file_name# to #locked_destinatio

Re: Re[4]: Bug in replace?

2002-05-28 Thread Stefan Bodewig
On Tue, 28 May 2002, Eugene Voytitsky <[EMAIL PROTECTED]> wrote: > But error message is slightly confusing: > "Couldn't delete a.xxx" I'm open for better suggestions. Stefan -- To unsubscribe, e-mail: For additional commands, e-mail:

Re[4]: Bug in replace?

2002-05-28 Thread Eugene Voytitsky
Hello Stefan, Tuesday, May 28, 2002, 11:49:51 AM, you wrote: >> I found that bug still present in 1.5.beta1. SB> Eugene, could you please try with the latest build from SB> and verify that it SB> works now? Yes, it works properly -- build fails

Re: Re[2]: Bug in replace?

2002-05-28 Thread Stefan Bodewig
On Wed, 22 May 2002, Eugene Voytitsky <[EMAIL PROTECTED]> wrote: > I found that bug still present in 1.5.beta1. Eugene, could you please try with the latest build from and verify that it works now? Thanks Stefan -- To unsubscri

Re[2]: Bug in replace?

2002-05-22 Thread Eugene Voytitsky
:) message at second attempt: Replace: temporary file a.xxx.temp already exists 1.5.b1 doesn't show one because it generates random filenames. (But after big enough amount of attempts it may generate duplicate and this message will appear also :)) -- Best regards, Eugene Voytitsky

Re: Bug in replace?

2002-05-21 Thread Stefan Bodewig
On Tue, 21 May 2002, Eugene Voytitsky <[EMAIL PROTECTED]> wrote: > 0. OS=W2K, Ant=1.4.1 Supposed to be fixed in 1.5 - could you please verify it works as expected in 1.5beta? Thanks Stefan -- To unsubscribe, e-mail: For additional commands, e-mail:

Bug in replace?

2002-05-21 Thread Eugene Voytitsky
Hello All, Description: don't perform replacing in locked file a.xxx but create temporary file a.xxx.temp and do replacing in it. Details: 0. OS=W2K, Ant=1.4.1 1. I have file a.xxx. 2. I have some Ant target: 3. Target works fine. BUT! If I open file a.xxx (in read-only mode) in MS

RE: a replace doesn't handle

2002-05-14 Thread Diane Holt
--- Dominique Devienne <[EMAIL PROTECTED]> wrote: > Yes, it should in this particular case, but the ** can occur anywhere in > practice, not just at the end, which is why I was stuck. I don't see how > to do that generally without the ability to replace the end of line ($) &g

RE: a replace doesn't handle

2002-05-14 Thread Dominique Devienne
Yes, it should in this particular case, but the ** can occur anywhere in practice, not just at the end, which is why I was stuck. I don't see how to do that generally without the ability to replace the end of line ($) with (/*.class) that I assume would allow. --DD -Original Me

RE: a replace doesn't handle

2002-05-14 Thread Dominique Devienne
That it's in 1.5beta only maybe? I have to use 1.4.1 at this point. --DD -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 5:35 PM To: Ant Users List Subject: Re: a replace doesn't handle - Original Message - From: "Dom

Re: a replace doesn't handle

2002-05-13 Thread Diane Holt
--- Dominique Devienne <[EMAIL PROTECTED]> wrote: > I'm stuck trying to convert a file containing class names 'ANT > pseudo-regex' of the form: > > com.acme.pkg1.** > com.acme.package*.** > com.acme.x??.** > > to the equivalent 'ANT file patternset' suitable as an includesfile: > > com/acme/pkg

Re: a replace doesn't handle

2002-05-13 Thread Erik Hatcher
- Original Message - From: "Dominique Devienne" <[EMAIL PROTECTED]> > I'm stuck trying to convert a file containing class names 'ANT pseudo-regex' > of the form: > > com.acme.pkg1.** > com.acme.package*.** > com.acme.x??.** > > to the equivalent 'ANT file patternset' suitable as an includ

a replace doesn't handle

2002-05-13 Thread Dominique Devienne
Title: a replace doesn't handle I'm stuck trying to convert a file containing class names 'ANT pseudo-regex' of the form: com.acme.pkg1.** com.acme.package*.** com.acme.x??.** to the equivalent 'ANT file patternset' suitable as an includesfile: com/acme/pkg

Re: Open file and regex replace

2002-04-22 Thread Diane Holt
--- [EMAIL PROTECTED] wrote: > On 04/22/2002 03:14:27 PM, "comp boy" wrote: > > there a way in ant to open up this constants file search for a key > > word ie (public static final boolean IS_APPLET=true;) and then change > > true to false and vise versa. > > I just went through doing something li

Re: Open file and regex replace

2002-04-22 Thread kenyee
On 04/22/2002 03:14:27 PM, "comp boy" wrote: > there a way in ant to open up this constants file search for a key > word ie (public static final boolean IS_APPLET=true;) and then change > true to false and vise versa. I just went through doing something like this recently. What I had ant do was

Open file and regex replace

2002-04-22 Thread comp boy
I have a file that holds constants for different versions of my app. Is there a way in ant to open up this constants file search for a key word ie (public static final boolean IS_APPLET=true;) and then change true to false and vise versa. TIA Jason -- To unsubscribe, e-mail:

Re: replace set of strings in files

2002-04-12 Thread Stefan Bodewig
On Fri, 12 Apr 2002, Kailash Subramanian <[EMAIL PROTECTED]> wrote: > The problem is the files are not under one directory. They are under > the subdirectories also. I guess, I should 've explained it in more > detail. Something like the following, > > dir=".

Re: replace set of strings in files

2002-04-12 Thread Kailash . Subramanian
The problem is the files are not under one directory. They are under the subdirectories also. I guess, I should 've explained it in more detail. Something like the following, dir="./replace, ./replace/testreplace" includes="xx.sh,yy.sh" Thx Kailash Fro

Re: replace set of strings in files

2002-04-11 Thread Stefan Bodewig
ude and exclude patterns to get exactly the list of files you want. Use includesfile. For the replacement tokens, Ant 1.5 will have a way to automatically turn all properties of a property file into replace tokens, sou you'd have to write them once into a properties file. Stefan -- To unsubscrib

replace set of strings in files

2002-04-11 Thread Kailash . Subramanian
All, I 've a set of files and set of strings. The strings are variables and they change always. I want to replace the set of strings in a set of files. I am using the replace task. Is there any way I can specify the list of files (like comma seperated) ? I can't use the patterns o

Re: How can I have Ant replace unset properties as just empty string

2002-03-30 Thread Erik Hatcher
- Original Message - From: "Drew Davidson" <[EMAIL PROTECTED]> > I think that Alt 1 is the way to go for now because Alt 2 is just not that clear, given the amount of code required to > acheive the goal. I agree! :) Besides, Alternative 2 relies on some wacky features of Ant in regards

Re: How can I have Ant replace unset properties as just empty string

2002-03-30 Thread Drew Davidson
Erik Hatcher wrote: > Split each app servers properties into a separate properties file - > resin.properties, tomcat.properties. Resin example: > > appserver.root=-${resin.version} > appserver.webapps=${appserver.root}/webapps > > Then - > > > > Alternative 2: > > Take advantage of the 'id' attr

Re: How can I have Ant replace unset properties as just empty string

2002-03-29 Thread Jim White
At 03:23 PM 3/29/2002 -0700, Drew Davidson wrote: >Do you think it would be a Good Thing to allow recursively defined >variables ala >make? > >I'd like to be able to do the following: >... Couple ways to do that. One is to use (which is not much different than adding the task D

Re: How can I have Ant replace unset properties as just empty string

2002-03-29 Thread Erik Hatcher
- Original Message - From: "Drew Davidson" <[EMAIL PROTECTED]> > Do you think it would be a Good Thing to allow recursively defined variables ala > make? I don't know, actually. Seems powerful. I can't think of any drawbacks to allowing such things. Will Ant2 handle this? I don't kno

Re: How can I have Ant replace unset properties as just empty string

2002-03-29 Thread Diane Holt
--- Drew Davidson <[EMAIL PROTECTED]> wrote: > I want to specify a single value [...] that can then have other > properties construct property names and evaluate them [...] Hence > recusively defined variables. The ant-contrib task is what you're looking for. Source is available from Sourceforge

Re: How can I have Ant replace unset properties as just empty string

2002-03-29 Thread Drew Davidson
Erik Hatcher wrote: > - Original Message - > From: "Diane Holt" <[EMAIL PROTECTED]> > > > foo could be set to "", so echoing ${foo} is the only way to truly show > > it's not set at all. > > Well, since Diane likes to make sure we're all 100% accurate, I'll just > provide a silly case tha

Re: How can I have Ant replace unset properties as just empty string

2002-03-29 Thread Conor MacNeill
max wrote: > All this discussion regarding unset properties make me wonder if it is > possible to > make ant report usage of unset properties ? (it would be a nice feature to > have since we know have to "discover" weird named directories or argument > lists before realising we forgot to set some

Re: How can I have Ant replace unset properties as just empty string

2002-03-29 Thread max
:) Just a request/suggestion :) /Max - Original Message - From: "Diane Holt" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Friday, March 29, 2002 2:49 AM Subject: Re: How can I have Ant replace unset properties as just empty string

Re: How can I have Ant replace unset properties as just empty string

2002-03-28 Thread Diane Holt
--- Erik Hatcher <[EMAIL PROTECTED]> wrote: > --- "Diane Holt" <[EMAIL PROTECTED]> wrote: > > foo could be set to "", so echoing ${foo} is the only way to truly > > show it's not set at all. > > Well, since Diane likes to make sure we're all 100% accurate, I'll just > provide a silly case that br

Re: How can I have Ant replace unset properties as just empty string

2002-03-28 Thread Erik Hatcher
- Original Message - From: "Diane Holt" <[EMAIL PROTECTED]> > foo could be set to "", so echoing ${foo} is the only way to truly show > it's not set at all. Well, since Diane likes to make sure we're all 100% accurate, I'll just provide a silly case that breaks this statement:

Re: How can I have Ant replace unset properties as just empty string

2002-03-28 Thread Diane Holt
--- Drew Davidson <[EMAIL PROTECTED]> wrote: > What I'm wondering is why it echos ${foo} when foo is undefined as in > > foo = ${foo} > > Which, if foo is undefined echos > > foo = ${foo} > > I don't see what problem this solves as opposed to the output > > foo = foo could be set to "", so e

Re: How can I have Ant replace unset properties as just empty string

2002-03-28 Thread Drew Davidson
Steve Loughran wrote: > ...let you know that things are undefined (for information; if you want to > break the build on an undefined property do something like > > no tomcat This is not really the issue. This is checking to see if a property is defined. What I'm wondering is why it echos ${foo

Re: How can I have Ant replace unset properties as just empty string

2002-03-28 Thread Steve Loughran
- Original Message - From: "John Lindwall" <[EMAIL PROTECTED]> To: "'Ant Users List'" <[EMAIL PROTECTED]> Sent: Thursday, March 28, 2002 4:24 PM Subject: RE: How can I have Ant replace unset properties as just empty string > What is the val

RE: How can I have Ant replace unset properties as just empty string

2002-03-28 Thread John Lindwall
What is the value of echoing uninitialized properties? What is the intent of this "pattern"? (Not trying to be difficult: honestly curious as a relative newcomer to ant). John > > But using undefined properties in echo is a common build > pattern, which > would break if we turned it off

Re: How can I have Ant replace unset properties as just empty string

2002-03-28 Thread Steve Loughran
- Original Message - From: "Drew Davidson" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Thursday, March 28, 2002 2:25 PM Subject: Re: How can I have Ant replace unset properties as just empty string > Diane Holt wrote: > >

RE: How can I have Ant replace unset properties as just empty string

2002-03-28 Thread Matt Small
One good reason for this behavior is that you typically know right away if you accidently forgot to set a property. -Original Message- From: Drew Davidson [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 2:25 PM To: Ant Users List Subject: Re: How can I have Ant replace unset

Re: How can I have Ant replace unset properties as just empty string

2002-03-28 Thread Drew Davidson
Diane Holt wrote: > Use Ant's property immutability to set any property that's not already set > to some other value. IOW, set the property to whatever default value you > want, and if it hasn't been set by some other means by the time it hits > your default-setting tag, it'll get your default v

Re: How can I have Ant replace unset properties as just empty string

2002-03-28 Thread Diane Holt
--- Matt Small <[EMAIL PROTECTED]> wrote: > Is there any special syntax for having ant replace an empty string when > a property referred in a build file has not been set? Currently if you > put ${prop} into a build file (in a target param suppose) and it has not > been set

How can I have Ant replace unset properties as just empty string

2002-03-28 Thread Matt Small
Is there any special syntax for having ant replace an empty string when a property referred in a build file has not been set? Currently if you put ${prop} into a build file (in a target param suppose) and it has not been set it actually passes '${prop}' as the attribute value. I need

Re: regexp replace task?

2002-03-19 Thread Diane Holt
--- David Waite <[EMAIL PROTECTED]> wrote: > I'm looking for a way to replace sections of files (e.g. before > compiling them, or when copying them into a distribution) - is there a > pre-existing task to do this? I saw a RegReplace in the list archives, > but it appears to

Re: regexp replace task?

2002-03-19 Thread Thomas Paul
--- David Waite <[EMAIL PROTECTED]> wrote: > If not, could anyone please provide me some good ant > tasks to look at to get an idea of how to build one > myself? Writing an Ant task is very simple (nice design, folks). I wrote an article for JavaRanch.com explaining how to use Ant and the last pa

regexp replace task?

2002-03-19 Thread David Waite
I'm looking for a way to replace sections of files (e.g. before compiling them, or when copying them into a distribution) - is there a pre-existing task to do this? I saw a RegReplace in the list archives, but it appears to be on a free site that has since taken the page offline. I

Re: use to replace token with file contents

2002-02-27 Thread Steve Loughran
- Original Message - From: "Diane Holt" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Wednesday, February 27, 2002 14:02 Subject: Re: use to replace token with file contents > There's the new task, which loads a property w

Re: use to replace token with file contents

2002-02-27 Thread Diane Holt
--- "Hunter, Bryan" <[EMAIL PROTECTED]> wrote: > I need to replace a token in a text file with the contents of another > text file. > > Is there an Ant provided task for this ( doesn't allow this) > or does anyone know of an add-on task that could accomplish

use to replace token with file contents

2002-02-27 Thread Hunter, Bryan
I need to replace a token in a text file with the contents of another text file. Is there an Ant provided task for this ( doesn't allow this) or does anyone know of an add-on task that could accomplish this? I'm trying not to have to write a custom task myself if I can reuse what so

RE: How can I copy and replace in a file multiple times based on valu es in a loaded props file.

2002-02-14 Thread Diane Holt
--- Matt Small <[EMAIL PROTECTED]> wrote: > Thanks for the response Diane. I really want to keep the databases > indeterminate since I will be doing this for lots of different apps, so > it looks like I am going to go with a custom task. Or you might want to consider picking up the available tas

RE: How can I copy and replace in a file multiple times based on valu es in a loaded props file.

2002-02-14 Thread Matt Small
: Thursday, February 14, 2002 3:32 PM To: Ant Users List Subject: Re: How can I copy and replace in a file multiple times based on valu es in a loaded props file. --- Matt Small <[EMAIL PROTECTED]> wrote: > Does anybody have any suggestions on what I can do here. I think I can > do this with th

Re: How can I copy and replace in a file multiple times based on valu es in a loaded props file.

2002-02-14 Thread Diane Holt
--- Matt Small <[EMAIL PROTECTED]> wrote: > Does anybody have any suggestions on what I can do here. I think I can > do this with the script tag but I'd like to stay away from that. > Could I do this with a custom task maybe? You can do just about anything with a custom task :) But if you'd rath

How can I copy and replace in a file multiple times based on values in a loaded props file.

2002-02-14 Thread Matt Small
Does anybody have any suggestions on what I can do here. I think I can do this with the script tag but I'd like to stay away from that. Could I do this with a custom task maybe? What I want to do is have ant generically read a dbNames property, and for each name in that load a set of configurati

Re: Replace task

2001-12-18 Thread Diane Holt
--- Cyriaque Dupoirieux <[EMAIL PROTECTED]> wrote: > I need to delete all lines that start with the following comment : > # written : Date of the day > > How can I use the replace task (or another) to make this ? I assume "Date of the day" isn't a

Replace task

2001-12-16 Thread Cyriaque Dupoirieux
Hello, I need to delete all lines that start with the following comment : # written : Date of the day How can I use the replace task (or another) to make this ? Thank you, Regards, Cyriaque D. -- Cyriaque Dupoirieux <mailto:[EMAIL PROTECTED]> PCO Technologies Burolin

Replace task

2001-12-14 Thread Cyriaque Dupoirieux
Hello, I need to delete all lines that start with the following comment : # written : Date of the day How can I use the replace task (or another) to make this ? Thank you, Regards, Cyriaque D. -- Cyriaque Dupoirieux <mailto:[EMAIL PROTECTED]> PCO Technologies Burolines -

Re: Replace a file in a jar

2001-10-19 Thread Jan Sorensen
> > I have been trying to use the jar task to replace a file in a > > jar, but with > > not success. It seems that if the jar file exists the jar > > task don't do anything. > > > > My solution so far is to unjar and then jar again with the > > ne

RE: Replace a file in a jar

2001-10-19 Thread Jon Skeet
> I have been trying to use the jar task to replace a file in a > jar, but with > not success. It seems that if the jar file exists the jar > task don't do anything. > > My solution so far is to unjar and then jar again with the > new file. Is there a better

Re: Replace a file in a jar

2001-10-19 Thread Stefan Bodewig
On Thu, 18 Oct 2001, Jan Sorensen <[EMAIL PROTECTED]> wrote: > I have been trying to use the jar task to replace a file in a jar, > but with not success. It seems that if the jar file exists the jar > task don't do anything. I the jar file newer than the file you want to

Replace a file in a jar

2001-10-19 Thread Jan Sorensen
I have been trying to use the jar task to replace a file in a jar, but with not success. It seems that if the jar file exists the jar task don't do anything. My solution so far is to unjar and then jar again with the new file. Is there a better solution? -- Jan Sorensen

RE: Regular Expression for Enhanced Replace Task

2001-09-10 Thread Herry Koh
ssage- > > From: Herry [mailto:[EMAIL PROTECTED]] > > Sent: Sunday, September 09, 2001 7:11 PM > > To: [EMAIL PROTECTED] > > Subject: Regular Expression for Enhanced Replace Task > > > > > > Hi all, > > I have been working on a little personal projec

RE: Regular Expression for Enhanced Replace Task

2001-09-10 Thread Marc van Grootel (Mendez Nederland)
mber 09, 2001 7:11 PM > To: [EMAIL PROTECTED] > Subject: Regular Expression for Enhanced Replace Task > > > Hi all, > I have been working on a little personal project to > enhance the current 'replace' task with regular > expression, please find below the URL links to my

Regular Expression for Enhanced Replace Task

2001-09-09 Thread Herry
Hi all, I have been working on a little personal project to enhance the current 'replace' task with regular expression, please find below the URL links to my source and binary files ( apologies about the cheesy website as tbis is my hobby, therefore, I am using a non-commercial i.e. fr

RE: Copy and Replace

2001-09-07 Thread Diane Holt
--- Christian Cryder <[EMAIL PROTECTED]> wrote: > What I'm wondering is this: what if I have a different copy which needs > to use different filters? Is there any way to set up the filters, > perform the copy, and then remove the filters as soon as I'm done? Don't think you can ever get rid of a

RE: Copy and Replace

2001-09-07 Thread Christian Cryder
; -Original Message- > From: Erik Hatcher [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 07, 2001 2:04 PM > To: [EMAIL PROTECTED] > Subject: Re: Copy and Replace > > > You can do a copy/replace in one step without affecting the original file > like this: > >

Re: Copy and Replace

2001-09-07 Thread Erik Hatcher
: Friday, September 07, 2001 12:55 PM Subject: Re: Copy and Replace > is used to change a file in-place; use + with > filtering="on" to modify a file during a copy. > > Diane > > --- Christian Cryder <[EMAIL PROTECTED]> wrote: > > I need to copy files into

Re: Copy and Replace

2001-09-07 Thread Erik Hatcher
You can do a copy/replace in one step without affecting the original file like this: Use the task to set up the replacement strings and tokenize your source file with the appropriate format (see the and documentation for more details). - Original Message - From: "Chri

Re: Copy and Replace

2001-09-07 Thread Diane Holt
is used to change a file in-place; use + with filtering="on" to modify a file during a copy. Diane --- Christian Cryder <[EMAIL PROTECTED]> wrote: > I need to copy files into a new directory, and I'd like to perform a > replace > on various string values the

Copy and Replace

2001-09-07 Thread Christian Cryder
I need to copy files into a new directory, and I'd like to perform a replace on various string values they might contain in the process. Since the Replace task is a fileset, I'm pretty sure I can pass that as an argument to the copy task. However, will the copy occur without actuall

RE: summary attribute w. replace task not working?

2001-09-04 Thread Aronszajn, Mark
Thanks, Diane! -Original Message- From: Diane Holt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 04, 2001 11:17 AM To: [EMAIL PROTECTED] Subject: Re: summary attribute w. replace task not working? You need release 1.4 (see rev 1.15 of Replace.java in CVS). Diane --- "Aron

Re: summary attribute w. replace task not working?

2001-09-04 Thread Diane Holt
You need release 1.4 (see rev 1.15 of Replace.java in CVS). Diane --- "Aronszajn, Mark" <[EMAIL PROTECTED]> wrote: > I want to get a summary of modifications made with a replace task and > the > user manual > says there's a summary attribute for the replace ta

summary attribute w. replace task not working?

2001-09-04 Thread Aronszajn, Mark
I want to get a summary of modifications made with a replace task and the user manual says there's a summary attribute for the replace task that does just this, but I use it in my replace task: and I get a complaint from ant saying: Buil

Re: wild cards in replace task

2001-09-01 Thread Erik Hatcher
g the file in-place as well. Erik - Original Message - From: "Anthony Rodriguez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 30, 2001 9:09 PM Subject: wild cards in replace task > This question was replied to with a question from anoth

wild cards in replace task

2001-08-30 Thread Anthony Rodriguez
This question was replied to with a question from another topic. So I'm sending it again: Is it possible to use wildcards in the token attribute of the replace task? Say I have a file called text.txt that looks like this: text.txt: line1="blah blah blah"; line2="somethin

wild cards in replace task

2001-08-30 Thread Anthony Rodriguez
Does anyone know if you can use wildcards in the token attribute of the replace task? Say I have a file called text.txt that looks like this: text.txt: line1="blah blah blah"; line2="something else"; Now I want to use a replace task in my build.xml that looks like:

Re: string + replace

2001-08-22 Thread Mourad Meddahi
Thanks you , you are great Hello from Paris to you, everybody

Re: string + replace

2001-08-22 Thread Matthew Inger
Mourad Meddahi wrote: >Hi > >i have a file abc.txt with the string one inside and i want to replace >it...so i use > > token="one" >value="attribut="http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd"/>" />

Re: string + replace

2001-08-22 Thread Matthew Inger
Mourad Meddahi wrote: >Hi > >i have a file abc.txt with the string one inside and i want to replace >it...so i use > > token="one" >value="attribut="http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd"/>" />

RE: string + replace

2001-08-22 Thread Jon Skeet
> i have a file abc.txt with the string one inside and i want to replace > it...so i use > > token="one" > value=" attribut="http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd"/>" /> > > butit doesn

  1   2   >