org.apache.maven.scm.plugin
Class BootstrapMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.scm.plugin.AbstractScmMojo
          extended by org.apache.maven.scm.plugin.CheckoutMojo
              extended by org.apache.maven.scm.plugin.BootstrapMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class BootstrapMojo
extends CheckoutMojo

Pull the project source from the configured scm and execute the configured goals.

Version:
$Id: BootstrapMojo.java 733515 2009-01-11 20:37:15Z dantran $
Author:
Dan T. Tran

Field Summary
private  String goals
          The goals to run on the clean checkout of a project for the bootstrap goal.
private  String goalsDirectory
          The subdirectory (under the project directory) in which to run the goals.
private  String profiles
          A list of profiles to run with the goals.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
BootstrapMojo()
           
 
Method Summary
protected  String determineWorkingDirectoryPath(File checkoutDirectory, String relativePathProjectDirectory, String goalsDirectory)
          Determines the path of the working directory.
 void execute()
          
private  void runGoals(String relativePathProjectDirectory)
           
 
Methods inherited from class org.apache.maven.scm.plugin.CheckoutMojo
checkout, getCheckoutDirectory, getCheckoutResult, setCheckoutDirectory
 
Methods inherited from class org.apache.maven.scm.plugin.AbstractScmMojo
checkResult, getConnectionUrl, getExcludes, getFileSet, getIncludes, getScmManager, getScmRepository, getScmVersion, getWorkingDirectory, handleExcludesIncludesAfterCheckoutAndExport, setConnectionType, setConnectionUrl, setExcludes, setIncludes, setWorkingDirectory
 
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
 

Field Detail

goals

private String goals
The goals to run on the clean checkout of a project for the bootstrap goal. If none are specified, then the default goal for the project is executed. Multiple goals should be comma separated.


profiles

private String profiles
A list of profiles to run with the goals. Multiple profiles must be comma separated with no spaces.


goalsDirectory

private String goalsDirectory
The subdirectory (under the project directory) in which to run the goals. The project directory is the same as the checkout directory in most cases, but for some SCMs, it is a subdirectory of the checkout directory.

Constructor Detail

BootstrapMojo

public BootstrapMojo()
Method Detail

execute

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

Specified by:
execute in interface org.apache.maven.plugin.Mojo
Overrides:
execute in class CheckoutMojo
Throws:
org.apache.maven.plugin.MojoExecutionException

runGoals

private void runGoals(String relativePathProjectDirectory)
               throws org.apache.maven.plugin.MojoExecutionException
Parameters:
relativePathProjectDirectory - the project directory's path relative to the checkout directory; or "" if they are the same
Throws:
org.apache.maven.plugin.MojoExecutionException - if any

determineWorkingDirectoryPath

protected String determineWorkingDirectoryPath(File checkoutDirectory,
                                               String relativePathProjectDirectory,
                                               String goalsDirectory)
Determines the path of the working directory. By default, this is the checkout directory. For some SCMs, the project root directory is not the checkout directory itself, but a SCM-specific subdirectory. The build can furthermore optionally be executed in a subdirectory of this project directory, in case.

Parameters:
checkoutDirectory -
relativePathProjectDirectory -
goalsDirectory -
Returns:


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.