com.atlassian.maven.plugins.sourcerelease.util
Class WindowsScriptHelper

java.lang.Object
  extended by com.atlassian.maven.plugins.sourcerelease.util.DefaultScriptHelper
      extended by com.atlassian.maven.plugins.sourcerelease.util.WindowsScriptHelper
All Implemented Interfaces:
ScriptHelper

public class WindowsScriptHelper
extends DefaultScriptHelper
implements ScriptHelper


Field Summary
 
Fields inherited from class com.atlassian.maven.plugins.sourcerelease.util.DefaultScriptHelper
appendToMavenCommands, betweenEachCommand, commands, directory, extraCli, filename, fileWriter, newLine, preliminaryLines
 
Constructor Summary
WindowsScriptHelper(java.io.File directory, java.lang.String filename, boolean withTests)
           
 
Method Summary
 void addCommand(java.lang.String command, boolean isMaven, boolean takesExtraCli)
          Adds a command without any arguments
 void addCommand(java.lang.String command, java.lang.String arguments, boolean isMaven, boolean takesExtraCli)
          Adds a command with arguments
 void addCurrentDirToPath()
          Adds a command to put the current directory in the system path
 void addLocalRepoLine(java.lang.String localRepoFilename)
          Adds "-Dmaven.repo.local=localRepoFilename" to all maven commands
 void addOtherPreliminaryLine(java.lang.String line)
          Allows adding of extra commands before the main project commands
 void addSettingsLine(java.lang.String settingsFilename)
          Adds a "-s settingsFilename" to all maven commands
 void useErrorMode()
          Makes the script halt on the first error rather than plowing on
 
Methods inherited from class com.atlassian.maven.plugins.sourcerelease.util.DefaultScriptHelper
addToMavenCommands, includeSettingsFile, writeScript
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.maven.plugins.sourcerelease.util.ScriptHelper
includeSettingsFile, writeScript
 

Constructor Detail

WindowsScriptHelper

public WindowsScriptHelper(java.io.File directory,
                           java.lang.String filename,
                           boolean withTests)
Method Detail

addSettingsLine

public void addSettingsLine(java.lang.String settingsFilename)
Description copied from interface: ScriptHelper
Adds a "-s settingsFilename" to all maven commands

Specified by:
addSettingsLine in interface ScriptHelper

addLocalRepoLine

public void addLocalRepoLine(java.lang.String localRepoFilename)
Description copied from interface: ScriptHelper
Adds "-Dmaven.repo.local=localRepoFilename" to all maven commands

Specified by:
addLocalRepoLine in interface ScriptHelper

addCurrentDirToPath

public void addCurrentDirToPath()
Description copied from interface: ScriptHelper
Adds a command to put the current directory in the system path

Specified by:
addCurrentDirToPath in interface ScriptHelper

useErrorMode

public void useErrorMode()
Description copied from interface: ScriptHelper
Makes the script halt on the first error rather than plowing on

Specified by:
useErrorMode in interface ScriptHelper

addOtherPreliminaryLine

public void addOtherPreliminaryLine(java.lang.String line)
Description copied from interface: ScriptHelper
Allows adding of extra commands before the main project commands

Specified by:
addOtherPreliminaryLine in interface ScriptHelper

addCommand

public void addCommand(java.lang.String command,
                       boolean isMaven,
                       boolean takesExtraCli)
Description copied from interface: ScriptHelper
Adds a command without any arguments

Specified by:
addCommand in interface ScriptHelper

addCommand

public void addCommand(java.lang.String command,
                       java.lang.String arguments,
                       boolean isMaven,
                       boolean takesExtraCli)
Description copied from interface: ScriptHelper
Adds a command with arguments

Specified by:
addCommand in interface ScriptHelper


Copyright © 2012 Atlassian. All Rights Reserved.