Porting to Maven B5.

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@700 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
David Dixon-Peugh
2002-08-15 14:20:38 +00:00
parent 49559f78e9
commit 77ca5ae2f2
3 changed files with 31 additions and 18 deletions

View File

@ -26,3 +26,5 @@ maven.docs.callback.post-docs.buildTarget=post-docs
maven.pmd.reportsDirectory=target
maven.jarResources.basedir=test-data

View File

@ -3,10 +3,10 @@
<pomVersion>3</pomVersion>
<id>pmd</id>
<name>PMD</name>
<currentVersion>0.8</currentVersion>
<currentVersion>0.9</currentVersion>
<logo>images/pmd_logo_small.jpg</logo>
<organization>
<name> </name>
<name>Project Ultra*Log @ DARPA</name>
<url>http://pmd.sourceforge.net/</url>
<logo>http://sourceforge.net/sflogo.php?group_id=56262&amp;type=5</logo>
</organization>
@ -113,6 +113,17 @@
<!-- Need to mark these as compile-time/run-time -->
<dependencies>
<dependency>
<name>JUnit</name>
<id>junit</id>
<version>3.7</version>
</dependency>
<dependency>
<name>Ant</name>
<id>ant</id>
<version>1.5</version>
</dependency>
</dependencies>
<build>
@ -126,19 +137,19 @@
<aspectSourceDirectory></aspectSourceDirectory>
<unitTestPatterns>
<unitTestPattern>include=**/*Test.java</unitTestPattern>
</unitTestPatterns>
<integrationUnitTestPatterns />
<!-- J A R R E S O U R C E S -->
<!-- Resources that are packaged up inside the JAR file -->
<jarResources>
</jarResources>
<unitTest>
<includes>
<include>**/*Test.java</include>
</includes>
</unitTest>
<resources>
<includes>
<include>*.java</include>
</includes>
</resources>
<jars>
</jars>
</build>
</build>
</project>

View File

@ -24,7 +24,7 @@ public class UseSingletonRuleTest
public void testUseSingleton1()
throws Throwable
{
Report report = process("design/UseSingleton1.java",
Report report = process("UseSingleton1.java",
new UseSingletonRule());
assertEquals( 1, report.size() );
}
@ -32,7 +32,7 @@ public class UseSingletonRuleTest
public void testUseSingleton2()
throws Throwable
{
Report report = process("design/UseSingleton2.java",
Report report = process("UseSingleton2.java",
new UseSingletonRule());
assertEquals( 0, report.size() );
}
@ -40,7 +40,7 @@ public class UseSingletonRuleTest
public void testUseSingleton3()
throws Throwable
{
Report report = process("design/UseSingleton3.java",
Report report = process("UseSingleton3.java",
new UseSingletonRule());
assertEquals( 1, report.size() );
}
@ -48,7 +48,7 @@ public class UseSingletonRuleTest
public void testUseSingleton4()
throws Throwable
{
Report report = process("design/UseSingleton4.java",
Report report = process("UseSingleton4.java",
new UseSingletonRule());
assertEquals( 0, report.size() );
}