org.ops4j.pax.construct.bundle
Class MoveBundleMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.ops4j.pax.construct.bundle.MoveBundleMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class MoveBundleMojo
extends org.apache.maven.plugin.AbstractMojo

Move a bundle project to a new directory, updating and creating POMs as necessary

   mvn pax:move-bundle -DbundleName=... -DtargetDirectory=...
 


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
MoveBundleMojo()
           
 
Method Summary
 void execute()
          
protected static PomUtils.Pom locateBundlePom(java.io.File baseDir, java.lang.String pathOrName)
          Locate the bundle project - try name first as a directory path, then an artifactId or symbolic-name
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveBundleMojo

public MoveBundleMojo()
Method Detail

locateBundlePom

protected static PomUtils.Pom locateBundlePom(java.io.File baseDir,
                                              java.lang.String pathOrName)
                                       throws org.apache.maven.plugin.MojoExecutionException
Locate the bundle project - try name first as a directory path, then an artifactId or symbolic-name

Parameters:
baseDir - base directory in the same project tree
pathOrName - either a path, or an artifactId or symbolic-name
Returns:
the matching POM
Throws:
org.apache.maven.plugin.MojoExecutionException

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException

Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2007-2008 OPS4J. All Rights Reserved.