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

How to get custom ILinkType registered by ILinkTypeRegistry

We define some custom ILinkType IDs to use in our own RTC extensions:
<plugin>
      <extension point="com.ibm.team.repository.common.linkTypes">
            <linkType constrained="true" id="it.secservizi.rtc.common.linktype.parentbuild" internal="false">
            // [...]
            </linkType>
      </extension>
</plugin>
We have a Plain Java Client packaged as JAR and we need to refer to these link types. If we add our plug-in to the classpath definied in the MANIFEST.MF file from JAR:
Class-Path: . lib/it.secservizi.rtc.common_4.0.7.jar
the ILinkType are not registered by the ILinkTypeRegistry instance at runtime.
Instead, we have to explicity add our plug-in to the Java classpath:
java -cp .;lib/it.secservizi.rtc.common_4.0.7.jar -jar it.secservizi.rtc.client_4.0.7.jar
to get our plug-in parsed by the ILinkTypeRegistry instance at runtime.
Any advice? We would be able to declare all the dependencies for our client in to the MANIFEST.MF file of the JAR.
Thanks in advance.

1 vote



One answer

Permanent link
Far as I know, the plugin approach is the only one that works today.

I know there was an enhancement request for dynamic addition of LinkTypes, but I can't find it

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
× 10,941
× 169
× 14

Question asked: Aug 03 '15, 9:33 a.m.

Question was seen: 3,381 times

Last updated: Aug 03 '15, 5:09 p.m.

Confirmation Cancel Confirm