Use github page

This commit is contained in:
Andreas Dangel
2015-07-25 12:56:08 +02:00
parent e93e9224ae
commit 9d8a2dd0a5
2 changed files with 3 additions and 3 deletions

View File

@ -115,7 +115,7 @@ public abstract class AbstractRuleSetFactoryTest {
messages += "Rule " + fileName + "/" + rule.getName() + " is missing 'externalInfoURL' attribute"
+ PMD.EOL;
} else {
String expectedExternalInfoURL = "http://pmd.sourceforge.net/.+/rules/"
String expectedExternalInfoURL = "https?://pmd.(sourceforge.net|github.io)/.+/rules/"
+ fileName.replaceAll("rulesets/", "").replaceAll(".xml", "") + ".html#" + rule.getName();
if (rule.getExternalInfoUrl() == null
|| !rule.getExternalInfoUrl().matches(expectedExternalInfoURL)) {

View File

@ -736,7 +736,7 @@
<profile>
<id>pmd-release</id>
<properties>
<pmd.website.baseurl>http://pmd.sourceforge.net/pmd-${project.version}/${project.artifactId}</pmd.website.baseurl>
<pmd.website.baseurl>https://pmd.github.io/pmd-${project.version}/${project.artifactId}</pmd.website.baseurl>
</properties>
</profile>
<profile>
@ -754,7 +754,7 @@
</site>
</distributionManagement>
<properties>
<pmd.website.baseurl>http://pmd.sourceforge.net/pmd-${project.version}/${project.artifactId}</pmd.website.baseurl>
<pmd.website.baseurl>https://pmd.github.io/pmd-${project.version}/${project.artifactId}</pmd.website.baseurl>
</properties>
<build>
<plugins>