com.atlassian.distribution.scriptwriter
Class PosixScriptWriter

java.lang.Object
  extended by com.atlassian.distribution.scriptwriter.AbstractScriptWriter
      extended by com.atlassian.distribution.scriptwriter.PosixScriptWriter

public class PosixScriptWriter
extends AbstractScriptWriter

Script helper for *nix shell script


Field Summary
 
Fields inherited from class com.atlassian.distribution.scriptwriter.AbstractScriptWriter
appendToMavenCommands, betweenEachCommand, commands, directory, extraCli, filename, fileWriter, newLine, preliminaryLines
 
Constructor Summary
PosixScriptWriter(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.distribution.scriptwriter.AbstractScriptWriter
addToMavenCommands, includeSettingsFile, writeScript
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PosixScriptWriter

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

addSettingsLine

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

Specified by:
addSettingsLine in class AbstractScriptWriter

addLocalRepoLine

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

Specified by:
addLocalRepoLine in class AbstractScriptWriter

addCurrentDirToPath

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

Specified by:
addCurrentDirToPath in class AbstractScriptWriter

useErrorMode

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

Specified by:
useErrorMode in class AbstractScriptWriter

addOtherPreliminaryLine

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

Specified by:
addOtherPreliminaryLine in class AbstractScriptWriter

addCommand

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

Specified by:
addCommand in class AbstractScriptWriter

addCommand

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

Specified by:
addCommand in class AbstractScriptWriter


Copyright © 2014 Atlassian. All Rights Reserved.