Reputation: 842
The project I'm working on is built by a complex set of shell and ant scripts.
The build can be runed externally or from within ItelliJ as external tool.
1) How do I tell IntelliJ not to build my project?
I want to launch the build manually.
2) How do I tell IntelliJ the location of my class files? Classpath?
Setting CLASSPATH as an environment variable in the run configuration seems not to have any effect.
My goal is to be able to debug the code inside IntelliJ.
Thanks in advance!
Upvotes: 1
Views: 1917
Reputation: 5950
I'm providing the answer for Intellij IDEA 12 here. It is basically the same for earlier versions, though it has been changed slightly.
You have at least two options to achieve your goal:
I'll provide a quick overview on both.
How to tell IntelliJ IDEA not to build.
Run > Edit Configurations
from the menu.How to modify the classpath
You do this for both the project and for each individual module.
First, select File > Project structure
from the menu.
Project:
Project
in the left side menu. Module:
Modules
in the left side menu. Debug remote process
In this case you simply start your remote java process with debug options. These options differ a bit for different versions of java, but IntelliJ will tell you the correct flags to use for each version.
Run > Edit Configurations
from the menu.Upvotes: 1