Add test project
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115898 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6001d7723d
commit
cb6268b822
@ -23,7 +23,7 @@
|
||||
<pomVersion>3</pomVersion>
|
||||
<id>maven-pmd-plugin</id>
|
||||
<name>Maven PMD Plug-in</name>
|
||||
<currentVersion>1.5</currentVersion>
|
||||
<currentVersion>1.6-SNAPSHOT</currentVersion>
|
||||
<description>The Maven PMD plugin is a plugin that wraps the PMD framework (http://pmd.sourceforge.net). PMD is a source checking framework that works by scanning Java source code and looks for potential problems like: unused local variables, empty catch blocks, unused parameters, empty 'if' statements, etc.</description>
|
||||
<shortDescription>Maven Plugin for PMD</shortDescription>
|
||||
<url>http://maven.apache.org/reference/plugins/pmd/</url>
|
||||
|
||||
2
pmd/src/plugin-test/.cvsignore
Normal file
2
pmd/src/plugin-test/.cvsignore
Normal file
@ -0,0 +1,2 @@
|
||||
gump.xml
|
||||
*.log
|
||||
31
pmd/src/plugin-test/maven.xml
Normal file
31
pmd/src/plugin-test/maven.xml
Normal file
@ -0,0 +1,31 @@
|
||||
<!--
|
||||
/*
|
||||
* Copyright 2001-2004 The Apache Software Foundation.
|
||||
*
|
||||
* Licensed 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.
|
||||
*/
|
||||
-->
|
||||
<project xmlns:util="jelly:util"
|
||||
xmlns:assert="assert"
|
||||
xmlns:j="jelly:core">
|
||||
|
||||
<goal name="testPlugin" prereqs="test-pmd-report">
|
||||
</goal>
|
||||
|
||||
<goal name="test-pmd-report">
|
||||
<attainGoal name="pmd:report"/>
|
||||
<assert:assertFileExists file="${maven.build.dir}/pmd-raw-report.xml"/>
|
||||
<assert:assertFileExists file="${maven.gen.docs}/pmd-report.xml"/>
|
||||
<attainGoal name="clean"/>
|
||||
</goal>
|
||||
</project>
|
||||
58
pmd/src/plugin-test/project.xml
Normal file
58
pmd/src/plugin-test/project.xml
Normal file
@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
/*
|
||||
* Copyright 2001-2004 The Apache Software Foundation.
|
||||
*
|
||||
* Licensed 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
|
||||
<project>
|
||||
<pomVersion>3</pomVersion>
|
||||
<id>test-maven-pmd-plugin</id>
|
||||
<name>Test project for Maven PMD Plugin</name>
|
||||
<groupId>maven</groupId>
|
||||
<currentVersion>1.0-SNAPSHOT</currentVersion>
|
||||
<organization>
|
||||
<name>Apache Software Foundation</name>
|
||||
<url>http://www.apache.org/</url>
|
||||
<logo>http://maven.apache.org/images/jakarta-logo-blue.gif</logo>
|
||||
</organization>
|
||||
<inceptionYear>2001</inceptionYear>
|
||||
<package>org.apache.maven</package>
|
||||
<logo>http://maven.apache.org/images/maven.jpg</logo>
|
||||
<description>Test for Maven PMD plugin</description>
|
||||
<shortDescription>Test for Maven PMD plugin</shortDescription>
|
||||
<url>http://maven.apache.org/reference/plugins/pmd/</url>
|
||||
<siteDirectory>/www/maven.apache.org/reference/plugins/pmd/</siteDirectory>
|
||||
<repository>
|
||||
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven-plugins/pmd/</connection>
|
||||
<url>http://cvs.apache.org/viewcvs/maven-plugins/pmd/</url>
|
||||
</repository>
|
||||
<developers>
|
||||
<developer>
|
||||
<name>dIon Gillard</name>
|
||||
<id>dion</id>
|
||||
<email>dion@multitask.com.au</email>
|
||||
<organization>Multitask Consulting</organization>
|
||||
<roles>
|
||||
<role>Documentation</role>
|
||||
</roles>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
<build>
|
||||
<sourceDirectory>src/main</sourceDirectory>
|
||||
</build>
|
||||
</project>
|
||||
6
pmd/src/plugin-test/src/main/org/apache/maven/Dummy.java
Normal file
6
pmd/src/plugin-test/src/main/org/apache/maven/Dummy.java
Normal file
@ -0,0 +1,6 @@
|
||||
package org.apache.maven;
|
||||
|
||||
public class Dummy
|
||||
{
|
||||
public String badChecky = "error";
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user