ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vimil Saju <vimils...@yahoo.com>
Subject Re: Ant: want to copy a file if it exists
Date Fri, 30 Jul 2010 00:27:25 GMT
Use the 'available' task to check if a file exists. There is also an 'if' task which is part
of antcontrib that you can use to execute tasks conditionally

--- On Thu, 7/29/10, eric.wood@thomsonreuters.com <eric.wood@thomsonreuters.com> wrote:

From: eric.wood@thomsonreuters.com <eric.wood@thomsonreuters.com>
Subject: Ant: want to copy a file if it exists
To: user@ant.apache.org
Date: Thursday, July 29, 2010, 2:08 PM

I want to check to see if a file exist and if so then copy it.  What is
the best way for performing this conditional task?

 

Thanks, eric




      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message