Attaching an entire directory of source jars

I have a project like this:

proj/
--lib/
-


lib_1.jar
-


lib_2.jar
--lib-src/
-


lib1_src.jar
-


lib2_src.jar
--src/
...

I configured a project library as a dependency, and added the entire lib directory just once using "Attach Jar Directories". That works fine.

But clicking on "Attach Sources" and then just picking the lib-src directory doesn't seem to work -- I have to explicitly select lib_src1.jar, lib_src2.jar etc.

Am I doing something wrong? Obviously in real life there are a lot more dependencies, with changing version numbers, so being able to pick just the directory would save a lot of time.

Thanks.

1 comment

Am I doing something wrong? Obviously in real life there are a lot more dependencies, with changing version numbers, so being able
to pick just the directory would save a lot of time.


Nope, you got it right. Sources must be added on per-jar basis.

--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"


"Dave Shields" <no_reply@jetbrains.com> wrote in message news:22064365.1194885927848.JavaMail.itn@is.intellij.net...
>I have a project like this:
>

proj/
--lib/
----lib_1.jar
----lib_2.jar
--lib-src/
----lib1_src.jar
----lib2_src.jar
--src/
..

>

I configured a project library as a dependency, and added the entire lib directory just once using "Attach Jar Directories". That
works fine.

>

But clicking on "Attach Sources" and then just picking the lib-src directory doesn't seem to work -- I have to explicitly select
lib_src1.jar, lib_src2.jar etc.

>

Am I doing something wrong? Obviously in real life there are a lot more dependencies, with changing version numbers, so being able
to pick just the directory would save a lot of time.

>

Thanks.



0

Please sign in to leave a comment.