You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2005/09/23 07:59:11 UTC

[jira] Created: (MNG-1000) adjust assert and generics settings according to JDK used

adjust assert and generics settings according to JDK used
---------------------------------------------------------

         Key: MNG-1000
         URL: http://jira.codehaus.org/browse/MNG-1000
     Project: Maven 2
        Type: Improvement
  Components: maven-idea-plugin  
 Reporter: Brett Porter
     Fix For: 2.0-beta-3


<maven:get plugin="maven-java-plugin" property="maven.compile.source" var="jdkLevel" />
<j:if test="${empty(jdkLevel)}">
  <j:set var="jdkLevel" value="${java.specification.version}" />
</j:if>
<j:choose>
    <j:when test="${jdkLevel == '1.4'}">
       <component name="ProjectRootManager" version="2" assert-keyword="true" jdk-15="false"/>
    </j:when>
    <j:when test="${jdkLevel.compareTo('1.5') >= 0}">
       <component name="ProjectRootManager" version="2" assert-keyword="true" jdk-15="true"/>
    </j:when>
    <j:otherwise>
       <component name="ProjectRootManager" version="2" assert-keyword="false"/>
    </j:otherwise>
</j:choose>

-- 
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


[jira] Commented: (MNG-1000) adjust assert and generics settings according to JDK used

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1000?page=comments#action_49099 ] 

Brett Porter commented on MNG-1000:
-----------------------------------

patch removed jdk-version and would use the wrong thing for "java version 1.4", among others.
Created my own fix.

> adjust assert and generics settings according to JDK used
> ---------------------------------------------------------
>
>          Key: MNG-1000
>          URL: http://jira.codehaus.org/browse/MNG-1000
>      Project: Maven 2
>         Type: Improvement
>   Components: maven-idea-plugin
>     Reporter: Brett Porter
>     Assignee: Edwin Punzalan
>      Fix For: 2.0.1
>  Attachments: MNG-1000-maven-idea-plugin.patch
>
>
> <maven:get plugin="maven-java-plugin" property="maven.compile.source" var="jdkLevel" />
> <j:if test="${empty(jdkLevel)}">
>   <j:set var="jdkLevel" value="${java.specification.version}" />
> </j:if>
> <j:choose>
>     <j:when test="${jdkLevel == '1.4'}">
>        <component name="ProjectRootManager" version="2" assert-keyword="true" jdk-15="false"/>
>     </j:when>
>     <j:when test="${jdkLevel.compareTo('1.5') >= 0}">
>        <component name="ProjectRootManager" version="2" assert-keyword="true" jdk-15="true"/>
>     </j:when>
>     <j:otherwise>
>        <component name="ProjectRootManager" version="2" assert-keyword="false"/>
>     </j:otherwise>
> </j:choose>

-- 
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


[jira] Closed: (MNG-1000) adjust assert and generics settings according to JDK used

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

     Assign To: Brett Porter  (was: Edwin Punzalan)
    Resolution: Fixed

> adjust assert and generics settings according to JDK used
> ---------------------------------------------------------
>
>          Key: MNG-1000
>          URL: http://jira.codehaus.org/browse/MNG-1000
>      Project: Maven 2
>         Type: Improvement
>   Components: maven-idea-plugin
>     Reporter: Brett Porter
>     Assignee: Brett Porter
>      Fix For: 2.0.1
>  Attachments: MNG-1000-maven-idea-plugin.patch
>
>
> <maven:get plugin="maven-java-plugin" property="maven.compile.source" var="jdkLevel" />
> <j:if test="${empty(jdkLevel)}">
>   <j:set var="jdkLevel" value="${java.specification.version}" />
> </j:if>
> <j:choose>
>     <j:when test="${jdkLevel == '1.4'}">
>        <component name="ProjectRootManager" version="2" assert-keyword="true" jdk-15="false"/>
>     </j:when>
>     <j:when test="${jdkLevel.compareTo('1.5') >= 0}">
>        <component name="ProjectRootManager" version="2" assert-keyword="true" jdk-15="true"/>
>     </j:when>
>     <j:otherwise>
>        <component name="ProjectRootManager" version="2" assert-keyword="false"/>
>     </j:otherwise>
> </j:choose>

-- 
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


[jira] Updated: (MNG-1000) adjust assert and generics settings according to JDK used

Posted by "Edwin Punzalan (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1000?page=all ]

Edwin Punzalan updated MNG-1000:
--------------------------------

    Attachment: MNG-1000-maven-idea-plugin.patch

> adjust assert and generics settings according to JDK used
> ---------------------------------------------------------
>
>          Key: MNG-1000
>          URL: http://jira.codehaus.org/browse/MNG-1000
>      Project: Maven 2
>         Type: Improvement
>   Components: maven-idea-plugin
>     Reporter: Brett Porter
>     Assignee: Edwin Punzalan
>      Fix For: 2.0
>  Attachments: MNG-1000-maven-idea-plugin.patch
>
>
> <maven:get plugin="maven-java-plugin" property="maven.compile.source" var="jdkLevel" />
> <j:if test="${empty(jdkLevel)}">
>   <j:set var="jdkLevel" value="${java.specification.version}" />
> </j:if>
> <j:choose>
>     <j:when test="${jdkLevel == '1.4'}">
>        <component name="ProjectRootManager" version="2" assert-keyword="true" jdk-15="false"/>
>     </j:when>
>     <j:when test="${jdkLevel.compareTo('1.5') >= 0}">
>        <component name="ProjectRootManager" version="2" assert-keyword="true" jdk-15="true"/>
>     </j:when>
>     <j:otherwise>
>        <component name="ProjectRootManager" version="2" assert-keyword="false"/>
>     </j:otherwise>
> </j:choose>

-- 
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