Class SynergyCCM
java.lang.Object
org.apache.maven.scm.provider.synergy.util.SynergyCCM
This class contains methods to execute Synergy
ccm command line.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.codehaus.plexus.util.cli.CommandlinecheckinFiles(List<File> files, String comment, String ccmAddr) Create commandline to checkin a filesetstatic org.codehaus.plexus.util.cli.CommandlinecheckinProject(String projectSpec, String comment, String ccmAddr) Create commandline to checkin a projectstatic org.codehaus.plexus.util.cli.CommandlinecheckinTask(String taskSpecs, String comment, String ccmAddr) Create command line for checkin a taskstatic org.codehaus.plexus.util.cli.CommandlinecheckoutFiles(List<File> files, String ccmAddr) Create commandline to checkout a fileset.static org.codehaus.plexus.util.cli.CommandlinecheckoutProject(File directory, String projectSpec, ScmVersion version, String purpose, String release, String ccmAddr) Create commandline to checkout a projectprivate static voidconfigureEnvironment(org.codehaus.plexus.util.cli.Commandline cl, String ccmAddr) Configure a commandline to use environment variables ($PATH)static org.codehaus.plexus.util.cli.CommandlineCreate command line for adding a fileset to a projectstatic org.codehaus.plexus.util.cli.CommandlineCreate command line for creating a baseline.static org.codehaus.plexus.util.cli.CommandlinecreateTask(String synopsis, String release, boolean defaultTask, String ccmAddr) Create command line for creating a taskstatic org.codehaus.plexus.util.cli.CommandlineCreate command line for deleting file(s).static org.codehaus.plexus.util.cli.CommandlineCreate commandline to get Synergy database delimiterstatic org.codehaus.plexus.util.cli.CommandlineCreate command line to perform a dir on the directory.static org.codehaus.plexus.util.cli.CommandlineCreate commandline for query.static org.codehaus.plexus.util.cli.CommandlinereconcileUdb(String projectSpec, String ccmAddr) Create command line to reconcile a project with udb option.static org.codehaus.plexus.util.cli.CommandlinereconcileUwa(String projectSpec, String ccmAddr) Create command line to reconcile a project with uwa option.static org.codehaus.plexus.util.cli.Commandlinereconfigure(String projectSpec, String ccmAddr) Create commandline to reconfigure a project.static org.codehaus.plexus.util.cli.CommandlinereconfigureProperties(String projectSpec, String ccmAddr) Create commandline to reconfigure properties of a project.static org.codehaus.plexus.util.cli.CommandlinesetDefaultTask(int task, String ccmAddr) Create commandline to set current (i.e.static org.codehaus.plexus.util.cli.CommandlineshowDefaultTask(String ccmAddr) Create commandline to get current (i.e.static org.codehaus.plexus.util.cli.CommandlineshowTaskObjects(int taskNumber, String format, String ccmAddr) Create commandline for getting list of objects in a task.static org.codehaus.plexus.util.cli.CommandlineshowWorkArea(String projectSpec, String ccmAddr) Create commandline to get workarea informations for a given project.static org.codehaus.plexus.util.cli.Commandlinestart(String username, String password, SynergyRole role) Create commandline to start a Synergy sessionstatic org.codehaus.plexus.util.cli.CommandlinestartRemote(String username, String password, SynergyRole role) Create commandline to start a remote Synergy sessionstatic org.codehaus.plexus.util.cli.CommandlineCreate commandline to stop a Synergy sessionstatic org.codehaus.plexus.util.cli.Commandlinesynchronize(String projectSpec, String ccmAddr) Create commandline to synchronize a project
-
Field Details
-
CCM
- See Also:
-
BASELINE
- See Also:
-
CI
- See Also:
-
CO
- See Also:
-
CREATE
- See Also:
-
DELETE
- See Also:
-
DELIMITER
- See Also:
-
DIR
- See Also:
-
QUERY
- See Also:
-
RECONCILE
- See Also:
-
RECONFIGURE
- See Also:
-
RECONFIGURE_PROPERTIES
- See Also:
-
START
- See Also:
-
STOP
- See Also:
-
SYNC
- See Also:
-
TASK
- See Also:
-
WA
- See Also:
-
-
Constructor Details
-
SynergyCCM
public SynergyCCM()
-
-
Method Details
-
showTaskObjects
public static org.codehaus.plexus.util.cli.Commandline showTaskObjects(int taskNumber, String format, String ccmAddr) throws ScmException Create commandline for getting list of objects in a task.- Parameters:
taskNumber- Task number.format- Output format.ccmAddr-- Returns:
- the commandline.
- Throws:
ScmException
-
query
public static org.codehaus.plexus.util.cli.Commandline query(String query, String format, String ccmAddr) throws ScmException Create commandline for query.- Parameters:
query- query.format- Output formatccmAddr-- Returns:
- the command line.
- Throws:
ScmException
-
createBaseline
public static org.codehaus.plexus.util.cli.Commandline createBaseline(String projectSpec, String name, String release, String purpose, String ccmAddr) throws ScmException Create command line for creating a baseline.- Parameters:
projectSpec- project_name~project_versionname- Name of the baselinerelease- the release.purpose- the purpose.ccmAddr-- Returns:
- the command line.
- Throws:
ScmException
-
create
public static org.codehaus.plexus.util.cli.Commandline create(List<File> files, String message, String ccmAddr) throws ScmException Create command line for adding a fileset to a project- Parameters:
files- fileset.message- message log, or null if none.ccmAddr-- Returns:
- the command line.
- Throws:
ScmException
-
createTask
public static org.codehaus.plexus.util.cli.Commandline createTask(String synopsis, String release, boolean defaultTask, String ccmAddr) throws ScmException Create command line for creating a task- Parameters:
synopsis- synopsis.release- release.defaultTask- default.ccmAddr-- Returns:
- the command line.
- Throws:
ScmException
-
checkinTask
public static org.codehaus.plexus.util.cli.Commandline checkinTask(String taskSpecs, String comment, String ccmAddr) throws ScmException Create command line for checkin a task- Parameters:
taskSpecs- task_specs or defaultcomment- comment.ccmAddr-- Returns:
- Throws:
ScmException
-
delete
public static org.codehaus.plexus.util.cli.Commandline delete(List<File> files, String ccmAddr, boolean replace) throws ScmException Create command line for deleting file(s).- Parameters:
files- fileset.ccmAddr-replace- replace with previous version of file ?- Returns:
- Throws:
ScmException
-
reconfigure
public static org.codehaus.plexus.util.cli.Commandline reconfigure(String projectSpec, String ccmAddr) throws ScmException Create commandline to reconfigure a project.- Parameters:
projectSpec-ccmAddr-- Returns:
- the command line.
- Throws:
ScmException
-
reconfigureProperties
public static org.codehaus.plexus.util.cli.Commandline reconfigureProperties(String projectSpec, String ccmAddr) throws ScmException Create commandline to reconfigure properties of a project.- Parameters:
projectSpec-ccmAddr-- Returns:
- Throws:
ScmException
-
reconcileUwa
public static org.codehaus.plexus.util.cli.Commandline reconcileUwa(String projectSpec, String ccmAddr) throws ScmException Create command line to reconcile a project with uwa option.- Parameters:
projectSpec-ccmAddr-- Returns:
- Throws:
ScmException
-
reconcileUdb
public static org.codehaus.plexus.util.cli.Commandline reconcileUdb(String projectSpec, String ccmAddr) throws ScmException Create command line to reconcile a project with udb option.- Parameters:
projectSpec-ccmAddr-- Returns:
- Throws:
ScmException
-
dir
public static org.codehaus.plexus.util.cli.Commandline dir(File directory, String format, String ccmAddr) throws ScmException Create command line to perform a dir on the directory.- Parameters:
directory-format- Output format.ccmAddr-- Returns:
- Throws:
ScmException
-
checkoutFiles
public static org.codehaus.plexus.util.cli.Commandline checkoutFiles(List<File> files, String ccmAddr) throws ScmException Create commandline to checkout a fileset.- Parameters:
files- fileset.ccmAddr-- Returns:
- the command line.
- Throws:
ScmException
-
checkoutProject
public static org.codehaus.plexus.util.cli.Commandline checkoutProject(File directory, String projectSpec, ScmVersion version, String purpose, String release, String ccmAddr) throws ScmException Create commandline to checkout a project- Parameters:
directory- target WA, or null if using default directoryprojectSpec-version- new version of the project, or null if using default Synergy mecanismccmAddr-- Returns:
- Throws:
ScmException
-
checkinProject
public static org.codehaus.plexus.util.cli.Commandline checkinProject(String projectSpec, String comment, String ccmAddr) throws ScmException Create commandline to checkin a project- Parameters:
projectSpec-comment-ccmAddr-- Returns:
- Throws:
ScmException
-
checkinFiles
public static org.codehaus.plexus.util.cli.Commandline checkinFiles(List<File> files, String comment, String ccmAddr) throws ScmException Create commandline to checkin a fileset- Parameters:
files- fileset.comment-ccmAddr-- Returns:
- Throws:
ScmException
-
synchronize
public static org.codehaus.plexus.util.cli.Commandline synchronize(String projectSpec, String ccmAddr) throws ScmException Create commandline to synchronize a project- Parameters:
projectSpec-ccmAddr-- Returns:
- Throws:
ScmException
-
showWorkArea
public static org.codehaus.plexus.util.cli.Commandline showWorkArea(String projectSpec, String ccmAddr) throws ScmException Create commandline to get workarea informations for a given project.- Parameters:
projectSpec-ccmAddr-- Returns:
- Throws:
ScmException
-
stop
Create commandline to stop a Synergy session- Parameters:
ccmAddr-- Returns:
- Throws:
ScmException
-
configureEnvironment
private static void configureEnvironment(org.codehaus.plexus.util.cli.Commandline cl, String ccmAddr) throws ScmException Configure a commandline to use environment variables ($PATH)- Parameters:
cl-ccmAddr-- Throws:
ScmException
-
start
public static org.codehaus.plexus.util.cli.Commandline start(String username, String password, SynergyRole role) throws ScmException Create commandline to start a Synergy session- Parameters:
username-password-role-- Returns:
- Throws:
ScmException
-
startRemote
public static org.codehaus.plexus.util.cli.Commandline startRemote(String username, String password, SynergyRole role) throws ScmException Create commandline to start a remote Synergy session- Parameters:
username-password-role-- Returns:
- Throws:
ScmException
-
delimiter
public static org.codehaus.plexus.util.cli.Commandline delimiter(String ccmAddr) throws ScmException Create commandline to get Synergy database delimiter- Returns:
- Throws:
ScmException
-
showDefaultTask
public static org.codehaus.plexus.util.cli.Commandline showDefaultTask(String ccmAddr) throws ScmException Create commandline to get current (i.e. default) task- Parameters:
ccmAddr- current Synergy session ID- Returns:
- Throws:
ScmException
-
setDefaultTask
public static org.codehaus.plexus.util.cli.Commandline setDefaultTask(int task, String ccmAddr) throws ScmException Create commandline to set current (i.e. default) task- Parameters:
task- the number of the task to set as current taskccmAddr- current Synergy session ID- Returns:
- Throws:
ScmException
-