com.atlassian.bamboo.builder.ant
Class AbstractAntCommandDecorator

java.lang.Object
  extended by com.atlassian.bamboo.command.AbstractCommandDecorator<AntBuilder>
      extended by com.atlassian.bamboo.builder.ant.AbstractAntCommandDecorator
All Implemented Interfaces:
CommandDecorator, BambooPluginModule
Direct Known Subclasses:
IsolatedTmpDirAntCommandDecorator

public abstract class AbstractAntCommandDecorator
extends AbstractCommandDecorator<AntBuilder>


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

AbstractAntCommandDecorator

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