Skip to content

Commit bd7ff73

Browse files
committed
Use mvn -B more generally
1 parent 20bc4c3 commit bd7ff73

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

lib/pmdtester/builders/pmd_report_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def build_pmd(into_dir:)
6969
' -Dmaven.source.skip=true' \
7070
' -Dcheckstyle.skip=true' \
7171
' -Dpmd.skip=true' \
72-
' -T1C'
72+
' -T1C -B'
7373
Cmd.execute(package_cmd)
7474
end
7575

pmdtester.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
1111
s.metadata = { "bug_tracker_uri" => "https://github.com/pmd/pmd-regression-tester/issues", "homepage_uri" => "https://pmd.github.io", "source_code_uri" => "https://github.com/pmd/pmd-regression-tester" } if s.respond_to? :metadata=
1212
s.require_paths = ["lib".freeze]
1313
s.authors = ["Andreas Dangel".freeze, "Binguo Bao".freeze, "Cl\u00E9ment Fournier".freeze]
14-
s.date = "2021-05-24"
14+
s.date = "2021-05-25"
1515
s.description = "A regression testing tool ensure that new problems and unexpected behaviors will not be introduced to PMD project after fixing an issue , and new rules can work as expected.".freeze
1616
s.email = ["[email protected]".freeze, "[email protected]".freeze, "[email protected]".freeze]
1717
s.executables = ["pmdtester".freeze]

test/resources/project-list.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ xsi:noNamespaceSchemaLocation="projectlist_1_1_0.xsd">
1010
<connection>https://github.com/checkstyle/checkstyle</connection>
1111
<exclude-pattern>**/src/test/resources-noncompilable/**/*</exclude-pattern>
1212
<exclude-pattern>**/src/test/resources/**/*</exclude-pattern>
13-
<build-command>mvn test-compile</build-command>
13+
<build-command>mvn test-compile -B</build-command>
1414
<auxclasspath-command>echo -n "$(pwd)/target/classes:"</auxclasspath-command>
1515
</project>
1616

test/resources/project-test.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ fi
1919
2020
set -e
2121
22-
mvn clean test-compile
23-
mvn dependency:build-classpath -DincludeScope=test -Dmdep.outputFile=classpath.txt
22+
mvn clean test-compile -B
23+
mvn dependency:build-classpath -DincludeScope=test -Dmdep.outputFile=classpath.txt -B
2424
]]></build-command>
2525
<auxclasspath-command>echo -n "$(pwd)/target/classes:$(pwd)/target/test-classes:"; cat classpath.txt</auxclasspath-command>
2626
</project>

test/resources/project_builder/project-list.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ xsi:noNamespaceSchemaLocation="projectlist_1_1_0.xsd">
1010
<connection>https://github.com/checkstyle/checkstyle</connection>
1111
<exclude-pattern>**/src/test/resources-noncompilable/**/*</exclude-pattern>
1212
<exclude-pattern>**/src/test/resources/**/*</exclude-pattern>
13-
<build-command>mvn test-compile</build-command>
13+
<build-command>mvn test-compile -B</build-command>
1414
<auxclasspath-command><![CDATA[#!/usr/bin/env bash
1515
echo -n "$(pwd)/target/classes:"
1616
]]></auxclasspath-command>

test/test_pmd_report_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_build_normal
7373
record_expectations('sha1abc', 'sha1abc', false)
7474
PmdTester::Cmd.stubs(:execute).with('./mvnw clean package -Dmaven.test.skip=true' \
7575
' -Dmaven.javadoc.skip=true -Dmaven.source.skip=true' \
76-
' -Dcheckstyle.skip=true -Dpmd.skip=true -T1C').once
76+
' -Dcheckstyle.skip=true -Dpmd.skip=true -T1C -B').once
7777
PmdTester::Cmd.stubs(:execute).with("unzip -qo pmd-dist/target/pmd-bin-#{@pmd_version}.zip" \
7878
' -d pmd-dist/target/exploded').once
7979
PmdTester::Cmd.stubs(:execute).with("mv pmd-dist/target/exploded/pmd-bin-#{@pmd_version}" \

test/test_project_builder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_build
2424
.returns('target/repositories/checkstyle')
2525
.returns('target/repositories/spring-framework')
2626
.returns('target/repositories/spring-framework')
27-
expect_build('checkstyle', 'mvn test-compile',
27+
expect_build('checkstyle', 'mvn test-compile -B',
2828
"#!/usr/bin/env bash\necho -n \"\$(pwd)/target/classes:\"\n ")
2929
expect_build('spring-framework')
3030
project_builder = PmdTester::ProjectBuilder.new(@projects)

test/test_projects_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def test_project_parser_checkstyle
1515
assert_equal(expected_exclude_pattern, @projects[0].exclude_patterns)
1616
assert_equal('https://github.com/checkstyle/checkstyle/tree/master', @projects[0].webview_url)
1717
assert_equal('master', @projects[0].tag)
18-
assert_equal('mvn test-compile', @projects[0].build_command)
18+
assert_equal('mvn test-compile -B', @projects[0].build_command)
1919
assert_equal('echo -n "$(pwd)/target/classes:"', @projects[0].auxclasspath_command)
2020
end
2121

0 commit comments

Comments
 (0)