set a property in a .properties file

2006-12-19 Thread jm
hi, I have been looking for a way to set a property in a .properties file via ant. Could not find any easy way...somebody knows a way to do it or a external task or something? I know about the stuff, but I am trying to change the property without knowing the value it had before, that is, I cann

Re: set a property in a .properties file

2006-12-19 Thread Antoine Levy-Lambert
Hi, there are a lots of ways to write to a property file in ant. Look at the following : somekey=somevalue there is also the propertyfile task which can do some limited arithmetics on properties (in the Optional Tasks section of the manual). there might also be the option of using the t

RE: set a property in a .properties file

2006-12-19 Thread Rebhan, Gilbert
Hi, if you want to reset / overwrite an existing property the easiest way is via script task and language of your choice (ruby,javascript,groovy ...) , f.e. =

RE: set a property in a .properties file

2006-12-19 Thread Rebhan, Gilbert
Hi, forgot the replacement in my last mail = given propertyfile test.props : foo=bar

RE: set a property in a .properties file

2006-12-19 Thread Rebhan, Gilbert
Oops, should have been = test.props afterwards : foo=nobar Regards, Gilbert -Original Message- From: jm [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 19, 2006 11:45 AM To: Ant Users List Subject: set a property in a .properties file hi, I have been looking for a way to set

Re: set a property in a .properties file

2006-12-19 Thread jm
Antoine, echoing would add a second line with the property no?, and I want the exisiting line to be modified...propertyFile would do, I had missed that one, it's a pity comments are lost though... Gilbert , yes I think that would work, but I have never used any of these scripting languages. does

Ant-sql task in rel 1.7.0

2006-12-19 Thread Caleandro
Hi all, Please, I need help about ant task. A script like this: Select * from SCHEMA1.Table01; runs correctly (as is) in ant 1.6.5 but in 1.7.0 it seem to hang-up and loop indefinitely till I type a break key on keyboard. Oracle(9i) server console does not signal any

Re: set a property in a .properties file

2006-12-19 Thread Peter Reilly
On 12/19/06, jm <[EMAIL PROTECTED]> wrote: Antoine, echoing would add a second line with the property no?, and I want the exisiting line to be modified...propertyFile would do, I had missed that one, it's a pity comments are lost though... Gilbert , yes I think that would work, but I have never

RE: Replace Question

2006-12-19 Thread Master, Tariq \(Abbeywood\)
One thing to be aware of is the encoding type of a file. Replace will only perform a replace on one encoding. A default is used if not specified. I had an issue where developers were using different text editors to edit text files and my replace didn't work initially. -Original Messag

Re: Ant-sql task in rel 1.7.0

2006-12-19 Thread Peter Reilly
Are you using ant 1.7.0RC1 ? If so, try using ant -noproxy Peter On 12/19/06, Caleandro <[EMAIL PROTECTED]> wrote: Hi all, Please, I need help about ant task. A script like this: Select * from SCHEMA1.Table01; runs correctly (as is) in ant 1.6.5 but in 1.7.0 it s

xmlvalidate: check for well-formedness *only*

2006-12-19 Thread paul . arzul
hi all, nicola mentioned about 3 years ago the same problem: any progress or workaround on that (for ant stable 1.6.5)? i'm backing up source and doing sanity checking to make sure the files aren't fubar, so i

Re: set a property in a .properties file

2006-12-19 Thread jm
Peter, thanks for pointing that out, I'll check that if it works that would be perfect. The 'maybe its easy' comment was moslty thinking aloud without any prior knowledge obviously... On 12/19/06, Peter Reilly <[EMAIL PROTECTED]> wrote: On 12/19/06, jm <[EMAIL PROTECTED]> wrote: > Antoine, > ec

Re: xmlvalidate: check for well-formedness *only*

2006-12-19 Thread paul . arzul
Quoting [EMAIL PROTECTED]: > any progress or workaround on that (for ant stable 1.6.5)? i've got this working, but at a snail's pace... not surprising since the following is rather io intensive (as well as unidiomatic): you'll notice 2 optional

Ant Property Task - Environment Variables

2006-12-19 Thread Adeel Omer
Hi, The Property task documentation (Ant 1.6.5) states that fetching environment variables using the and subsequently accessing environment variables using xyz.Env_Var is supported on "select" operating systems. Can anyone direct me to a listing of these "select" operating systems? Thanks a lo

slow?

2006-12-19 Thread Matt Benson
Has anyone ever noticed Ant running junit tests exceedingly slowly, perhaps only in the case of testsuites or nested testsuites? I am looking at a testsuite that has about 600 child tests, which all run in < 2 seconds in Eclipse's JUnit runner, but take 15-20 minutes in Ant. :| -Matt __

Re: slow?

2006-12-19 Thread Kevin Cline
I have noticed the same thing. Which version of Junit are you using? On 12/19/06, Matt Benson <[EMAIL PROTECTED]> wrote: Has anyone ever noticed Ant running junit tests exceedingly slowly, perhaps only in the case of testsuites or nested testsuites? I am looking at a testsuite that has about

Re: slow?

2006-12-19 Thread Matt Benson
3.8.2. I might try it with 3.8.1 tomorrow just for kicks... ;) Thanks, Matt --- Kevin Cline <[EMAIL PROTECTED]> wrote: > I have noticed the same thing. Which version of > Junit are you using? > > On 12/19/06, Matt Benson <[EMAIL PROTECTED]> > wrote: > > > > Has anyone ever noticed Ant runnin

Re: set a property in a .properties file

2006-12-19 Thread Ninju Bohra
You may want to look at the FilterChains and FilterReaders elements to 'select' which lines of the original properties file to copy and then merely append the new line. Maybe use the element to 'select' all the lines EXCEPT the one(s) you want to change and copy the 'selected' lines to a temp

[ANN] Ant 1.7.0 Released

2006-12-19 Thread Antoine Levy-Lambert
Hi, We have the pleasure to announce the release of Apache Ant 1.7.0. Ant 1.7 introduces a resource framework. Some of the core ant tasks such as are now able to process not only file system resources but also zip entries, tar entries, paths, ... Resource collections group resources, and

Re: please update the next release of Ant 1.7 to Xerces 2.9.0

2006-12-19 Thread Jacob Kjome
Since this missed the 1.7.0 release, here's a friendly reminder to put it on the agenda for the 1.7.1 release. I'm a little curious why this didn't make it? It fixed a lot of bugs and finally included a proper official release of xml-commons-external (xml-apis-1.3.04.jar) and included much