o Need a way to transform the nodes if there is no user interaction.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112886 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jvanzyl committed 2003-02-11 01:00:55 +00:00
1 parent 9506694e04
commit f9906f9f3b
2 files changed
+34 -1

No files matched your search

@@ -97,4 +97,17 @@ public class DummySnapshotResolver
Node version = node.selectSingleNode( selectNodeXPath() );
version.setText( getNodeContent( node ) );
}
public Node getTransformedNode( Node node )
throws Exception
{
// Now with our xpath expression we have the whole <dependency/>
// element and we want to alter the <version/> element.
Node version = node.selectSingleNode( selectNodeXPath() );
Node transformedNode = (Node) version.clone();
transformedNode.setText( getNodeContent( node ) );
return transformedNode;
}
}