Return-Path: X-Original-To: apmail-maven-commits-archive@www.apache.org Delivered-To: apmail-maven-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4A44D11E93 for ; Wed, 16 Jul 2014 08:23:22 +0000 (UTC) Received: (qmail 64187 invoked by uid 500); 16 Jul 2014 08:23:22 -0000 Delivered-To: apmail-maven-commits-archive@maven.apache.org Received: (qmail 64125 invoked by uid 500); 16 Jul 2014 08:23:22 -0000 Mailing-List: contact commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list commits@maven.apache.org Received: (qmail 64113 invoked by uid 99); 16 Jul 2014 08:23:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jul 2014 08:23:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jul 2014 08:23:22 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B869F238899C; Wed, 16 Jul 2014 08:22:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1610932 - in /maven/plugins/trunk/maven-pmd-plugin: ./ src/it/MPMD-182/ src/it/MPMD-182/src/ src/it/MPMD-182/src/main/ src/it/MPMD-182/src/main/java/ src/main/java/org/apache/maven/plugin/pmd/ src/test/java/org/apache/maven/plugin/pmd/ Date: Wed, 16 Jul 2014 08:22:56 -0000 To: commits@maven.apache.org From: dennisl@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20140716082256.B869F238899C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: dennisl Date: Wed Jul 16 08:22:56 2014 New Revision: 1610932 URL: http://svn.apache.org/r1610932 Log: [MPMD-182] Upgrade to PMD 5.1.1 Added: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/invoker.properties (with props) maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/pom.xml (with props) maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/src/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/src/main/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/src/main/java/ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/src/main/java/RunnableTest.java (with props) Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/CpdReport.java maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/CpdReportTest.java Modified: maven/plugins/trunk/maven-pmd-plugin/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/pom.xml?rev=1610932&r1=1610931&r2=1610932&view=diff ============================================================================== --- maven/plugins/trunk/maven-pmd-plugin/pom.xml (original) +++ maven/plugins/trunk/maven-pmd-plugin/pom.xml Wed Jul 16 08:22:56 2014 @@ -82,7 +82,7 @@ under the License. 2.2.1 1.4 - 5.0.5 + 5.1.1 3.3 3.2 2.7 Added: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/invoker.properties URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/invoker.properties?rev=1610932&view=auto ============================================================================== --- maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/invoker.properties (added) +++ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/invoker.properties Wed Jul 16 08:22:56 2014 @@ -0,0 +1,19 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +invoker.goals = clean verify pmd:pmd +invoker.java.version = 1.8+ Propchange: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/invoker.properties ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/invoker.properties ------------------------------------------------------------------------------ svn:keywords = Date Revision Author Id Added: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/pom.xml URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/pom.xml?rev=1610932&view=auto ============================================================================== --- maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/pom.xml (added) +++ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/pom.xml Wed Jul 16 08:22:56 2014 @@ -0,0 +1,55 @@ + + + + + + 4.0.0 + + org.apache.maven.plugins.pmd.its + MPMD-182 + 1.0-SNAPSHOT + + + 1.8 + UTF-8 + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + ${javaVersion} + ${javaVersion} + + + + + org.apache.maven.plugins + maven-pmd-plugin + @project.version@ + + ${javaVersion} + + + + + Propchange: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/pom.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Author Id Added: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/src/main/java/RunnableTest.java URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/src/main/java/RunnableTest.java?rev=1610932&view=auto ============================================================================== --- maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/src/main/java/RunnableTest.java (added) +++ maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/src/main/java/RunnableTest.java Wed Jul 16 08:22:56 2014 @@ -0,0 +1,39 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +public class RunnableTest { + public static void main(String[] args) { + System.out.println("=== RunnableTest ==="); + + // Anonymous Runnable + Runnable r1 = new Runnable(){ + @Override + public void run(){ + System.out.println("Hello world one!"); + } + }; + + // Lambda Runnable + Runnable r2 = () -> System.out.println("Hello world two!"); + + // Run em! + r1.run(); + r2.run(); + } +} Propchange: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/src/main/java/RunnableTest.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: maven/plugins/trunk/maven-pmd-plugin/src/it/MPMD-182/src/main/java/RunnableTest.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Author Id Modified: maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/CpdReport.java URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/CpdReport.java?rev=1610932&r1=1610931&r2=1610932&view=diff ============================================================================== --- maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/CpdReport.java (original) +++ maven/plugins/trunk/maven-pmd-plugin/src/main/java/org/apache/maven/plugin/pmd/CpdReport.java Wed Jul 16 08:22:56 2014 @@ -223,7 +223,11 @@ public class CpdReport String encoding = determineEncoding( !filesToProcess.isEmpty() ); - CPDConfiguration cpdConfiguration = new CPDConfiguration( minimumTokens, new JavaLanguage( p ), encoding ); + CPDConfiguration cpdConfiguration = new CPDConfiguration(); + cpdConfiguration.setMinimumTileSize( minimumTokens ); + cpdConfiguration.setLanguage( new JavaLanguage( p ) ); + cpdConfiguration.setEncoding( encoding ); + cpd = new CPD( cpdConfiguration ); for ( File file : filesToProcess.keySet() ) Modified: maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/CpdReportTest.java URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/CpdReportTest.java?rev=1610932&r1=1610931&r2=1610932&view=diff ============================================================================== --- maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/CpdReportTest.java (original) +++ maven/plugins/trunk/maven-pmd-plugin/src/test/java/org/apache/maven/plugin/pmd/CpdReportTest.java Wed Jul 16 08:22:56 2014 @@ -195,7 +195,10 @@ public class CpdReportTest tMatch.setSourceCodeSlice( "// ----- ACCESSEURS avec �l�ments -----" ); tList.add( tMatch ); - CPDConfiguration cpdConfiguration = new CPDConfiguration( 100, new JavaLanguage(), "UTF-8" ); + CPDConfiguration cpdConfiguration = new CPDConfiguration(); + cpdConfiguration.setMinimumTileSize( 100 ); + cpdConfiguration.setLanguage( new JavaLanguage() ); + cpdConfiguration.setEncoding( "UTF-8" ); CPD tCpd = new MockCpd( cpdConfiguration, tList.iterator() ); tCpd.go();