Attaching source files to Java project Follow
Hi all!
I am evaluating IntelliJ Idea 8.1 and now I have an issue I haven't solved yet.
Now I have a web project, which is based on Stripes Framework (http://www.stripesframework.org/). I want to see the Stripes source code and JavaDoc in my project so when I am using Stripes I can follow easily to the internals of Stripes. This is also good when debugging the project.
I tried to add a new source folder to the project which contains the Stripes source code but then IntelliJ Idea tries to compile Stripes' source code when I rebuild the project, which is something I don't want to do. The only thing I want is to add source code and JavaDoc of Stripes Framework to my project for development purposes (to see how the actual function is documented / implemented).
Can anyone help me?
Cheers,
Pekka
Please sign in to leave a comment.
Hello Pekka,
If you have added Stripes as a module library, you can go to Project Structure
| Modules | ]]> | Dependencies, select the node for the .jar file,
press "Edit..." button and press "Attach Sources..." and "Attach JavaDoc..."
in the dialog that appears.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Also in 8.1... I've attached sources to a jar, but it doesn't seem to "take." When I <CTL>-Click a classname, for example, it still takes me to the de-compiled stub source. When attaching sources, I use the absolute path to the parent directory where the package structure starts. The libraries were added to my module by the Maven integration, if that makes a difference. Any ideas for me?
- John