How can I run scm commands on a sandbox that is open in RTC Eclipse client?
Problem running 'show status':
Could not initialize data area. Could not lock C:\sandboxes\example - locked by other process.
I guess this is because RTC Eclipse client creates a lock file (C:\sandboxes\example\.jazz5\.jazzlock) in the sandbox that indicates to the lscm command that access to this sandbox is not allowed.
Is there a way to access those sandboxes by command line interface even though they are locked by RTC Eclipse client? Or is there any other way to operate SCM from a script that does not have this sandbox locking problem?
Background/Why do I need this? We are developing "core" scripts that are under SCM version control. We have users that write their own scripts but use our "core" scripts. Our development environment is eclipse. We have the requirement that the core scripts shall check if they are part of a certain baseline and do certain actions if not (i.e. if they are too old or modified by the users).
One answer
Comments
scm daemon stop -a
Daemon successfully terminated
Start eclipse
scm ls daemon
Port Description
55395 org.eclipse.ui.ide.workbench
C:\sandboxes\example
lscm show status
<nothing>
Problems deregistering sandbox C:/sandboxes/example com.ibm.team.filesystem.client.FileSystemException: Unable to deregister sandbox because there are shared Eclipse projects in it
Sandbox registered.
lscm show status
<again nothing>
lscm show status
will finally show me the status of workspace and components.
Is there any way to tell the lscm commands to use the existing eclipse daemon?
After closing eclipse and then running
lscm show status
Please see Shashi's original answer:
"lscm show status" works and I get the status of workspace and components.
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Feb 05 '19, 8:16 a.m.As far as I can tell, you cannot.