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/08/25 11:14:02 UTC

[jira] Created: (MPPMD-19) Java language level not settable through plugin

Java language level not settable through plugin
-----------------------------------------------

         Key: MPPMD-19
         URL: http://jira.codehaus.org/browse/MPPMD-19
     Project: maven-pmd-plugin
        Type: New Feature
    Versions: 1.7    
 Environment: Windows XP
 Reporter: Wim Deblauwe


The maven plugin does not allow setting the language level (1.3, 1.4 or 1.5) for PMD. This can be easily fixed by using 'targetjdk' property in the plugin script:

Original plugin.jelly (version 1.7):

    <j:choose>
      <j:when test="${sourcesPresent == 'true'}">
        <pmd rulesetfiles="${maven.pmd.rulesetfiles}">
          <formatter type="xml" toFile="${maven.build.dir}/pmd-raw-report.xml"/>
          <fileset dir="${pom.build.sourceDirectory}" 

Change:

    <j:choose>
      <j:when test="${sourcesPresent == 'true'}">
        <pmd rulesetfiles="${maven.pmd.rulesetfiles}" targetjdk="${maven.pmd.targetjdk}>
          <formatter type="xml" toFile="${maven.build.dir}/pmd-raw-report.xml"/>
          <fileset dir="${pom.build.sourceDirectory}" 

By default 'maven.pmd.targetjdk' can be equal to 'maven.compile.source'

regards,

Wim


-- 
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: (MPPMD-19) Java language level not settable through plugin

Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPPMD-19?page=all ]
     
Arnaud Heritier closed MPPMD-19:
--------------------------------

      Assign To: Arnaud Heritier
     Resolution: Fixed
    Fix Version: 1.8

> Java language level not settable through plugin
> -----------------------------------------------
>
>          Key: MPPMD-19
>          URL: http://jira.codehaus.org/browse/MPPMD-19
>      Project: maven-pmd-plugin
>         Type: New Feature

>     Versions: 1.7
>  Environment: Windows XP
>     Reporter: Wim Deblauwe
>     Assignee: Arnaud Heritier
>      Fix For: 1.8

>
>
> The maven plugin does not allow setting the language level (1.3, 1.4 or 1.5) for PMD. This can be easily fixed by using 'targetjdk' property in the plugin script:
> Original plugin.jelly (version 1.7):
>     <j:choose>
>       <j:when test="${sourcesPresent == 'true'}">
>         <pmd rulesetfiles="${maven.pmd.rulesetfiles}">
>           <formatter type="xml" toFile="${maven.build.dir}/pmd-raw-report.xml"/>
>           <fileset dir="${pom.build.sourceDirectory}" 
> Change:
>     <j:choose>
>       <j:when test="${sourcesPresent == 'true'}">
>         <pmd rulesetfiles="${maven.pmd.rulesetfiles}" targetjdk="${maven.pmd.targetjdk}>
>           <formatter type="xml" toFile="${maven.build.dir}/pmd-raw-report.xml"/>
>           <fileset dir="${pom.build.sourceDirectory}" 
> By default 'maven.pmd.targetjdk' can be equal to 'maven.compile.source'
> regards,
> Wim

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