Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 71627 invoked from network); 13 Dec 2000 08:21:54 -0000 Received: from bodewig.bost.de (root@195.227.98.11) by locus.apache.org with SMTP; 13 Dec 2000 08:21:54 -0000 Received: (from bodewig@localhost) by bodewig.bost.de (8.9.3/8.9.3) id JAA02232; Wed, 13 Dec 2000 09:21:53 +0100 X-Authentication-Warning: bodewig.bost.de: bodewig set sender to bodewig@apache.org using -f To: ant-user@jakarta.apache.org Subject: Re: exclude directory. References: <20001212203835.8559.qmail@web2005.mail.yahoo.com> From: Stefan Bodewig Date: 13 Dec 2000 09:21:53 +0100 In-Reply-To: hetan shah's message of "Tue, 12 Dec 2000 12:38:35 -0800 (PST)" Message-ID: Lines: 24 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N hetan shah wrote: > Hello, > > What would be the best way to exclude a directory and/or everything > under that directory in a target ? > 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? Stefan