This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch name in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git
The following commit(s) were added to refs/heads/name by this push: new fee8d8e fix fee8d8e is described below commit fee8d8e39d2bd04ca9473db2e96a347017bf1d78 Author: Elliotte Rusty Harold <elh...@ibiblio.org> AuthorDate: Sun Dec 15 07:29:42 2024 -0500 fix --- src/main/java/org/apache/maven/plugins/pmd/CpdReport.java | 2 +- src/test/java/org/apache/maven/plugins/pmd/CpdReportTest.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/CpdReport.java b/src/main/java/org/apache/maven/plugins/pmd/CpdReport.java index 11e244d..4970628 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/CpdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/CpdReport.java @@ -218,6 +218,6 @@ public class CpdReport extends AbstractPmdReport { @Override public String getOutputPath() { - return "pmd"; + return "cpd"; } } diff --git a/src/test/java/org/apache/maven/plugins/pmd/CpdReportTest.java b/src/test/java/org/apache/maven/plugins/pmd/CpdReportTest.java index 231619a..a07e195 100644 --- a/src/test/java/org/apache/maven/plugins/pmd/CpdReportTest.java +++ b/src/test/java/org/apache/maven/plugins/pmd/CpdReportTest.java @@ -182,7 +182,9 @@ public class CpdReportTest extends AbstractPmdReportTestCase { public void testEmptyReportConfiguration() throws Exception { // verify the generated files do exist, even if there are no violations File generatedReport = generateReport(getGoal(), "empty-report/cpd-empty-report-plugin-config.xml"); - assertTrue(generatedReport.getAbsolutePath() + " does not exist", new File(generatedReport.getAbsolutePath()).exists()); + assertTrue( + generatedReport.getAbsolutePath() + " does not exist", + new File(generatedReport.getAbsolutePath()).exists()); String str = readFile(generatedReport); assertFalse(lowerCaseContains(str, "Hello.java"));