ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morrison, John" <John.Morri...@uk.experian.com>
Subject RE: --available-- dos not work correctly
Date Thu, 07 Jun 2001 09:34:31 GMT
I *think* your logic's negated.  Try using 'if' rather than 'unless'

> -----Original Message-----
> From: Alex Gugel [mailto:alex.gugel@100world.de]
> Sent: 07 June 2001 10:29 am
> To: ant-user@jakarta.apache.org
> Subject: --available-- dos not work correctly
> 
> 
> Hello,
> 
> I'm using ANT 1.3 and I have problems with the <available> tag:
> 
>   <target name="prepare">
>     <tstamp/>
> 
> >>>>
>    <available file="${build.dir}/modules-ant.xml"
> property="modules-ant"/>
> <<<<
> 
>   </target>
> 
>   <!-- generate ANT file -->
>   <target name="generate-ant" depends="prepare" unless="modules-ant">
>     <style basedir="." destdir="${build.dir}"
> style="xsl/make-modules.xsl"
>            in="${modules.xml}" out="${build.dir}/modules-ant.xml"/>
>   </target>
> 
> The ${build.dir}/modules-ant.xml is not present in the filesystem, but
> available sets modules-ant and so generate-ant is never 
> called. Is that
> a known bug? Or do I do something wrong?
> 
> yours
> 
> alex
> 
> Alexander Gugel                     100world.com AG
> Abteilung                           Vordere Cramergasse 11
> Fon: +49 (0)911 4244-210            D-90478 N├╝rnberg
> Fax: +49 (0)911 4244-XXX      
> alex.gugel@100world.com             www.100world.com
> 


=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

Mime
View raw message