Cannot execute SCM from Ant build script while RTC is running, message is "Another RCP application is running in this sandbox", exit code 27
Vladislav Ponomarev (1) | asked Nov 16 '12, 4:57 a.m.
I'm running SCM command from within my Ant build script, something like this:
This build script is launched from RTC client and fails with following message:
Another RCP application is running in this sandbox. File locked at file:D:\Workspaces\rtc.workspace
And <exec> returns code 27.
I ultimately need to run this script not in a stand-alone manner, but from RTC. If I deregister the sandbox reported as locked from RTC Eclipse daemon, it will no longer show pending changes which is definitely not what I want.
Any suggestions how to work around this?
Chris McGee (199●1●1●9) | answered Nov 20 '12, 8:58 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Is d:\Workspaces\rtc.workspace the workspace you choose when you run the RTC eclipse client?
If so, it will have a lock on this sandbox blocking other clients from managing that sandbox (e.g. scm.exe).
Two potential solutions:
1) Run lscm.bat instead of "scm.exe" to do the checkin
-lscm will contact your RTC eclipse client to perform the checkin
2) Use a separate sandbox and repository workspace
-Use scm.exe to load a repository workspace into a separate sandbox (e.g. c:\Workspaces\sandbox1)
-Make changes to the files in that sandbox
-Use scm.exe to check in those changes and deliver them