ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Lochart" <dloch...@capecomputing.com>
Subject Re: how to fetch file informations (date, size)?
Date Mon, 01 Dec 2003 19:03:54 GMT
I am not sure exactly what you need to do but you may need a combination of
scripting along with the <propertyfile> task.  The PropertyFile task is an
optional task and works well for creating and updating property files while
doing an ant build.  If you need to determine the file attributes first from
a directory structure before putting that info into the property file then
you will need to use <script> with either JavaScript or my new favorite
BeanShell.

hope this helps

Doug

Now I've gained some understanding
Of the only world that we see.
Things that I once dreamed of
Have become reality.

These walls that still surround me
Still contain the same old me,
Just one more who's searching for
A world that ought to be.

----- Original Message ----- 
From: "Antoine Levy-Lambert" <antoine@antbuild.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Monday, December 01, 2003 1:50 PM
Subject: AW: how to fetch file informations (date, size)?


>
> Hi Matthias,
>
> this is possible using JavaScript
>
> some pointers :
> Dominique Devienne
> http://marc.theaimsgroup.com/?l=ant-user&m=103771801723603&w=2
> Jan Materne
> http://marc.theaimsgroup.com/?l=ant-user&m=105393627611631&w=2
> Hopes this helps,
> Antoine
> -----Ursprungliche Nachricht-----
> Von: Matthias P. [mailto:groups.mpatzak@gmx.de]
> Gesendet: Montag, 1. Dezember 2003 16:16
> An: user@ant.apache.org
> Betreff: how to fetch file informations (date, size)?
>
>
> Hi,
>
> during our deployment i have to generate a property file that contains all
> files of the deploment client with the actual file name, file size in
bytes
> and the file date.
>
> 1. How can i get these informations?
> 2. How do i write them in a propertyfile?
>
> Thanks,
>
> Matthias Patzak
>
> -- 
> HoHoHo! Seid Ihr auch alle schvn brav gewesen?
>
> GMX Weihnachts-Special: Die 1. Adresse f|r Weihnachts-
> mdnner und -frauen! http://www.gmx.net/de/cgi/specialmail
>
> +++ GMX - die erste Adresse f|r Mail, Message, More! +++
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message