com.atlassian.bamboo.builder.maven
Class AbstractMavenCommandDecorator

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

public abstract class AbstractMavenCommandDecorator
extends AbstractCommandDecorator<AbstractMavenBuilder>

Abstract class for Maven 1.X & 2.X command decorators


Constructor Summary
protected AbstractMavenCommandDecorator()
           
 
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

AbstractMavenCommandDecorator

protected AbstractMavenCommandDecorator()
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.