Ticket #273 (new defect)

Opened 9 months ago

Last modified 5 months ago

Support installing OTDT outside eclipse dir

Reported by: stephan Owned by: stephan
Priority: major Milestone:
Component: provisioning Version: 1.3.0M4
Keywords: Cc:

Description (last modified by stephan) (diff)

When installing the OTDT without write permissions for the eclipse installation directory, everything seems to be cleanly installed into ${user.dir}/.eclipse/org.eclipse.platform_3.5.0_xyz, however, launching that installation reports

!ENTRY org.objectteams.otequinox.internal.hook 1 0 2009-06-25 01:09:07.177
!MESSAGE Created equinox adaptor hook: org.objectteams.otequinox.internal.hook.TransformerHook.
        (To disable this and subsequent INFO messages from OT/Equinox set otequinox.debug to WARN or ERROR).

!ENTRY org.objectteams.otequinox.internal.hook 4 0 2009-06-25 01:09:09.882
!MESSAGE Bundle org.objectteams.otequinox not found

The first entry signals that the hook configurator has been picked up correctly, i.e., the org.objectteams.otequinox.hook fragments seems to work (due to the fix for Eclipse bug 257178, I assume).

The second entry signals that the fragment then doesn't find the regular plugin -- from this piece of code:

        private void startTransformerBundle() {
                if (this.otEquinoxBundle != null)
                        return;         
                this.otEquinoxBundle = startBundle(TRANSFORMER_PLUGIN_ID, true);
                // .....
        }

        private Bundle startBundle(String bundleID, boolean logError) {
                Bundle[] candidates = packageAdmin.getBundles(bundleID, null);
                if (candidates == null) {
                        if (logError)
                                this.logger.log(ILogger.ERROR, "Bundle "+bundleID+" not found");
                // ...

The required bundle is installed in ${user.dir}/.eclipse/org.eclipse.platform_3.5.0_xyz/plugins.

Looking at about -> installation details, the transformer hook is the only plugin of the OTDT that is listed.

Change History

Changed 9 months ago by stephan

Update: when

  • installing OT/Equinox into the eclipse installation dir,
  • then switching to a user without write permissions in that installation dir,
  • then installing the rest of the OTDT

that last installation step remains futile, too. (No errors reported, though).

Changed 9 months ago by stephan

I filed Eclipse bug 281510 with some more details on different variants / order of installation steps.

I found the following steps to work:

  • As a user who has write permissions to the eclipse installation install "OTDT Core Patch Feature" (needs deselecting "Group items by category")
  • Switch to your regular user and install everything else

Changed 5 months ago by stephan

  • description modified (diff)

Related to, but still different from #317.

Note: See TracTickets for help on using tickets.