ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shatzer, Larry" <Larry.Shat...@Spirent.com>
Subject RE: How to tell a task to fail if the fileset includes are missin g?
Date Fri, 24 Oct 2003 20:25:19 GMT
You can look at <avaliable>

http://ant.apache.org/manual/CoreTasks/available.html

Or use <condition> (in conjunction with <avaliable>

http://ant.apache.org/manual/CoreTasks/condition.html
http://ant.apache.org/manual/CoreTasks/conditions.html

-- Larry

> -----Original Message-----
> From: Matt Harp [mailto:mharp@seapine.com]
> Sent: Friday, October 24, 2003 1:24 PM
> To: ant-list
> Subject: How to tell a task to fail if the fileset includes 
> are missing?
> 
> 
> Pretty new to Ant, and can't seem to find anything in help or 
> the archives
> related to this so here goes...
> 
> 
> I've got a build.xml file that uses the jar task to build a 
> jar file like
> this.
> 
>       <jar jarfile="${dist}/${jarfilename}" compress="true">
>          <fileset dir="${src}" includes="plugin.xml" />
>          <fileset dir="${src}" includes="plugin.properties" />
>       </jar>
> 
> where property src = "."
> 
> How can I tell the build.xml to fail if one of those files is 
> not found?
> Right now, I run it and it just skips over the stuff it can't find.
> 
> 
> Any help would be greatly appreciated...
> 
> 
> Thanks,
> 
> matt
> 

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


Mime
View raw message