ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "chpchew" <chpc...@cs.usm.my>
Subject Re: FileSet problem: include file with folder name containing space
Date Thu, 15 Jan 2004 09:42:29 GMT
hi:
    thanks to the quick reply. I had try on the solution you give. but both
of your solution can't really work for me.

1)    the first solution: use / instead of \
       >> the result still same. it will consider it as 2 element

2)     the second solution: use "/Integration/Portal*Gen/try.xml";
        >> basically fileset will treat it as one single element. but the
problem is on the * part. the problem might occur if I have another folder
named //Integration/Portal_Gen or /Integration/Portal2Gen. am I right?


Regards,
Chew



----- Original Message ----- 
From: <Jan.Materne@rzf.fin-nrw.de>
To: <user@ant.apache.org>
Sent: Thursday, January 15, 2004 5:16 PM
Subject: RE: FileSet problem: include file with folder name containing space


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
>



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


Mime
View raw message