I'm deriving a class from PropertyHelper to use via the ant.PropertyHelper reference. I'm doing a quick code check, and while the static getPropertyHelper method of PropertyHelper gets called to return the reference, the setProject method is never called on the reference if it is found, so I'm not sure if I even have access to the project... Note that setProject *does* get called if a reference isn't found and a new PropertyHelper instance is created.
The setProject() is called as you say, when the PropertyHelper is created.
Ok, looking at the code, it is a bit confusing - esp for property helpers in child projects.