Skip to content

Commit fee3305

Browse files
committed
Sort out where the different project-list.xml files belong
1 parent ca0964b commit fee3305

File tree

18 files changed

+220
-19
lines changed

18 files changed

+220
-19
lines changed

test/integration_test_pmd_report_builder.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ def setup
1111

1212
def test_build
1313
argv = %w[-r target/repositories/pmd -b master -p origin/pmd/7.0.x
14-
-c test/resources/pmd7-config.xml -l test/resources/project-test.xml
14+
-c test/resources/integration_test_pmd_report_builder/pmd7-config.xml
15+
-l test/resources/integration_test_pmd_report_builder/project-test.xml
1516
--error-recovery --debug]
1617
options = PmdTester::Options.new(argv)
1718
projects = ProjectsParser.new.parse(options.project_list)

test/integration_test_runner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def setup
99

1010
def test_local_mode
1111
argv = '-r target/repositories/pmd -b pmd_releases/6.7.0 -bc config/design.xml' \
12-
' -p master -pc config/design.xml -l test/resources/project-test.xml'
12+
' -p master -pc config/design.xml -l test/resources/integration_test_runner/project-test.xml'
1313

1414
system("bundle exec bin/pmdtester #{argv}")
1515

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0"?>
2+
3+
<projectlist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="projectlist_1_1_0.xsd">
5+
<description>Standard Projects</description>
6+
7+
<project>
8+
<name>checkstyle</name>
9+
<type>git</type>
10+
<connection>https://github.com/checkstyle/checkstyle</connection>
11+
<tag>checkstyle-8.10</tag>
12+
<exclude-pattern>.*/target/test-classes/com/puppycrawl/tools/checkstyle/.*</exclude-pattern>
13+
<exclude-pattern>.*/target/generated-sources/.*</exclude-pattern>
14+
15+
<build-command><![CDATA[#!/usr/bin/env bash
16+
if test -e classpath.txt; then
17+
exit
18+
fi
19+
20+
set -e
21+
22+
mvn clean test-compile -B
23+
mvn dependency:build-classpath -DincludeScope=test -Dmdep.outputFile=classpath.txt -B
24+
]]></build-command>
25+
<auxclasspath-command>echo -n "$(pwd)/target/classes:$(pwd)/target/test-classes:"; cat classpath.txt</auxclasspath-command>
26+
</project>
27+
28+
<!-- this project configuration is here, so that PMD's repo is cloned into target/repositories for integration tests -->
29+
<project>
30+
<name>pmd</name>
31+
<type>git</type>
32+
<connection>https://github.com/pmd/pmd</connection>
33+
</project>
34+
</projectlist>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0"?>
2+
3+
<projectlist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="projectlist_1_1_0.xsd">
5+
<description>Standard Projects</description>
6+
7+
<project>
8+
<name>checkstyle</name>
9+
<type>git</type>
10+
<connection>https://github.com/checkstyle/checkstyle</connection>
11+
<tag>checkstyle-8.10</tag>
12+
<exclude-pattern>.*/target/test-classes/com/puppycrawl/tools/checkstyle/.*</exclude-pattern>
13+
<exclude-pattern>.*/target/generated-sources/.*</exclude-pattern>
14+
15+
<build-command><![CDATA[#!/usr/bin/env bash
16+
if test -e classpath.txt; then
17+
exit
18+
fi
19+
20+
set -e
21+
22+
mvn clean test-compile -B
23+
mvn dependency:build-classpath -DincludeScope=test -Dmdep.outputFile=classpath.txt -B
24+
]]></build-command>
25+
<auxclasspath-command>echo -n "$(pwd)/target/classes:$(pwd)/target/test-classes:"; cat classpath.txt</auxclasspath-command>
26+
</project>
27+
28+
<!-- this project configuration is here, so that PMD's repo is cloned into target/repositories for integration tests -->
29+
<project>
30+
<name>pmd</name>
31+
<type>git</type>
32+
<connection>https://github.com/pmd/pmd</connection>
33+
</project>
34+
</projectlist>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0"?>
2+
3+
<projectlist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="projectlist_1_1_0.xsd">
5+
<description>Standard Projects</description>
6+
7+
<project>
8+
<name>checkstyle</name>
9+
<type>git</type>
10+
<connection>https://github.com/checkstyle/checkstyle</connection>
11+
<tag>checkstyle-8.10</tag>
12+
<exclude-pattern>.*/target/test-classes/com/puppycrawl/tools/checkstyle/.*</exclude-pattern>
13+
<exclude-pattern>.*/target/generated-sources/.*</exclude-pattern>
14+
15+
<build-command><![CDATA[#!/usr/bin/env bash
16+
if test -e classpath.txt; then
17+
exit
18+
fi
19+
20+
set -e
21+
22+
mvn clean test-compile -B
23+
mvn dependency:build-classpath -DincludeScope=test -Dmdep.outputFile=classpath.txt -B
24+
]]></build-command>
25+
<auxclasspath-command>echo -n "$(pwd)/target/classes:$(pwd)/target/test-classes:"; cat classpath.txt</auxclasspath-command>
26+
</project>
27+
28+
<!-- this project configuration is here, so that PMD's repo is cloned into target/repositories for integration tests -->
29+
<project>
30+
<name>pmd</name>
31+
<type>git</type>
32+
<connection>https://github.com/pmd/pmd</connection>
33+
</project>
34+
</projectlist>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0"?>
2+
3+
<projectlist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="projectlist_1_1_0.xsd">
5+
<description>Standard Projects</description>
6+
7+
<project>
8+
<name>checkstyle</name>
9+
<type>git</type>
10+
<connection>https://github.com/checkstyle/checkstyle</connection>
11+
<exclude-pattern>**/src/test/resources-noncompilable/**/*</exclude-pattern>
12+
<exclude-pattern>**/src/test/resources/**/*</exclude-pattern>
13+
<build-command>mvn test-compile -B</build-command>
14+
<auxclasspath-command>echo -n "$(pwd)/target/classes:"</auxclasspath-command>
15+
</project>
16+
17+
<project>
18+
<name>openjdk10</name>
19+
<type>hg</type>
20+
<connection>http://hg.openjdk.java.net/jdk10/jdk10/jdk</connection>
21+
<webview-url>http://hg.openjdk.java.net/jdk10/jdk10/jdk/file/777356696811</webview-url>
22+
</project>
23+
24+
<project>
25+
<name>spring-framework</name>
26+
<type>git</type>
27+
<connection>https://github.com/spring-projects/spring-framework</connection>
28+
<webview-url>https://github.com/spring-projects/spring-framework/tree/v5.0.6.RELEASE</webview-url>
29+
<tag>v5.0.6.RELEASE</tag>
30+
</project>
31+
32+
</projectlist>

0 commit comments

Comments
 (0)