com.atlassian.bamboo.builder.maven
Class AbstractMaven2CommandDecorator

java.lang.Object
  extended by com.atlassian.bamboo.command.AbstractCommandDecorator<Maven2Builder>
      extended by com.atlassian.bamboo.builder.maven.AbstractMaven2CommandDecorator
All Implemented Interfaces:
CommandDecorator, BambooPluginModule
Direct Known Subclasses:
IsolatedLocalRepositoryMaven2CommandDecorator

public abstract class AbstractMaven2CommandDecorator
extends AbstractCommandDecorator<Maven2Builder>

Abstract maven 2 command decorator. Added value is in the addArgument(java.util.List, java.lang.String) method.


Constructor Summary
protected AbstractMaven2CommandDecorator()
           
 
Method Summary
protected  java.util.List<java.lang.String> addArgument(java.util.List<java.lang.String> args, java.lang.String argument)
          Argument is added to the beginning of command line.
 
Methods inherited from class com.atlassian.bamboo.command.AbstractCommandDecorator
canDecorate, getBuildContext, getCommand, init, quoteArgument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.command.CommandDecorator
decorateArguments
 

Constructor Detail

AbstractMaven2CommandDecorator

protected AbstractMaven2CommandDecorator()
Method Detail

addArgument

@NotNull
protected java.util.List<java.lang.String> addArgument(@NotNull
                                                               java.util.List<java.lang.String> args,
                                                               @NotNull
                                                               java.lang.String argument)
Argument is added to the beginning of command line. On Windows the command line starts with \c call mvn.bat therefore options shall be added starting from index 3

Parameters:
args - Commandline arguments
argument - Argument to be added to commandline
Returns:
Commandline arguments with new argument prepended.


Copyright © 2010 Atlassian. All Rights Reserved.