Matt
I have tried the name too see:
<restrict>
<union>
<fileset dir="D:\ant-test\dir1" />
<fileset dir="C:\TEMP\ant-test\dir2" />
</union>
<name name="*.txt"/>
</restrict>
But I got:
restrict doesn't support the nested "name" element.
at
org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:356)
at
org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:566)
at
org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:343)
at
org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:198)
...
The restrict was part of a copy task
Can you help???
Mikael.S
-----Original Message-----
From: Matt Benson [mailto:[EMAIL PROTECTED]
Sent: Monday, 29 January, 2007 19:16
To: Ant Users List
Subject: Re: restrict and selector
--- Mikael Sitruk <[EMAIL PROTECTED]> wrote:
>
> Hi
>
>
>
> I’ve tried to use selector into a restrict
> resource collection, but ant does not allow it,
> indicating that the element (the selector used) is
> not supported. Any suggestion?
Mikael: it looks like you are trying to use the
<filename> FILE selector where you probably want the
<name> RESOURCE selector: i.e. <restrict> doesn't
understand File selectors, only Resource selectors.
HTH,
Matt
>
>
>
> Sample:
>
> <restrict>
>
> <union>
>
> <fileset dir="Dir1"/>
>
> <fileset dir="Dir2"/>
>
> <fileset dir="Dir3"/>
>
> </union>
>
> <filename name=â€xxx.xâ€/>
>
> </restrict>
>
>
>
> 10x
>
> Mikael Sitruk
>
> Amdocs Java Foundation
>
>
>
>
> This message and the information contained herein is
> proprietary and confidential and subject to the
> Amdocs policy statement,
> you may review at
> http://www.amdocs.com/email_disclaimer.asp
>
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This message and the information contained herein is proprietary and
confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp