ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steffen Schluff" <>
Subject AW: echoing filesize
Date Wed, 30 Jul 2003 11:41:13 GMT
ops, i forgot to paste how to invoke the task

<!-- Define the task -->
<taskdef name="filesize" classname="ant.FileSizeTask"/>
<!-- Invoke the task -->
<filesize file="${my.file}" property="my.file.size"/>
<!-- Use the task's output -->
<echo message="Size of '${my.file}' is ${my.file.size} Bytes."/>

Steffen Schluff
Orientation in Objects GmbH

-----Ursprungliche Nachricht-----
Von: dc []
Gesendet: Mittwoch, 30. Juli 2003 12:57
An: 'Ant Users List'
Betreff: echoing filesize

Is there a built in ant task that can echo a filesize?
can task output be directed to a variable?

I am trying to create a portable build env that doesn't require external


<property name="filesize" value="... somehow read a file's size" />

<echo file="${MIDlet-Name}.jad" append="false">
	MIDlet-Name: ${MIDlet-Name}


david [dc] collier

Web & Mobile Contents Business Group

  e   |
  v   |  +81(0)90 7414 6107

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message