org.apache.maven.plugins.scm.release
Class PomNodeSelector

java.lang.Object
  extended byorg.apache.maven.plugins.scm.release.PomNodeSelector

public class PomNodeSelector
extends Object

This is a simple POM manipulator that doesn't take into account any sort of POM inheritance. When the interpolation and inheritance is cleaned up in the Maven we will be able to serialize a POM directly with greater ease. But we may stick with this Jaxen solution anyway because it's so easy. Just turn the POM in memory into a Dom4j document and perform the same operation as we are here.


Constructor Summary
PomNodeSelector()
          Constructor.
 
Method Summary
 void execute()
          Update the snapshot version identifiers with actual timestamp versions and write out the POM in its updated form.
 List getNodes()
          Gets the nodes attribute of the PomManipulator object
 File getPom()
           
 String getXpathExpression()
           
 void setNodes(List nodes)
          Sets the nodes attribute of the PomManipulator object
 void setPom(File pom)
           
 void setXpathExpression(String xpathExpression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PomNodeSelector

public PomNodeSelector()
Constructor.

Method Detail

setXpathExpression

public void setXpathExpression(String xpathExpression)

getXpathExpression

public String getXpathExpression()

setNodes

public void setNodes(List nodes)
Sets the nodes attribute of the PomManipulator object


getNodes

public List getNodes()
Gets the nodes attribute of the PomManipulator object


setPom

public void setPom(File pom)

getPom

public File getPom()

execute

public void execute()
             throws Exception
Update the snapshot version identifiers with actual timestamp versions and write out the POM in its updated form.

Throws:
Exception


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.