Skip to content

Commit

Permalink
Improved: Assign ‘jvmArguments’ only once
Browse files Browse the repository at this point in the history
Using less mutations and a more declarative style simplifies the build
script.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1855669 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Mar 16, 2019
1 parent da188e9 commit 47d6f7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Expand Up @@ -52,10 +52,10 @@ ext.os = System.getProperty('os.name').toLowerCase()
ext.pluginsDir = "${rootDir}/plugins"

// java settings
List jvmArguments = ['-Xms128M', '-Xmx1024M']
if (project.hasProperty('jvmArgs')) {
jvmArguments = jvmArgs.tokenize()
}
List jvmArguments = project.hasProperty('jvmArgs')
? jvmArgs.tokenize()
: ['-Xms128M', '-Xmx1024M']

ext.ofbizMainClass = 'org.apache.ofbiz.base.start.Start'

javadoc.failOnError = true
Expand Down

0 comments on commit 47d6f7a

Please sign in to comment.