com.atlassian.maven.plugins.sourcerelease.util
Class DefaultScriptHelper
java.lang.Object
com.atlassian.maven.plugins.sourcerelease.util.DefaultScriptHelper
- All Implemented Interfaces:
- ScriptHelper
- Direct Known Subclasses:
- PosixScriptHelper, WindowsScriptHelper
public abstract class DefaultScriptHelper
- extends java.lang.Object
- implements ScriptHelper
|
Constructor Summary |
DefaultScriptHelper(java.io.File directory,
java.lang.String filename,
boolean withTests)
|
|
Method Summary |
protected void |
addToMavenCommands(java.lang.String extraArgs)
|
void |
includeSettingsFile(java.lang.String sourceFilename,
java.lang.String destFilename)
Copies a maven settings file for inclusion in the source distribution. |
void |
writeScript()
Writes the stored script info out to file |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filename
protected java.lang.String filename
directory
protected java.io.File directory
fileWriter
protected java.io.FileWriter fileWriter
preliminaryLines
protected java.util.List<java.lang.String> preliminaryLines
commands
protected java.util.List<java.lang.String> commands
betweenEachCommand
protected java.lang.String betweenEachCommand
newLine
protected java.lang.String newLine
appendToMavenCommands
protected java.lang.String appendToMavenCommands
extraCli
protected java.lang.String extraCli
DefaultScriptHelper
public DefaultScriptHelper(java.io.File directory,
java.lang.String filename,
boolean withTests)
writeScript
public void writeScript()
throws java.io.IOException
- Description copied from interface:
ScriptHelper
- Writes the stored script info out to file
- Specified by:
writeScript in interface ScriptHelper
- Throws:
java.io.IOException
addToMavenCommands
protected void addToMavenCommands(java.lang.String extraArgs)
includeSettingsFile
public void includeSettingsFile(java.lang.String sourceFilename,
java.lang.String destFilename)
throws java.io.IOException
- Description copied from interface:
ScriptHelper
- Copies a maven settings file for inclusion in the source distribution.
- Specified by:
includeSettingsFile in interface ScriptHelper
- Throws:
java.io.IOException
Copyright © 2012 Atlassian. All Rights Reserved.