ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PeterJ Kelly <PeterJ.Ke...@aepona.com>
Subject Does ANT have an 'if' statement, or equivalent
Date Wed, 26 Jun 2002 13:50:40 GMT
Hi,
  I'm using ANT version 1.4 and was wondering if ANT had an 'if'
statment, or equivalent?
Basically I'm creating a build script that will check first if a
filename exists in a directory.
If it does it will give the new file a different name, otherwise it'll
give it the original name.

E.G.  if (originalFileNameExists == true) {
          tempFile = newFileName
      } 
      else { tempFile = originalFileName
      }


Many thanks,
Peter.
-- 


**************************************************************
* Peter Kelly               * Email: peterj.kelly@aepona.com *
*                           * WWW  : www.aepona.com          *
* Aepona Ltd.,              * Phone: +44 (0)28 9026 9109     *
* Interpoint Building,      * Fax  : +44 (0)28 9026 9111     *
* 20-24 York Street,        *                                *
* Belfast. BT15 1AQ         *                                *
* N. Ireland                *                                *
**************************************************************

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message