>
> 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
--- "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
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:
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
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