If things go well, a beta of Ant 1.7 will be available on our Web Site for download on Monday. It will contain the docu.

Antoine
On Aug 25, 2006, at 2:51 PM, Thomas Hallgren wrote:

Hi Antoine,
This is great news! Is there a place where I can read up on these Resource Collections?

Thanks,
Thomas Hallgren

Antoine Levy-Lambert wrote:
Hello,

Ant 1.7 will have groups of filesets (Resource collections).

Regards,

Antoine
-------- Original-Nachricht --------
Datum: Tue, 22 Aug 2006 19:46:07 +0200
Von: "Chaudhuri, Hiran" <[EMAIL PROTECTED]>
An: "Ant Users List" <user@ant.apache.org>
Betreff: RE: Groups of filesets


Hmmm, that means we might need to keep a 'base' property for the files
in a set so we know how to find the file via absolute pathname but
sometimes need to work with the relative pathname. I bit tricky....

-----Original Message-----
From: Thomas Hallgren [mailto:[EMAIL PROTECTED] Sent: Dienstag, 22. August 2006 17:08
To: Ant Users List
Subject: Re: Groups of filesets

Not sure if arithmetics would help me. I'm dependent on the actual
grouping, i.e. the fact that some files reside under 'src1' and others
under 'src2' and that this grouping is maintained when the jar is
created.

Assume the following layout:

src1/org/foo/misc/a.class
src2/org/foo/util/b.class

Now, given my original example, I'd like a jar that contains:

org/foo/misc/a.class
org/foo/util/b.class

I.e., the knowledge that src1 and src2 are 'dir' entries that will
replace the 'basedir' in the jar task as it peruses the filesets, one at a time, must be preserved. Merging filesets won't do since that would
clobber that information.

Regards,
Thomas Hallgren



Chaudhuri, Hiran wrote:

Actually it would be nice to have some set arithmethics implemented. Means a set plus another set is a new set. You could this way add, subtract and whatever you like with filesets without having to modify any of the tasks.

For a beginning, a fileset could support the nested element fileset, which performs like a merge by default.

Hiran Chaudhuri

-----Original Message-----
From: Thomas Hallgren [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 22. August 2006 16:46
To: user@ant.apache.org
Subject: Groups of filesets

I'm lacking a <filesetgroup> element that would enable a referencing a group of <filesets>. I'm currently faced with the challenge of passing multiple filesets from a Java program to an ant-script as a source for a jar task. I can't find a good way to do that. Essentially, this is what I'd like to do:

(the correspondance of this would take place in Java code)

<filesetgroup id="src"/>
   <fileset dir="src1"/>
   <fileset dir="src2"/>
</filesetgroup>

(and then this would happen in the ant buildscript)

<jar jarfile="some.jar">
   <filesetgroup refid="src"/>
</jar>

Several other tasks are subject to the same problem (javac, copy,

etc.).

I found a message from September 2002 in the archives that expresses the same concern: http://www.mail-archive.com/ant-user@jakarta.apache.org/ msg20345.html.

Are there any plans to implement this?

Kind Regards,
Thomas Hallgren




------------------------------------------------------------------- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
      commands, e-mail: [EMAIL PROTECTED]


------------------------------------------------------------------- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
      commands, e-mail: [EMAIL PROTECTED]


-------------------------------------------------------------------- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]


-------------------------------------------------------------------- -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to