File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
client/src/org/openqa/selenium/internal
server/src/org/openqa/grid/selenium Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ private static Properties loadBuildProperties() {
79
79
80
80
/** @return The embedded release label or "unknown". */
81
81
public String getReleaseLabel () {
82
- return BUILD_PROPERTIES .getProperty ("Selenium-Version" , "unknown" );
82
+ return BUILD_PROPERTIES .getProperty ("Selenium-Version" , "unknown" ). trim () ;
83
83
}
84
84
85
85
/** @return The embedded build revision or "unknown". */
Original file line number Diff line number Diff line change 30
30
import org .openqa .grid .internal .utils .configuration .StandaloneConfiguration ;
31
31
import org .openqa .grid .shared .CliUtils ;
32
32
import org .openqa .grid .web .Hub ;
33
+ import org .openqa .selenium .internal .BuildInfo ;
33
34
import org .openqa .selenium .remote .server .SeleniumServer ;
34
35
import org .openqa .selenium .remote .server .log .LoggingOptions ;
35
36
import org .openqa .selenium .remote .server .log .TerseFormatter ;
@@ -75,6 +76,11 @@ public static void main(String[] args) throws Exception {
75
76
76
77
configureLogging (launcher .configuration );
77
78
79
+ BuildInfo buildInfo = new BuildInfo ();
80
+ log .info (String .format (
81
+ "Selenium build info: version: '%s', revision: '%s'" ,
82
+ buildInfo .getReleaseLabel (),
83
+ buildInfo .getBuildRevision ()));
78
84
try {
79
85
launcher .launch ();
80
86
} catch (Exception e ) {
You can’t perform that action at this time.
0 commit comments