You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Marc Dzaebel <md...@web.de> on 2006/10/10 23:13:01 UTC

Root drive in fileset dir

The following works (inside <zip>)
    <fileset dir="C:/Dokumente und Einstellungen" includes="any.txt"/>

but if the drive letter is alone no files are included:
    <fileset dir="C:/" includes="Dokumente und Einstellungen/any.txt"/>

Any idea?

Thanks Marc




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


Re: Root drive in fileset dir

Posted by Marc Dzaebel <md...@web.de>.
that works, thanks a lot. It seems to be impossible to escape spaces in 
includes/excludes attribute values.

My proposal would be to introduce a "separators" attribute that defaults to 
"; "

Marc

"Matt Benson" <gu...@yahoo.com> schrieb im Newsbeitrag 
news:20061010222801.87020.qmail@web55106.mail.re4.yahoo.com...
> Try the include with embedded spaces as a single
> nested <include> element.  Most likely the spaces are
> being taken as separators indicating you want to match
> patterns "Dokumente", "und", "Einstellungen/any.txt".
>
> HTH,
> Matt
>
> --- Marc Dzaebel <md...@web.de> wrote:
>
>> The following works (inside <zip>)
>>     <fileset dir="C:/Dokumente und Einstellungen"
>> includes="any.txt"/>
>>
>> but if the drive letter is alone no files are
>> included:
>>     <fileset dir="C:/" includes="Dokumente und
>> Einstellungen/any.txt"/>
>>
>> Any idea?
>>
>> Thanks Marc
>>
>>
>>
>>
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> user-unsubscribe@ant.apache.org
>> For additional commands, e-mail:
>> user-help@ant.apache.org
>>
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com 




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


Re: Root drive in fileset dir

Posted by Michael Giroux <ml...@gmail.com>.
>From the ANT docs for filesets:
includes  -- comma- or space-separated list of patterns of files that
must be included; all files are included when omitted.

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


Re: Root drive in fileset dir

Posted by Matt Benson <gu...@yahoo.com>.
Try the include with embedded spaces as a single
nested <include> element.  Most likely the spaces are
being taken as separators indicating you want to match
patterns "Dokumente", "und", "Einstellungen/any.txt".

HTH,
Matt

--- Marc Dzaebel <md...@web.de> wrote:

> The following works (inside <zip>)
>     <fileset dir="C:/Dokumente und Einstellungen"
> includes="any.txt"/>
> 
> but if the drive letter is alone no files are
> included:
>     <fileset dir="C:/" includes="Dokumente und
> Einstellungen/any.txt"/>
> 
> Any idea?
> 
> Thanks Marc
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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