You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by breako <al...@fineos.com> on 2008/06/17 16:57:03 UTC
Checking a file exists
Hi,
Does Ant have a command which will check if a file exists?
Thanks
--
View this message in context: http://www.nabble.com/Checking-a-file-exists-tp17912750p17912750.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Checking a file exists
Posted by "Scot P. Floess" <fl...@mindspring.com>.
<available property = "some-property" file = "some-file" value =
"some-value"/>
or
<available property = "some-property" file = "some-file"/>
works too :)
Substitute appropriate property name and file above :)
On Tue, 17 Jun 2008, breako wrote:
>
> Hi,
> Does Ant have a command which will check if a file exists?
> Thanks
> --
> View this message in context: http://www.nabble.com/Checking-a-file-exists-tp17912750p17912750.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549
252-478-8087 (Home)
919-754-4592 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Architect Keros http://sourceforge.net/projects/keros
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: Checking a file exists
Posted by Shawn Castrianni <Sh...@halliburton.com>.
<available> task will do it.
---
Shawn Castrianni
-----Original Message-----
From: breako [mailto:alex.staveley@fineos.com]
Sent: Tuesday, June 17, 2008 9:57 AM
To: user@ant.apache.org
Subject: Checking a file exists
Hi,
Does Ant have a command which will check if a file exists?
Thanks
--
View this message in context: http://www.nabble.com/Checking-a-file-exists-tp17912750p17912750.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
----------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org