It's all about the answers!

Ask a question

How to get custom ILinkType registered by ILinkTypeRegistry


SEC Servizi (97122549) | asked Aug 03 '15, 9:33 a.m.
edited Aug 03 '15, 9:36 a.m.
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.

One answer



permanent link
sam detweiler (12.4k6182201) | answered Aug 03 '15, 5:09 p.m.
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

Your answer


Register or to post your answer.