ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: exclude directory.
Date Wed, 13 Dec 2000 08:21:53 GMT
hetan shah <> wrote:

> Hello,
> What would be the best way to exclude a directory and/or everything
> under that directory in a target ?


>     <xmlc srcdir="${src.dir}"
>           sourceout="${build.xmlc.dir}" 
>           includes="**/*.html"
>           excludes="${build.xmlc.dir}/jdoc/**">


not knowing the task you are using I can only hope it is working the
same way all other directory based tasks in Ant do.

The patterns you specify are taken as relative file patterns, relative
to the basedir (or whatever a given task calls it) of your task. You
seem to specify an absolute path. Does excludes="jdoc/**" work?


View raw message