Ah, I missed both of these. And I even open BaseSelector.java...

Thanks Peter.

As to Jose Alberto's question, I doing something akin to a present selector,
which first creates a map of the target files using directory scanners...
Anyways, I've started it as a task for now, even though it
really could be a selector. --DD

-----Original Message-----
From: Peter Reilly
To: Ant Developers List
Sent: 12/9/2003 4:09 AM
Subject: Re: Custom selector how-to...

Dominique Devienne wrote:

>I have two apparently simple question about custom selectors:
>1) How can I access the Project associated to a selector?
BaseExtendSelector extends BaseSelector extends DataType extends 
ProjectComponent.....

>   I need to create a Path from a string for pre-Ant 1.6
parametrization,
>   and also create a DirectoryScanner, which also requires a Project.
>  
>
There has been issues with ant core not setting the project for custom 
selectors early
enough to be useful. This has been fixed for ant 1.6, but could be a
problem
for ant 1.5. (Actually for any object that has got a public 
setProject(Project), ant 1.6
will attempt to call setProject(Project) on it as soon as possible).

>2) Can selectors be id'd/refid'd like tasks/types?
See:
http://ant.apache.org/manual/CoreTypes/selectors.html#selectorselect

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to