I would think the only way to do this is in the targetStarted-Method. Just
get the name of the target and test if it is "init" or something like this.
buildStarted is fired before the xml-file is read. You should get the
Property using "event.getProject().getProperty("pname")".
Nico
----- Original Message -----
From: jeremie hebre
To: [EMAIL PROTECTED]
Sent: Tuesday, December 19, 2000 9:46 AM
Subject: Problem with Listener
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?
Thanks for your help.
Jeremie