Cannot execute SCM from Ant build script while RTC is running, message is "Another RCP application is running in this sandbox", exit code 27
Hello, I'm running SCM command from within my Ant build script, something like this: <exec executable="${scm.home}\scm.exe" failonerror="true"> <arg value="checkin"/> 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? Thank you!
|
2 answers
This article describes a possible solution https://jazz.net/library/article/533
Comments
Vladislav Ponomarev
commented Nov 20 '12, 5:37 a.m.
I'm running Windows 7, the file system is not NFS. As I understand your link, it proposes to stop using NFS file system, which is already done in my case. Any other suggestions? Thank you. |
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 |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.