Class PerforceTagCommand
- java.lang.Object
-
- org.apache.maven.scm.command.AbstractCommand
-
- org.apache.maven.scm.command.tag.AbstractTagCommand
-
- org.apache.maven.scm.provider.perforce.command.tag.PerforceTagCommand
-
- All Implemented Interfaces:
Command
,PerforceCommand
public class PerforceTagCommand extends AbstractTagCommand implements PerforceCommand
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
actualRepoLocation
private static java.lang.String
NEWLINE
-
Constructor Summary
Constructors Constructor Description PerforceTagCommand()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
createLabel(ScmProviderRepository repo, ScmFileSet files, java.lang.String tag, PerforceTagConsumer consumer, boolean lock)
static org.codehaus.plexus.util.cli.Commandline
createLabelCommandLine(PerforceScmProviderRepository repo, java.io.File workingDirectory)
java.lang.String
createLabelSpecification(PerforceScmProviderRepository repo, java.lang.String tag, boolean lock)
static org.codehaus.plexus.util.cli.Commandline
createLabelsyncCommandLine(PerforceScmProviderRepository repo, java.io.File workingDirectory, ScmFileSet files, java.lang.String tag)
protected ScmResult
executeTagCommand(ScmProviderRepository repo, ScmFileSet files, java.lang.String tag, java.lang.String message)
protected ScmResult
executeTagCommand(ScmProviderRepository repo, ScmFileSet files, java.lang.String tag, ScmTagParameters scmTagParameters)
private boolean
shouldLock()
private void
syncLabel(ScmProviderRepository repo, ScmFileSet files, java.lang.String tag, PerforceTagConsumer consumer)
-
Methods inherited from class org.apache.maven.scm.command.tag.AbstractTagCommand
executeCommand
-
Methods inherited from class org.apache.maven.scm.command.AbstractCommand
execute, getLogger, setLogger
-
-
-
-
Field Detail
-
actualRepoLocation
private java.lang.String actualRepoLocation
-
NEWLINE
private static final java.lang.String NEWLINE
- See Also:
- Constant Field Values
-
-
Method Detail
-
executeTagCommand
protected ScmResult executeTagCommand(ScmProviderRepository repo, ScmFileSet files, java.lang.String tag, java.lang.String message) throws ScmException
- Overrides:
executeTagCommand
in classAbstractTagCommand
- Parameters:
repo
- TODOfiles
- TODOtag
- TODOmessage
- TODO- Returns:
- TODO
- Throws:
ScmException
- if any
-
executeTagCommand
protected ScmResult executeTagCommand(ScmProviderRepository repo, ScmFileSet files, java.lang.String tag, ScmTagParameters scmTagParameters) throws ScmException
- Specified by:
executeTagCommand
in classAbstractTagCommand
- Throws:
ScmException
-
shouldLock
private boolean shouldLock()
-
syncLabel
private void syncLabel(ScmProviderRepository repo, ScmFileSet files, java.lang.String tag, PerforceTagConsumer consumer)
-
createLabel
private void createLabel(ScmProviderRepository repo, ScmFileSet files, java.lang.String tag, PerforceTagConsumer consumer, boolean lock)
-
createLabelCommandLine
public static org.codehaus.plexus.util.cli.Commandline createLabelCommandLine(PerforceScmProviderRepository repo, java.io.File workingDirectory)
-
createLabelsyncCommandLine
public static org.codehaus.plexus.util.cli.Commandline createLabelsyncCommandLine(PerforceScmProviderRepository repo, java.io.File workingDirectory, ScmFileSet files, java.lang.String tag)
-
createLabelSpecification
public java.lang.String createLabelSpecification(PerforceScmProviderRepository repo, java.lang.String tag, boolean lock)
-
-