Set language-level to 5.0 when JDK is 1.5.0 (or bigger)
-------------------------------------------------------

         Key: MPIDEA-24
         URL: http://jira.codehaus.org/browse/MPIDEA-24
     Project: maven-idea-plugin
        Type: Improvement
    Versions: 1.5    
 Environment: Maven 1.0.2
Windows XP (SP1)
    Reporter: Wim Deblauwe


When generating a project file, the language-level is not set according to the 
JDK version that is used. This requires a small change in the 
ProjectRootManager (in the project.jelly). I would propose the following 
mappings:

* before 1.4:
<component name="ProjectRootManager" version="2" assert-keyword="false" 
jdk-15="false" />

* after 1.4 and before 1.5:
<component name="ProjectRootManager" version="2" assert-keyword="true" 
jdk-15="false" />

* after 1.5:
<component name="ProjectRootManager" version="2" assert-keyword="true" 
jdk-15="true" />


Maybe this setting needs to be overridable via a property?







-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to