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

java.lang.Object
  extended by 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


Field Summary
protected  java.lang.String appendToMavenCommands
           
protected  java.lang.String betweenEachCommand
           
protected  java.util.List<java.lang.String> commands
           
protected  java.io.File directory
           
protected  java.lang.String extraCli
           
protected  java.lang.String filename
           
protected  java.io.FileWriter fileWriter
           
protected  java.lang.String newLine
           
protected  java.util.List<java.lang.String> preliminaryLines
           
 
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
 
Methods inherited from interface com.atlassian.maven.plugins.sourcerelease.util.ScriptHelper
addCommand, addCommand, addCurrentDirToPath, addLocalRepoLine, addOtherPreliminaryLine, addSettingsLine, useErrorMode
 

Field Detail

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
Constructor Detail

DefaultScriptHelper

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

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.