comparison init20.gradle @ 255:37e1c910c8f5

disable requireMemeory failure and replace with a warning
author smith@nwoca.org
date Wed, 30 May 2018 21:09:51 +0100
parents 4e57e2edb2ad
children 91e05187fd79
comparison
equal deleted inserted replaced
254:4e57e2edb2ad 255:37e1c910c8f5
618 618
619 } 619 }
620 620
621 void requireMemory(int megabytes) { 621 void requireMemory(int megabytes) {
622 if (systemFreeMemory > 0 && systemFreeMemory < megabytes) { 622 if (systemFreeMemory > 0 && systemFreeMemory < megabytes) {
623 throw new GradleException("insufficent free OS memory for this build (available: ${systemFreeMemory}m, required: ${megabytes}m)") 623 println "WARNING: potentially insufficent OS memory for this build"
624 // throw new GradleException("insufficent free OS memory for this build (available: ${systemFreeMemory}m, required: ${megabytes}m)")
624 } 625 }
625 } 626 }
626 /** 627 /**
627 * Returns maximum memory available upto the value specified. 628 * Returns maximum memory available upto the value specified.
628 */ 629 */