Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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"/>
  <arg value="myProject/build/run.client.test.sh"/>
  <arg value="-u"/><arg value="…user name…"/>
  <arg value="-P"/><arg value="…password…"/>
</exec>

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!


0 votes



2 answers

Permanent link
This article describes a possible solution https://jazz.net/library/article/533

0 votes

Comments

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.


Permanent link
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

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,202
× 67
× 63

Question asked: Nov 16 '12, 4:57 a.m.

Question was seen: 7,383 times

Last updated: Nov 20 '12, 8:58 p.m.

Confirmation Cancel Confirm