Re: Programmatically create a fileset and reference

2008-05-01 Thread Scot P. Floess
Have you considered using a macrodef and elements? Maybe something like: Then you can supply whatever you want in as long as it adheres to allowances Jeremy Weber wrote: Hi All, I have created dozen of custom tasks before, but find myself

Programmatically create a fileset and reference

2008-05-01 Thread Jeremy Weber
Hi All, I have created dozen of custom tasks before, but find myself struggling with this one. I wish to create a task that does the following: 1. Accepts a file attribute to represent the absolute path of a file contains comma separated absolute paths. a. this file name will be read in,

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 in a

Re: writing to XML

2008-05-01 Thread Brian Agnew
I don't want to sound like a broken record (!) but at the risk of sounding like one, this is precisely what XMLTask will do (including inserting XML with non-root nodes into existing documents, appending XML elements and fragments incrementally etc.). Anyway - that's my lot for the moment :-) Bri

Repeated setting of sysproperties in junit

2008-05-01 Thread Jim Jay
Hi, I'm fairly new to Ant and would appreciate some advice: I have targets in a number of build files that all set the same group of system properties for different junit tests. The values set will always be the same as the system properties are set from ant properties loaded from a properties fi

Re: writing to XML

2008-05-01 Thread Gilbert Rebhan
James Fuller schrieb: On Thu, May 1, 2008 at 4:01 PM, Guy Catz <[EMAIL PROTECTED]> wrote: Thanks guys, that's very helpful. But, once I've used echoxml to write into a file, can I use it again to add more values, in append mode? the above would not be valid xml with something li

Re: writing to XML

2008-05-01 Thread Dominique Devienne
On Thu, May 1, 2008 at 9:15 AM, James Fuller <[EMAIL PROTECTED]> wrote: > On Thu, May 1, 2008 at 4:01 PM, Guy Catz <[EMAIL PROTECTED]> wrote: > > Thanks guys, that's very helpful. > > > > But, once I've used echoxml to write into a file, can I use it again to > > add more values, in append mo

Re: writing to XML

2008-05-01 Thread James Fuller
On Thu, May 1, 2008 at 4:01 PM, Guy Catz <[EMAIL PROTECTED]> wrote: > Thanks guys, that's very helpful. > > But, once I've used echoxml to write into a file, can I use it again to > add more values, in append mode? yes but an xml file with no root parent is invalid xml ;) e.g. if u just append

RE: writing to XML

2008-05-01 Thread Guy Catz
Thanks guys, that's very helpful. But, once I've used echoxml to write into a file, can I use it again to add more values, in append mode? I need to add values to my XML file in different tasks, not in one place. Please advice, Thank you very much, Guy. -Original Message- From:

Re: writing to XML

2008-05-01 Thread Gilbert Rebhan
Guy Catz wrote: Hi. What I actually need, is to write data into a XML file, so I will be able to render this XML to a HTML as a report. The XML structure is something I know. ant > 1.7.0 = your xml goes here ant < 1.7.0 = maybe you need to use = or if you want to write to an

Re: writing to XML

2008-05-01 Thread Steve Loughran
Guy Catz wrote: Hi. What I actually need, is to write data into a XML file, so I will be able to render this XML to a HTML as a report. The XML structure is something I know. Thanks. There is an task that takes well formed XML and echoes it. foo One thing you have