Skip to content

Commit

Permalink
Remove unnecessary conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira committed Mar 28, 2019
1 parent fb8e639 commit 33a5cd3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -947,14 +947,12 @@ class BuildPlugin implements Plugin<Project> {
'-XX:+HeapDumpOnOutOfMemoryError',
"-XX:HeapDumpPath=$heapdumpDir"

jvmArgs System.getProperty('tests.jvm.argline', '').split(" ")

if (project.runtimeJavaVersion >= JavaVersion.VERSION_1_9) {
jvmArgs '--illegal-access=warn'
}

if (System.getProperty('tests.jvm.argline')) {
jvmArgs System.getProperty('tests.jvm.argline').split(" ")
}

if (Boolean.parseBoolean(System.getProperty('tests.asserts', 'true'))) {
jvmArgs '-ea', '-esa'
}
Expand Down

0 comments on commit 33a5cd3

Please sign in to comment.