Re: Multiple files to task

2007-01-20 Thread Peter Kennard
OK - convoluted nastiness but it works to make a quoted space delimited list of file names. The two "commands" below are needed to translate all the '/' to ${file.separator} s in the original property which are coded with '/' separators. and expand it to the full path so it will compare charac

Re: Question about Classpath

2007-01-20 Thread Farid Izem
Hi julying, My jdbc driver is in lib directory there is no problem. My main problem is the simple build.xml script doesn't work at all To specify the classpath : main project with many futures

Using antcall but not re-running dependent targets

2007-01-20 Thread Cameron McCormack
Hi. I’ve got a build file that’s structured like this: If I run "ant one" I get: jet:/tmp $ ant one Buildfile: build.xml init: [echo] something something: one: init: [echo] something two-other: BUIL

Re: java errors when running build file

2007-01-20 Thread Dalibor Topic
Steve Loughran apache.org> writes: > > Mike.Horn wincanton.co.uk wrote: > > Hello > > > > HP-UX11i > > Java 1.3 > > ANT v.1.7.0 > > > > > > > $ ant -f Unix_Build.xml > > Buildfile: Unix_Build.xml > > [property] java.lang.reflect.InvocationTargetException: > > java.lang.IllegalArgume > > n

Re: Question about Classpath

2007-01-20 Thread Peter Reilly
The task does not automaticylly use any classpath reference defined in the build file, you need to tell it about the classpath using in this case the attribute classpathref Peter On 1/20/07, Farid Izem <[EMAIL PROTECTED]> wrote: Hi julying, My jdbc driver is in lib

Re: Using antcall but not re-running dependent targets

2007-01-20 Thread Jacob Kjome
You can do it via scripting. See this thread... http://marc.theaimsgroup.com/?t=10758568804&r=1&w=2 ...and specifically, this message... http://marc.theaimsgroup.com/?l=ant-user&m=107589782422983&w=2 I added my own twist on it and made dependency following configurable (follows dependenc

Re: Using antcall but not re-running dependent targets

2007-01-20 Thread Cameron McCormack
Jacob Kjome: > I added my own twist on it and made dependency > following configurable (follows dependencies by > default if not specified) along with optional > "if" and "unless" attributes. Actually, all the > attributes are optional, even "target". If > "target" is either not defined or d

Re: Using antcall but not re-running dependent targets

2007-01-20 Thread Ninju Bohra
Yes, The behavior you see is correct...there is an inherent limition of the task becuase it starts a new ANT "cycle" and knowlegde of previous run targets (like your "init" target) are not retained. You can try many different solutions: First solution: 1) Create a "property setting" targe

Re: Using antcall but not re-running dependent targets

2007-01-20 Thread Cameron McCormack
Hi Ninju. Ninju Bohra: > The behavior you see is correct...there is an inherent limition of the > task becuase it starts a new ANT "cycle" and knowlegde of > previous run targets (like your "init" target) are not retained. > > You can try many different solutions: > > First solution: > 1) Crea

Re: Using antcall but not re-running dependent targets

2007-01-20 Thread Jacob Kjome
At 09:49 PM 1/20/2007, you wrote: >Jacob Kjome: >> I added my own twist on it and made dependency >> following configurable (follows dependencies by >> default if not specified) along with optional >> "if" and "unless" attributes. Actually, all the >> attributes are optional, even "target". If >