Thanks for the very fast response guys!
Using Jelly in maven one I was able to convert my path into filesets as
follows:
<!-- Convert the path to fileset -->
<ant:pathconvert pathsep=";" property="java.source.paths"
refid="maven.compile.src.set"/>
<util:tokenize var="java.source.paths.split"
delim=";">${java.source.paths}</util:tokenize>
<ant:jar
jarfile="${maven.build.dir}/${maven.source.final.name}"
excludes="${maven.source.excludes}">
<!-- Create a fileset for each directory added to
maven.compile.src.set -->
<j:forEach var="var" items="${java.source.paths.split}">
<ant:fileset dir="${var}"/>
</j:forEach>
</ant:jar>
</goal>
Cheers,
Stéphane
On 1/6/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Or take a HEAD version of Ant.
> fileset´s and path´s are "only" a subset of resource collections there.
>
>
> Jan
>
> >-----Ursprüngliche Nachricht-----
> >Von: Matt Benson [mailto:[EMAIL PROTECTED]
> >Gesendet: Donnerstag, 5. Januar 2006 16:55
> >An: Ant Users List
> >Betreff: Re: using a path element to copy to archive the whole
> >structure
> >
> >There are some things that you might find useful at antcontrib.
> >https://sourceforge.net/projects/antcontrib/
> >
> >HTH,
> >Matt
> >
> >--- Stephane Nicoll <[EMAIL PROTECTED]> wrote:
> >
> >> Hello list,
> >>
> >> I am currenlty working with path and have a problem.
> >> I checked the
> >> documentation and see nothing that would help me.
> >>
> >> I have a path named "maven.compile.src.set" which contains a list of
> >> directories containing Java source files. I would like to create an
> >> archive (jar or zip it does not matter) of those source files. The
> >> jar/zip task seems to take only fileset. Is there a way to build a
> >> fileset from a path?
> >> Any other way to create my archive with all the content
> >denoted in the
> >> path structure?
> >>
> >> Thanks,
> >> Stéphane
> >>
> >> --
> >> .::You're welcome ::.
> >>
> >
> >
> >
> >
> >__________________________________________
> >Yahoo! DSL - Something to write home about.
> >Just $16.99/mo. or less.
> >dsl.yahoo.com
> >
> >
> >---------------------------------------------------------------------
> >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]
>
>
--
.::You're welcome ::.