Class BazaarUtils
java.lang.Object
org.apache.maven.scm.provider.bazaar.BazaarUtils
Common code for executing bazaar commands.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classGet current (working) revision. -
Field Summary
FieldsModifier and TypeFieldDescriptionDefault exit codes for entries not in exitCodeMapMap between command and its valid exit codes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static org.codehaus.plexus.util.cli.Commandlinestatic ScmResultstatic ScmResultexecute(BazaarConsumer consumer, ScmLogger logger, File workingDir, String[] cmdAndArgs) (package private) static intexecuteCmd(BazaarConsumer consumer, org.codehaus.plexus.util.cli.Commandline cmd) static String[]expandCommandLine(String[] cmdAndArgs, ScmFileSet additionalFiles) static intgetCurrentRevisionNumber(ScmLogger logger, File workingDir)
-
Field Details
-
EXITCODEMAP
Map between command and its valid exit codes -
DEFAULTEEXITCODES
Default exit codes for entries not in exitCodeMap
-
-
Constructor Details
-
BazaarUtils
private BazaarUtils()
-
-
Method Details
-
execute
public static ScmResult execute(BazaarConsumer consumer, ScmLogger logger, File workingDir, String[] cmdAndArgs) throws ScmException - Throws:
ScmException
-
buildCmd
static org.codehaus.plexus.util.cli.Commandline buildCmd(File workingDir, String[] cmdAndArgs) throws ScmException - Throws:
ScmException
-
executeCmd
static int executeCmd(BazaarConsumer consumer, org.codehaus.plexus.util.cli.Commandline cmd) throws ScmException - Throws:
ScmException
-
execute
- Throws:
ScmException
-
expandCommandLine
-
getCurrentRevisionNumber
- Throws:
ScmException
-