Re: filelist/fileset with multiple directory

2007-01-24 Thread Stefan Bodewig
On Thu, 25 Jan 2007, Mikael Sitruk <[EMAIL PROTECTED]> wrote: > 1. From my understanding the selector are part of a fileset, Not necessarily, in my answer I used it inside a resource collection (and I used a Resourceselector, not a FileSelector). Stefan

Re: intra-element attribute property resolution issue

2007-01-24 Thread Jacob Kjome
At 04:54 AM 1/24/2007, you wrote: >Jacob Kjome wrote: >> >> I see your point. Even if the functionality was something you would >> support, I'm not sure there's anyone willing to put in the time to >> figure it out. But you never know. Like I said before, it could be an >> option. So, if someo

RE: filelist/fileset with multiple directory

2007-01-24 Thread Mikael Sitruk
Thanks for your answers. Regarding the javaresource I mentioned, I was referring to this: http://ant.apache.org/manual/CoreTypes/resources.html#javaresource If I'm changing the classpath to a path (e.g. a list of directory) and adding support for patternset instead of a single file, this is th

Re: filelist/fileset with multiple directory

2007-01-24 Thread Dominique Devienne
1. From my understanding the selector are part of a fileset, but in a fileset the dir attribute is mandatory and point only to one directory. So is really a selector the appropriate choice? Right. But you can always use a common parent dir, and later use filename mappers. This does assume that

RE: filelist/fileset with multiple directory

2007-01-24 Thread Mikael Sitruk
Regarding the selector suggestion, I have some additional question 1. From my understanding the selector are part of a fileset, but in a fileset the dir attribute is mandatory and point only to one directory. So is really a selector the appropriate choice? 2. From the code the selector create a l

Re: Parallel task...

2007-01-24 Thread Andrew Close
Dominique, thanks for the reply. i'll heed your advice and stay away from parallel for now. it just looked like a nice way to process some of the 'optional' tasks we have. :) i'll take a look at your other suggestions. thanks again andy On 1/24/07, Dominique Devienne <[EMAIL PROTECTED]> wrote

RE: Trying to convert a path reference to use as a fileset for packaging jars in an ear

2007-01-24 Thread Eric Wood
Thanks, I'll go the ant-contrib route first. Eric -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 24, 2007 3:53 PM To: Ant Users List Subject: Re: Trying to convert a path reference to use as a fileset for packaging jars in an ear I think Ant-1.

Re: Trying to convert a path reference to use as a fileset for packaging jars in an ear

2007-01-24 Thread Jacob Kjome
I think Ant-1.7 supports copying paths. Otherwise, you can use Ant-Contrib's Jake Quoting Eric Wood <[EMAIL PROTECTED]>: > Folks: > > I use > > ... > > which is composed of various filelists and filesets referencing jars > used to build my application. I use this refid (projectSpecificLibs)

Re: filelist/fileset with multiple directory

2007-01-24 Thread Dominique Devienne
Oops, depends on this base class ;-) import java.io.File; import java.util.StringTokenizer; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.types.Parameter; import org.apache.tools.ant.types.selectors.FileSelector; import org.apache.tools.ant.types.selectors.BaseExtend

Re: filelist/fileset with multiple directory

2007-01-24 Thread Dominique Devienne
On 1/24/07, Matt Benson <[EMAIL PROTECTED]> wrote: If we can think of an elegant way to design this, this question comes up enough that it might be useful to include such a selector in Ant core. This is not exactly the same selector, but close enough that the code should be trivial to adapt to

Re: filelist/fileset with multiple directory

2007-01-24 Thread Matt Benson
If we can think of an elegant way to design this, this question comes up enough that it might be useful to include such a selector in Ant core. $0.02, Matt --- Stefan Bodewig <[EMAIL PROTECTED]> wrote: > On Wed, 24 Jan 2007, Mikael Sitruk > <[EMAIL PROTECTED]> wrote: > > > I would like to know

Re: Parallel task...

2007-01-24 Thread Dominique Devienne
i'm looking at the use of the parallel task to run some optional jobs during my build. this looks like it would be perfect for doing things like javadoc, junit, jprobe, etc. however, i would like to be able to switch my optional tasks so that they are only run if a flag was set. currently i have

