multiple execution classpaths

Is it possible to setup an 'application' or 'junit' configuration on the Run dialog to use a classpath other than the project classpath? I frequently use different classpaths for testing and running.

4 comments

This has been discussed and begged for in the past. However, I can't
seem to find a tracker issue for this. Hmm, I can't believe I did not
create one. If you don't I will. There is hardly a day that goes by
where I'm not hacking the project classpath just to do something
specific to a run target.

Greg Holmes wrote:

Is it possible to setup an 'application' or 'junit' configuration on the Run dialog to use a classpath other than the project classpath? I frequently use different classpaths for testing and running.


0

Maybe this what you're looking for:

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

Please vote for it. Nobody from IntelliJ seems to care about it. At least nobody shows it.

0

There is no direct way but you may use workaround:

Assuming you have an application class MyApp in module AppModule.
Add new module (TestModule) to the project.
Make TestModule depends on AppModule.
Configure TestModule as you like.
Go to Run/Debug Configurations dialog and select TestModule in Module
combobox for your application (or test).

--
Best regards,
Dmitry Peshehonov
JetBrains, Inc, http://www.intellij.com

"Develop with pleasure!"

"Greg Holmes" <no_mail@jetbrains.com> wrote in message
news:14893391.1070812830985.JavaMail.javamailuser@localhost...

Is it possible to setup an 'application' or 'junit' configuration on the

Run dialog to use a classpath other than the project classpath? I
frequently use different classpaths for testing and running.


0


Daniel Moldovan wrote:

Maybe this what you're looking for:

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


I really don't want a project wide extended classpath, but rather the
ability to set it for a specific run target.

0

Please sign in to leave a comment.