Weirdness with classpath/sourcepath order

Has anyone else used a set-up like this?

I am using a library that has classes in it (in .jar form). It works
correctly. I have another library that has only the source files for
the first library. I used to be able to order the "source" library
before the "classes" library. This would allow the code to compile, but
also allow navigation to the source files via CTRL-left click. This
doesn't work anymore (at least not for me).

The reason I am not linking the source files into the library is that it
is a module library in a web module (/WEB-INF/lib).

--
Norris Shelton
Sun Certified Java Programmer

3 comments
Comment actions Permalink

I logged a bug for exactly this a while ago (sorry - can't find it at the
moment - does anyone else have problems finding their own bugs - the search
never works for me!) but it was closed by the IntelliJ guys as a "do not
fix". The reason they gave is that you can't guarantee the class files in
the first library match the source files in the second library. I have to
admit I disagree with this assessment (and it didn't used to be a problem in
version 3.0). I now have all source/class/JavaDoc links in the same library
(which I didn't want to have to do - for similar reasons to yours - you
often want the binaries in one library and the source/JavaDoc in a separate
library for a variety of reasons).

Would be interested to see if you find a neater workaround :)

Cheers,

TicH

"Norris Shelton" <i.hate.spam@yahoo.com> wrote in message
news:c7daah$p7n$1@is.intellij.net...

Has anyone else used a set-up like this?

>

I am using a library that has classes in it (in .jar form). It works
correctly. I have another library that has only the source files for
the first library. I used to be able to order the "source" library
before the "classes" library. This would allow the code to compile, but
also allow navigation to the source files via CTRL-left click. This
doesn't work anymore (at least not for me).

>

The reason I am not linking the source files into the library is that it
is a module library in a web module (/WEB-INF/lib).

>

--
Norris Shelton
Sun Certified Java Programmer

>


0
Comment actions Permalink

On 06-05-2004 15:33, Richard Kent wrote:

I logged a bug for exactly this a while ago (sorry - can't find it at the
moment - does anyone else have problems finding their own bugs - the search
never works for me!)


You probably mean this bug:
http://www.intellij.net/tracker/idea/viewSCR?publicId=30173

I have setup a filter called "My Bugs" for this. It filters on
"Submitted by" equals "Bas Leijdekkers". Every time I want to search out
my own bugs I just have to select the filter in the search page.
Searching for your name revealed your bugs perfectly.

Bas

0
Comment actions Permalink

I had this big long explanation of why I just had to have this fixed.
No more.


The problem is that most web developers (myself included) are used to
having the .jars in the /WEB-INF/lib of my project folder.

No more.

Throw all of your jars into some communal library (or library structure
- think global library). If the library is global, you can associate
source code with it, etc.

Then, just add it as a global library and it will default to deploy.

The library will NOT be in your project folder (e.g. webroot), but will
be in the Deployment View.

Now, if you are not using a web module - all bets are off. I have a
request for the ability to jar (deploy) regular java modules, but it
hasn't happened.

http://www.intellij.net/tracker/idea/viewSCR?publicId=27577

Norris Shelton
Sun Certified Java Programmer




Bas Leijdekkers wrote:

On 06-05-2004 15:33, Richard Kent wrote:

>
>> I logged a bug for exactly this a while ago (sorry - can't find it at
>> the
>> moment - does anyone else have problems finding their own bugs - the
>> search
>> never works for me!)
>
>

You probably mean this bug:
http://www.intellij.net/tracker/idea/viewSCR?publicId=30173

>

I have setup a filter called "My Bugs" for this. It filters on
"Submitted by" equals "Bas Leijdekkers". Every time I want to search
out my own bugs I just have to select the filter in the search page.
Searching for your name revealed your bugs perfectly.

>

Bas

0

Please sign in to leave a comment.