You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Wim Deblauwe (JIRA)" <ji...@codehaus.org> on 2005/03/18 09:49:49 UTC

[jira] Created: (MPIDEA-24) Set language-level to 5.0 when JDK is 1.5.0 (or bigger)

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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MPIDEA-24) Set language-level to 5.0 when JDK is 1.5.0 (or bigger)

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPIDEA-24?page=all ]
     
Brett Porter closed MPIDEA-24:
------------------------------

    Resolution: Duplicate

> 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
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org