Great! That's good to hear :) Actually, I hadn't had a need for this kind of thing...so it was nice to see its available and works ;)

Allwicher, Klaus wrote:
Sorry, my previous answer seems to be too short.
With the timestampselector everythings works fine :-)

My current solution looks something like:

        <target name="import" depends="checkPackages,importPackages" />
        
<target name="checkSua" > <timestampselector property="packageList"
                        count="9999" pathsep="," age="eldest" >

<path> <fileset dir="${dir.import}" casesensitive="false" includes="${pattern}" /> </path>
                </timestampselector>
        </target>
                
<target name="importPackages" if="packageList" > <for param="package" list="${packageList}" >
                <sequential>
                        <importArchive archive="@{package}" />
                </sequential>
                </for>
        </target>

Klaus


-----Original Message-----
From: Scot P. Floess [mailto:[EMAIL PROTECTED] Sent: 12 May, 2006 12:45
To: Ant Users List
Subject: Re: Ordered fileset

Klaus:

So did that work or do you need another solution?

Scot

Allwicher, Klaus wrote:
Hi Scot,

thanks, I had read over the additional 'count' attribute, sorry :-( With this everything works fine.

@Matt: Thanks also for the suggestion, but we want only to
used "offically"
released versions ...

Klaus

-----Original Message-----
From: Scot P. Floess [mailto:[EMAIL PROTECTED]
Sent: 11 May, 2006 17:28
To: Ant Users List
Subject: Re: Ordered fileset

Klaus:

Check out the timestampselector in ant contrib. I see you
using the
"for" task so I assume you are familiar with ant contrib ;)

From the documentation, it has a count attribute "the number of files to find. If more than 1, than the files in the
output appear in
the order indicated by the |age| attribute"
and age "the age of the files to retrieve, either |eldest| or
|youngest|. Defaults to |youngest|."

Allwicher, Klaus wrote:
Hi,

I have to process different files ordered by their creation
date. (In
more detail, I have to import them and have to assure the
the contents
of newer archives are not overwritten by the contents of
older files).
If there a possiblity to define an order for filesets or
are there any
other ways to achieve this with standard ANT tasks/types ?
Or do I have to write a new/extended fileset by my own ?

Currently the ANT target looks something like

        <for param="arc_name">
<path> <fileset dir="${dir.import}"
casesensitive="false"
includes="${arc_pattern}" /> </path>
        <sequential>
                <import archive="@{arcname}" />
        </sequential>
        </for>

Thanks for you help :-)

Klaus


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


--
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim


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


--
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim



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



--
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim

Reply via email to