|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sourceforge.cruisecontrol.ProjectXMLHelper
public class ProjectXMLHelper
Instantiates a project from a JDOM Element. Supports the use of Ant-like patterns in
attribute values that look like this: ${propertyname}
| Constructor Summary | |
|---|---|
ProjectXMLHelper()
|
|
ProjectXMLHelper(java.util.Map projectProperties,
PluginRegistry projectPlugins)
|
|
ProjectXMLHelper(java.util.Map projectProperties,
PluginRegistry projectPlugins,
CruiseControlController controller)
|
|
| Method Summary | |
|---|---|
java.lang.Object |
configurePlugin(org.jdom.Element pluginElement,
boolean skipChildElements)
TODO: also check that instantiated class implements/extends correct interface/class |
static void |
parsePropertiesInElement(org.jdom.Element element,
java.util.Map props,
boolean failIfMissing)
|
static java.lang.String |
parsePropertiesInString(java.util.Map props,
java.lang.String string,
boolean failIfMissing)
Parses a string by replacing all occurrences of a property macro with the resolved value of the property. |
static DefaultPropertiesPlugin |
registerProperty(java.util.Map props,
org.jdom.Element propertyElement,
boolean failIfMissing)
Registers one or more properties as defined in a property element. |
static void |
setProperty(java.util.Map props,
java.lang.String name,
java.lang.String parsedValue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ProjectXMLHelper()
public ProjectXMLHelper(java.util.Map projectProperties,
PluginRegistry projectPlugins)
public ProjectXMLHelper(java.util.Map projectProperties,
PluginRegistry projectPlugins,
CruiseControlController controller)
| Method Detail |
|---|
public java.lang.Object configurePlugin(org.jdom.Element pluginElement,
boolean skipChildElements)
throws CruiseControlException
configurePlugin in interface ProjectHelperCruiseControlException
public static DefaultPropertiesPlugin registerProperty(java.util.Map props,
org.jdom.Element propertyElement,
boolean failIfMissing)
throws CruiseControlException
propertyElement - The element from which we will register properties
CruiseControlException
public static java.lang.String parsePropertiesInString(java.util.Map props,
java.lang.String string,
boolean failIfMissing)
throws CruiseControlException
string - The string to be parsed
CruiseControlException - if a property cannot be resolved
public static void parsePropertiesInElement(org.jdom.Element element,
java.util.Map props,
boolean failIfMissing)
throws CruiseControlException
CruiseControlException
public static void setProperty(java.util.Map props,
java.lang.String name,
java.lang.String parsedValue)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||