Re: Creating custom propertis plugin

"Ing. Daniel TIHELKA Ph.D." <[email protected]> Wed, 03 Aug 2011 22:42:38 +0200
Newsgroups gmane.comp.java.cruise-control.devel
Message-ID <1722-4e39b280-39-20314e80@33789536>
Hallo,
I have looked around little bit and I have found the following:

The only place where raw

  PropertiesPlugin#loadProperties(Map<String, String>, boolean)

is called, is:

  PropertiesPlugin ProjectXMLHelper#registerCustomProperty(Map<String, String>,
            Element, ResolverHolder, boolean, PluginRegistry)

which is called from:

  CruiseControlConfig.handleCustomRootProperty(Element)

which is then called from:

  CruiseControlConfig.parse(Element)


However, when I debugged it with my plugin configuration (see my previous mail), such methods are never called (I have put a breakpoint there and debugged the instantiation of  new XMLConfigManager(projectFile)).


So, the question is - what to do now? In fact. I don't know how to create custom properties plugin. Simple implementation of PropertiesPlugin interface seems not to be enough.

Do you have an idea what needs to be changed/adjusted to get it work correctly?

Thank you very much for your help.
Best regards,
Dan T.


------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1