You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Je...@elementk.com on 2004/11/05 17:26:05 UTC
How do I log from a custom FileNameMapper?
I'm writing a custom FileNameMapper, and I'd like to display information
to the log for verbose mode. A FileNameMapper is just an interface, and
not a ProjectComponent, so I'm not sure how to get ahold of the Project
object to call the log method. Is there some sort of static method to
access the current Project? Any other suggestion?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: How do I log from a custom FileNameMapper?
Posted by Peter Reilly <pe...@apache.org>.
extend ProjectComponent implement FileNameMapper
or provide a public method void setProject(Project project),
this will get called by the ant core runtime to tell the filemapper the
current project.
Peter
Jeremy_Stein@elementk.com wrote:
>I'm writing a custom FileNameMapper, and I'd like to display information
>to the log for verbose mode. A FileNameMapper is just an interface, and
>not a ProjectComponent, so I'm not sure how to get ahold of the Project
>object to call the log method. Is there some sort of static method to
>access the current Project? Any other suggestion?
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org