Hello,

I'm trying to install my own property helper class

package org.example;
public class MyPropertyHelper extends org.apache.tools.ant.PropertyHelper {}

as shown in [1] along with a property def before and some <fail />
calls after the "switch"

<property name="foo" value="bar" />
<componentdef classname="org.example.MyPropertyHelper"
              name="mypropertyhelper"/>
<propertyhelper>
  <mypropertyhelper/>
</propertyhelper>

<fail if="foo" />
<fail if="ant.file" />
<fail if="ant.home" />

Turns out that all properties are .. gone! I would have expected that
"existing" property stacks are attached to the project and therefore
"shared" by nature.

So, what is the recommended way to have a property helper sharing properties?

[1] http://ant.apache.org/manual/Tasks/propertyhelper.html

Regards.
-- 
Wolfgang Häfelinger
häfelinger IT - Applied Software Architecture
http://www.haefelinger.it
+31 648 27 61 59

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to