Project

General

Profile

Bug #980

Eclipsoid runtime classpath resolution problem

Added by Henning Blohm over 8 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
z2-base-tools-eclipsoid
Target version:
Start date:
28.02.2013
Due date:
% Done:

0%

Estimated time:
origin:

Description

When computing the runtime classpath of a project the Eclipsoid plugin ignores all
dependency libs that are not of a component <module>/java. So includes are ignored.

See https://redmine.z2-environment.net/projects/z2-base/repository/tools/revisions/d8710472d20794b18d19c842177c4b33350a10c4/entry/com.zfabrik.eclipsoid.plugin/src/com/zfabrik/eclipsoid/plugin/cpcontainer/EclipsoidClasspathEntryResolver.java#L81

#1

Updated by Udo Offermann over 8 years ago

  • Status changed from New to In Progress
I think we have to separate two use cases:
  1. resolve cps for runtime (executing within the IDE)
  2. resolve source files for remote z2 debugging

Eclipse uses the same mechanism for both approaches and Eclipse's default behavior seems to be right for use case #1: The Eclispoid cp container is considered and its entries are correctly resolved.

The same happens during a debug session but here sometimes one need a much broader scope. This has to be investigated further...

#2

Updated by Udo Offermann over 8 years ago

in case of remote debugging:

  1. add all open z2-project sources & libs
  2. add all z2 libs (inside .eclipsoid folder)
#3

Updated by Udo Offermann over 8 years ago

  • Status changed from In Progress to Resolved

resolved with Eclipsoid version 2.2.0.201303051605-alpha

#4

Updated by Udo Offermann over 8 years ago

  • Status changed from Resolved to In Progress

Missing sources within remote debugging.

#5

Updated by Udo Offermann over 8 years ago

published com.zfabrik.eclipsoid.feature_2.2.0.201303190956-alpha.jar

#6

Updated by Udo Offermann over 8 years ago

Eclipsoid does not provide source files from JARs inside referenced projects even if a corresponding source-jar is available

#7

Updated by Henning Blohm over 8 years ago

Anything useful still possible to be done?

#8

Updated by Henning Blohm about 8 years ago

  • Priority changed from High to Normal
  • Target version changed from 2.2 to 14
#9

Updated by Udo Offermann almost 8 years ago

  • Status changed from In Progress to Resolved

Findings so far:
Given two Projects A and B where A needs B.

A is opened in Eclipse, B is not

All resources offered by B are provided by the Eclipsoid servlet /apijars.

A and B are both opened and armed in Eclipse

Java sources in B are visible to referencing projects because Eclipse exports sources automatically.
The Eclipsoid plug-in adds all jars found in all z2-component folders as java library to the classpth. API jars are set as public so that referncing projects will see them. See:

  • IFolder[] libCandidates = getAllZ2ComponentsFolders(jProj); in com.zfabrik.eclipsoid.client.StartEclipsoid#getClassPathEntries(IJavaProject jProj) (line 365)
  • @private IFolder[] getAllZ2ComponentsFolders(IJavaProject jProj) {...} (line 398ff)
#10

Updated by Henning Blohm about 6 years ago

  • Target version changed from 14 to 2.3

Also available in: Atom PDF