| Summary: | Classpath issues with IVY | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Cliff DeCarlo <cdecarlo> |
| Component: | WindowBuilder | Assignee: | Konstantin Scheglov <Konstantin.Scheglov> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | clayberg, nicolas.lalevee, schlm3 |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Cliff DeCarlo
WindowBuilder basically uses JDT to ask classpath.
Does IVY provide this classpath correctly to JDT?
public static String[] getClasspath(IJavaProject javaProject) throws Exception {
List<String> locations = Lists.newArrayList();
// prepare unresolved class path
IRuntimeClasspathEntry[] unresolvedEntries =
JavaRuntime.computeUnresolvedRuntimeClasspath(javaProject);
// resolve each entry
for (int unresolvedIndex = 0; unresolvedIndex < unresolvedEntries.length; unresolvedIndex++) {
IRuntimeClasspathEntry enresolvedEntry = unresolvedEntries[unresolvedIndex];
IRuntimeClasspathEntry[] resolvedEntries =
JavaRuntime.resolveRuntimeClasspathEntry(enresolvedEntry, javaProject);
for (int resolvedIndex = 0; resolvedIndex < resolvedEntries.length; resolvedIndex++) {
IRuntimeClasspathEntry resolvedEntry = resolvedEntries[resolvedIndex];
String location = resolvedEntry.getLocation();
if (location != null) {
location = location.replace('\\', '/');
locations.add(location);
}
}
}
// convert into array
return locations.toArray(new String[locations.size()]);
}
Do you run your application using _normal_ JDT launch configuration, or IVY specific one?
WindowBuilder works with PDE classpath container without special tweaks (except of support for fragments).
So, I think that if it does not work for IVY, then may be IVY missing something.
I don't have time to learn IVY now.
If you can provide small workspace, which I can just extract and use with Eclipse + extracted manually downloaded IVY, then I could check this.
Full Eclipse + IVY + workspace would be even better, but it may be too big, so this may be problem for you to host it.
This problem has been reported to ivyDE project, but was closed since they say that "WindowBuilder" is likey to do it wrong... See https://issues.apache.org/jira/browse/IVYDE-337#comment-13748341 It was a bug in IvyDE. I don't know which, the trunk is working but the last released version don't. |