Re: filelist/fileset with multiple directory

2007-01-24 Thread Stefan Bodewig
On Wed, 24 Jan 2007, Mikael Sitruk <[EMAIL PROTECTED]> wrote: > I would like to know if it is possible to define a fileset/filelist > that will return the first occurrence of the patterned file from a > list of directories, like the java class loading and path. > > For example suppose we have 3 di

Parallel task...

2007-01-24 Thread Andrew Close
hi all, i'm looking at the use of the parallel task to run some optional jobs during my build. this looks like it would be perfect for doing things like javadoc, junit, jprobe, etc. however, i would like to be able to switch my optional tasks so that they are only run if a flag was set. currentl

filelist/fileset with multiple directory

2007-01-24 Thread Mikael Sitruk
Hi I would like to know if it is possible to define a fileset/filelist that will return the first occurrence of the patterned file from a list of directories, like the java class loading and path. For example suppose we have 3 directories: Dir1: a.txt, b.java Dir2: a.txt,c:jar Dir3: b.ja

Re: Passing data between 2 created tasks

2007-01-24 Thread Xavier Hanin
On 1/24/07, Farhdine Boutzakhti <[EMAIL PROTECTED]> wrote: Ok, thank you. I will test Project.setReference. As Jan indicate, it's addReference and not setReference, but you got the idea :-) Xavier -Original Message- From: Xavier Hanin [mailto:[EMAIL PROTECTED] Sent: Wednesday, Janu

RE: Passing data between 2 created tasks

2007-01-24 Thread Farhdine Boutzakhti
Yeah it works. Thank you very much :) Farhdine. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 24, 2007 4:55 PM To: user@ant.apache.org Subject: AW: Passing data between 2 created tasks Store your Stack as reference on the project TaskA {

RE: Passing data between 2 created tasks

2007-01-24 Thread Farhdine Boutzakhti
Ok, thank you. I will test Project.setReference. -Original Message- From: Xavier Hanin [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 24, 2007 4:54 PM To: Ant Users List Subject: Re: Passing data between 2 created tasks I use Project.setReference for this purpose and it works pretty

Re: Passing data between 2 created tasks

2007-01-24 Thread Xavier Hanin
On 1/24/07, Farhdine Boutzakhti <[EMAIL PROTECTED]> wrote: Hi list, I am creating 2 different tasks with ANT: A - One extracting some data in a stack from a cache, B - One inserting these data in a database. I want to know if there is a way to pass an object (i.e. a stack) from A to B?

AW: Passing data between 2 created tasks

2007-01-24 Thread Jan.Materne
Store your Stack as reference on the project TaskA { public static final String STACKNAME = "someprefix.stack"; Stack stack; public execute() { ... getProject().addReference(STACKNAME, stack); } } TaskB { public execute() { Stack stack = (Stack)getPro

Passing data between 2 created tasks

2007-01-24 Thread Farhdine Boutzakhti
Hi list, I am creating 2 different tasks with ANT: A - One extracting some data in a stack from a cache, B - One inserting these data in a database. I want to know if there is a way to pass an object (i.e. a stack) from A to B? Thanks ! Farhdine. Ce message et ses pièces jointes (le

Problem with FOP and classpath

2007-01-24 Thread cknell
I went to the ANT site and found instructions on adding an FOP task to a build. (http://xmlgraphics.apache.org/fop/0.93/anttask.html) My environment is Win2K. The example given at the site is: My

Re: Problems installing openMDX error:

2007-01-24 Thread MuschPusch
Thank you! It works fine...! Peter Reilly-2 wrote: > > You are using the jpackage version of ant. > I do not know why it does not pick up the regex > that is part of java since java.1.4. > > You use the ant version of ant. > Download ant 1.7.0, (say to /usr/local/java/ant1.7.0), > set ANT_HOM

Re: intra-element attribute property resolution issue

2007-01-24 Thread Steve Loughran
Jacob Kjome wrote: I see your point. Even if the functionality was something you would support, I'm not sure there's anyone willing to put in the time to figure it out. But you never know. Like I said before, it could be an option. So, if someone actually did the work, and it passed rigor