Re: Replacing with File Size

2005-03-03 Thread Ivan Ivanov
> > Ant 1.6.3 (and recent nightly builds) will contain a > length task that can set a property to the length of > a file or string. OK, but why a task only for a file length? The mailing list archives contains examples for file length, last modified date and a check whether a directory is empty a

Re: Replacing with File Size

2005-03-02 Thread Matt Benson
--- "Haiges, Sven, Vodafone Group R&D" <[EMAIL PROTECTED]> wrote: [SNIP] > Does anyone know how I can simplay determine the > byte-size of a file > from ant and take that output and replace the > occurrence of @size@ with > the size determined? Ant 1.6.3 (and recent nightly builds) will contain a

Re: Replacing with File Size

2005-03-02 Thread Ivan Ivanov
Sven, --- "Haiges, Sven, Vodafone Group R&D" <[EMAIL PROTECTED]> wrote: > > Does anyone know how I can simplay determine the > byte-size of a file > from ant and take that output and replace the > occurrence of @size@ with > the size determined? This script does this:

AW: Replacing with File Size

2005-03-02 Thread Jan . Materne
http://marc.theaimsgroup.com/?l=ant-user&m=110418389806438&w=2 getting file size Jan > -Ursprüngliche Nachricht- > Von: Haiges, Sven, Vodafone Group R&D > [mailto:[EMAIL PROTECTED] > Gesendet am: Mittwoch, 2. März 2005 11:14 > An: Apache Ant User List (E-Mail

Replacing with File Size

2005-03-02 Thread
Hi there, this is related to the Filter Core Taks in Ant. It allows you to replace occurrences like @size@ with a value like 1000. My problem is that I need to determine the size of a jar file dynamically ( a previous ant target creates this jar file) and then need to set the size of that file in