You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Morten Mortensen <Mo...@TietoEnator.com> on 2003/05/13 11:58:43 UTC

Getting the size of a file

Hi Ant-fans,

Is it really true, that it is impossible to get the size of a file - would
like it as a property-value - ?

E.g. many MIDP-upload-programs *insist* on having the correct size of the
JAR-file in the JAD-file and I would like to build JAD-files from templates
by replacing values, but the missing "size of file" prohibits this... 

A generic "get size of file in bytes" could be quite useful.

     ?

Med venlig hilsen 
  Morten Sabroe Mortensen 
  mailto:Morten.Mortensen@tietoenator.com