Skip to content
Permalink
Browse files

Improved: Assign ‘jvmArguments’ only once

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 47d6f7a01014996d20b51f05569529859f49144c
Showing with 4 additions and 4 deletions.
  1. +4 −4 build.gradle
@@ -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

0 comments on commit 47d6f7a

Please sign in to comment.
You can’t perform that action at this time.