|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.distribution.scriptwriter.AbstractScriptWriter
com.atlassian.distribution.scriptwriter.PosixScriptWriter
public class PosixScriptWriter
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 |
|---|
public PosixScriptWriter(java.io.File directory,
java.lang.String filename,
boolean withTests)
| Method Detail |
|---|
public void addSettingsLine(java.lang.String settingsFilename)
AbstractScriptWriter
addSettingsLine in class AbstractScriptWriterpublic void addLocalRepoLine(java.lang.String localRepoFilename)
AbstractScriptWriter
addLocalRepoLine in class AbstractScriptWriterpublic void addCurrentDirToPath()
AbstractScriptWriter
addCurrentDirToPath in class AbstractScriptWriterpublic void useErrorMode()
AbstractScriptWriter
useErrorMode in class AbstractScriptWriterpublic void addOtherPreliminaryLine(java.lang.String line)
AbstractScriptWriter
addOtherPreliminaryLine in class AbstractScriptWriter
public void addCommand(java.lang.String command,
boolean isMaven,
boolean takesExtraCli)
AbstractScriptWriter
addCommand in class AbstractScriptWriter
public void addCommand(java.lang.String command,
java.lang.String arguments,
boolean isMaven,
boolean takesExtraCli)
AbstractScriptWriter
addCommand in class AbstractScriptWriter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||