Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » JAR prefix path for Java source attachments in Eclipse 3 ?
JAR prefix path for Java source attachments in Eclipse 3 ? [message #95715] Mon, 15 September 2003 08:50 Go to next message
Eclipse UserFriend
With Eclipse 2.1 and before, I could attach Java source code that was inside a
JAR file, underneath a prefix path like "src".

This behavior is described in
http://www.eclipse.org/documentation/html/plugins/org.eclips e.jdt.doc.user/doc/tasks/tasks-115.htm
"In the Root Path field, type or browse to select the prefix path to the source
code stored inside the archive. If you click Browse, you can browse the contents
of the JAR and select its root."

This does not seem to be possible any more in Eclipse3 M2. Has that feature been
moved somehow, or was it abandoned purposefully?

I'm not sure if this has anything to do with the changes in
JavaCore.newLibraryEntry that I've googled up (I just use Eclipse as an IDE, not
on the API level).

https://bugs.eclipse.org/bugs/show_bug.cgi?id=38371

http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/org.ecli pse.jdt.core/buildnotes_jdt-core.html:
"Removed tolerance for relative source attachments in
JavaCore.newLibraryEntry(...). Only allowing relative empty pathes so as to
permit using classpath variables to denote the absence of a source attachment."


The reason why we used the "src" subdirectory inside the JAR files was that Java
code which we generated and immediately compiled, and then packed both .java and
..class files in the same jar file, confused the java runtime. The classloader
tried to get out the .java instead of the .class file, as it had the same
timestamp... of course then complained about it being invalid.
Any easy solutions to that?


Thanks for any insights!
Heiko
Re: JAR prefix path for Java source attachments in Eclipse 3 ? [message #95745 is a reply to message #95715] Mon, 15 September 2003 09:15 Go to previous message
Eclipse UserFriend
The prefix path should be automatically detected now. If it is not in your
case, please enter a bug against JDT/Core with steps to reproduce the
problem.

Jerome

"Heiko Sommer" <hsommer@eso.org> wrote in message
news:bk4cfh$nrd$1@eclipse.org...
> With Eclipse 2.1 and before, I could attach Java source code that was
inside a
> JAR file, underneath a prefix path like "src".
>
> This behavior is described in
>
http://www.eclipse.org/documentation/html/plugins/org.eclips e.jdt.doc.user/d
oc/tasks/tasks-115.htm
> "In the Root Path field, type or browse to select the prefix path to the
source
> code stored inside the archive. If you click Browse, you can browse the
contents
> of the JAR and select its root."
>
> This does not seem to be possible any more in Eclipse3 M2. Has that
feature been
> moved somehow, or was it abandoned purposefully?
>
> I'm not sure if this has anything to do with the changes in
> JavaCore.newLibraryEntry that I've googled up (I just use Eclipse as an
IDE, not
> on the API level).
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=38371
>
>
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/org.ecli pse.jdt.core/bui
ldnotes_jdt-core.html:
> "Removed tolerance for relative source attachments in
> JavaCore.newLibraryEntry(...). Only allowing relative empty pathes so as
to
> permit using classpath variables to denote the absence of a source
attachment."
>
>
> The reason why we used the "src" subdirectory inside the JAR files was
that Java
> code which we generated and immediately compiled, and then packed both
..java and
> .class files in the same jar file, confused the java runtime. The
classloader
> tried to get out the .java instead of the .class file, as it had the same
> timestamp... of course then complained about it being invalid.
> Any easy solutions to that?
>
>
> Thanks for any insights!
> Heiko
>
Previous Topic:org.eclipse.vcm
Next Topic:Forcing the SourceViewer to save its caret position to the IDocument
Goto Forum:
  


Current Time: Fri Apr 25 18:15:29 EDT 2025

Powered by FUDForum. Page generated in 0.04101 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top