ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: FileSet problem: include file with folder name containing spa ce
Date Thu, 15 Jan 2004 09:16:23 GMT
Quick hint: use / instead of \. Personally I usually dont know when \ stands
for
itself and when it´s used for masking other characters.

And Ant will handle /.


Ant should be able to handle spaces. But if not try
    String filename = "/Integration/Portal*Gen/try.xml";

Jan

> -----Original Message-----
> From: chpchew [mailto:chpchew@cs.usm.my]
> Sent: Thursday, January 15, 2004 10:22 AM
> To: user@ant.apache.org
> Subject: FileSet problem: include file with folder name 
> containing space
> 
> 
> hi: 
>     I am a newbie in using Ant. Please forgive me if I ask 
> silly question.
>     I try to set include file into the FileSet instance using 
> this command. 
> 
>     String filename = "\Integration\Portal Gen\try.xml";
>     FileSet fileset = new FileSet();
>     fileset.setIncludes(filename );
> 
>     as a result, the fileset actually has two element in the 
> fileset which is:
>     1) \Integration\Portal,
>     2)  Gen\try.xml
> 
>     Anyone can tell me on how to ignore the space when we 
> includes file into the fileset.
> 
>     Thanks
> 
> 
> regards,
> Chew
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message