ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: FileSet problem: include file with folder name containing space
Date Thu, 15 Jan 2004 09:26:52 GMT
On Thu, 15 Jan 2004, <chpchew@cs.usm.my> wrote:

>     String filename = "\Integration\Portal Gen\try.xml";
>     FileSet fileset = new FileSet();
>     fileset.setIncludes(filename );

this is the setter for the includes attribute, which itself contains a
comma *or space* separated list of patterns.  You have to use the
equivalent of a nested <include> element instead:

fileset.createInclude().setName(filename);

Stefan
-- 
http://stefanbodewig.blogger.de/

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


Mime
View raw message