Glboal JDK instead of project JDK...

We checkin our ipr files to CVS. This is done so that someone can download the repository, open the ipr and they are ready to go. The JDK is set at the project level. Invariably, the JDK setting in the project does not work with the JDK settings on the individual dev machines (multiple JDKs, installation not in the same dirs etc.). What would be nice is, if the project can use the JAVA_HOME as the default JDK for a project unless otherwise specified.

This way the dev team does not have to individually (re)set the JDK configuration.

I am not sure if there is a way of doing this now?

thanks
vinay

3 comments
Comment actions Permalink

One usually chooses some mnemonic name for the JDK like we have 'IDEA jdk'
bound to the idea.ipr.
Then everybody configures JDKs on their dev machine with that name.

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

IDEA only records the JDK name on the .ipr file -- everything else (paths, libraries, etc) is taken from the user's global configuration.

Just standardize on a JDK naming convention. Use names like "JDK 1.4" and "JDK 1.5", or "MyProject JDK", and tell everyone to configure a JDK with that name.

0
Comment actions Permalink

Thanks for the reply. I agree with the solution - it's just that something like JAVA_HOME is guaranteed to be there on 100% of the machines - getting the standardization done across several folks - several OSs, several IDEA version including the EAPs and doing "installs" so often is difficult.

0

Please sign in to leave a comment.