private void updateExecutionProperties( Element executionElement, com.viadee.acceptancetests.roo.addon.Execution execution) { removeAllChildNodes(executionElement); _pomWrapper.addChildToParentWithNameAndTextContent(executionElement, "id", execution.getId()); _pomWrapper.addChildToParentWithNameAndTextContent( executionElement, "phase", execution.getPhase()); Element goalsElement = _pomWrapper.createElement("goals"); for (String goal : execution.getGoals()) { _pomWrapper.addChildToParentWithNameAndTextContent(goalsElement, "goal", goal); } executionElement.appendChild(goalsElement); execution.serializeExecutionConfiguration(executionElement, this); }
private Element findOrCreateExecutionElement(Element executionsElement, Execution execution) { Element executionElement = findExecutionElement(executionsElement, execution); if (executionElement == null) { executionElement = _pomWrapper.addChildElementWithName(getDomElement(), "execution"); executionsElement.appendChild(executionElement); } return executionElement; }
private Element findOrCreateConfigurationElement() { return _pomWrapper.getExistingOrNewChild(_domElement, "configuration"); }
private Element findOrCreateExecutionsElement() { return _pomWrapper.getExistingOrNewChild(_domElement, "executions"); }