ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wolfgang haefelinger <whaefelin...@gmail.com>
Subject Installing PropertyHelper
Date Thu, 11 Nov 2010 12:34:20 GMT
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-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message