-
Notifications
You must be signed in to change notification settings - Fork 202
Conversation
With this PR, "mvn clean install" are successful both on JDK8 and JDK11. |
Codecov Report
@@ Coverage Diff @@
## master #1437 +/- ##
============================================
+ Coverage 34.87% 34.87% +<.01%
Complexity 1046 1046
============================================
Files 171 171
Lines 9431 9433 +2
Branches 1611 1612 +1
============================================
+ Hits 3289 3290 +1
Misses 5783 5783
- Partials 359 360 +1 |
@@ -66,6 +66,10 @@ public String getLabel() { | |||
* Returns true if the given maven properties indicate running in OpenShift platform mode | |||
*/ | |||
public static boolean isOpenShiftMode(Properties properties) { | |||
return Objects.equal(openshift.toString(), properties.getProperty(FABRIC8_EFFECTIVE_PLATFORM_MODE, "")); | |||
if (properties == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I will use a ternary in this case just for make code clean, but just my opinion of course.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, good point!
@@ -71,6 +69,9 @@ public void javaOptions() throws IOException, MojoExecutionException { | |||
assertEquals(1, configs.size()); | |||
Map<String, String> env = configs.get(0).getBuildConfiguration().getEnv(); | |||
assertNull(env.get("JAVA_OPTIONS")); | |||
} catch (Exception ex) { | |||
ex.printStackTrace(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you make the test make error by rethrowing the exception?
Also if there is an exception the test will fail automatically and print the stack trace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, that just for my debug and surely should be removed.
Another commit is coming soon...
Thank you very much for the contribution. |
No description provided.