ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey N. Solofnenko" <A.Solofne...@mdl.com>
Subject Re: fileset fails when base dir is missing
Date Mon, 06 Dec 2004 19:44:29 GMT
I usually execute <mkdir> in this situation - an empty directory does 
not affect anything else and makes some commands happy.

- Alexey.

Charlton_Rose@daifukuamerica.com wrote:

>I am constructing a classpath that includes a fileset.  Sometimes, the 
>base directory for that fileset does not exist.  I would like Ant to 
>simply accept this as an empty fileset and move on.  Instead, Ant quits 
>with an error, complaining that the directory is not found.  How should
>I 
>resolve this problem?
>
>In other words...
>
><path id="cp">
>        <fileset dir="lib" includes="**/*.jar"/>
>        <pathelement location="a.jar"/>
>        <pathelement location="b.jar"/>
>        <pathelement location="c.jar"/>
></path>
><javac
>        destdir="${classes}"
>  
>
>        <src path="${src}"/>
>        <classpath>
>                <path refid="cp"/>
>        </classpath>
></javac>
>
>...fails if the "lib" folder does not exist.  I would rather have Ant
>just 
>keep on going.  Any ideas?
>  
>


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


Mime
View raw message