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

SCM add-comp

Hi, I'm using ant to delete and add components to a workspace. Getting an "Ambiguous component" error. Is there a way to identify rtc.component_1 + rtc.component_2 come from stream_a and the remaining components come from stream_b?

        <exec executable="${rtc.scm}" failonerror="true">
            <arg value="workspace"/>
            <arg value="add-comp"/>
            <arg value="-r"/>
            <arg value="${rtc.login.alias}"/>
            <arg value="${rtc.workspace}" />
            <arg value="${rtc.component_1}" />
            <arg value="${rtc.component_2}" />
            <arg value="${rtc.component_3}" />
            <arg value="${rtc.component_4}" />
            <arg value="${rtc.component_5}" />
        </exec>

0 votes

Comments

Out of curiosity, why are you adding/removing components from a workspace in a script?

We refactored some code and I did not see refactored code in the WS until I deleted the component and added it back.

Thanks. So you don't run this script repeatedly?


I wonder if a reload would have gotten the content into your sandbox.

I had moved java code which was mistakenly placed in a resource folder to a src folder. The src folder did not exist at the time of move. I ran the build twice and there was no src directory on the server where the code was extracted to. Manually, I removed and added back the the component to the WS. Ran the build and scr directory was there.    


Accepted answer

Permanent link
As you might have figured out the error is caused if there are multiple components with the same name in the repository. One way to deal with this error is to provide an UUID. You can list the components of stream_a and stream_b to get the UUID. For ex: scm -u y list components <workspace name/uuid>

Steven Drogoszewski selected this answer as the correct answer

0 votes

Comments

Thank you Shashikant. I appreciate the help. Steve

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
× 12,019
× 562

Question asked: Feb 06 '15, 8:43 a.m.

Question was seen: 3,444 times

Last updated: Feb 10 '15, 4:53 a.m.

Confirmation Cancel Confirm