sparsick commented on code in PR #675:
URL: https://github.com/apache/maven-pmd-plugin/pull/675#discussion_r2626321478
##########
src/test/java/org/apache/maven/plugins/pmd/stubs/PmdProjectStub.java:
##########
@@ -81,7 +81,9 @@ public PmdProjectStub(String dir) throws
XmlPullParserException, IOException {
@Override
public File getBasedir() {
- return new File(super.getBasedir() + "/src/test/resources/unit/");
+ // Workaround to get basedir, MavenProjectStub use
PlexusTestCase/TestCase which is not available in Junit 5
+ String basedir = System.getProperty("basedir", new
File("").getAbsolutePath());
Review Comment:
I will open a PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]