You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Stefan Bodewig <bo...@apache.org> on 2000/12/19 09:17:37 UTC
Re: Problem with Listener
jeremie hebre <je...@corp.vizzavi.net> wrote:
> Hi,
>
> I'm using Ant as follows: java org.apache.tools.Ant.Main -listener
> myListener build.xml -Dproperty.name="pname" targetN
>
> I want my Listener class to get the build.xml "property.name"
> property value in order to use it. How can I do that?
In the event handler for buildStarted call
be.getProject().getProperty("property.name")
where be is the BuildEvent you've received.
Stefan