mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-26 15:38:34 +00:00
Output revision with -v/--version
This commit is contained in:
@@ -40,11 +40,15 @@ public class VersionNativeIT {
|
||||
client.execute(output, "-v").assertSuccess();
|
||||
|
||||
output.assertContainsMatchingSubsequence(
|
||||
"\\QMaven Daemon "
|
||||
"\\Qmvnd " + (isNative() ? "native client " : "JVM client ")
|
||||
+ System.getProperty("project.version")
|
||||
+ "-" + System.getProperty("os.detected.name")
|
||||
+ "-" + System.getProperty("os.detected.arch")
|
||||
+ "\\E",
|
||||
"\\QMaven home: " + parameters.mvndHome() + "\\E");
|
||||
}
|
||||
|
||||
protected boolean isNative() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@@ -20,5 +20,8 @@ import org.mvndaemon.mvnd.junit.MvndTestExtension;
|
||||
|
||||
@MvndTest(projectDir = MvndTestExtension.TEMP_EXTERNAL)
|
||||
public class VersionTest extends VersionNativeIT {
|
||||
protected boolean isNative() {
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user