|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
compile property and OutOfMemory problemHi all,
I'm really new to gradle.
I have several subprojects (I'm using java plugin) and compiling I got an OutOfMemoryError: Java heap space.
I searched the mailing list and I found that the solution should be to use:
compile.getOptions().fork([memoryMaximumSize:"512m"]) .
I placed it into the "subprojects" scope and I'm getting the following error:
"Could not find property 'compile' on project mySubProject"
I know it's probably a silly question...but what am I missing?
Thanks,
Paolo
|
|
|
Re: compile property and OutOfMemory problemI figured it out: do not refer to compile property, but refer to compileJava property instead : with compileJava.options.fork(memoryMaximumSize: '512m') I had the job done. |
|
|
Re: compile property and OutOfMemory problemptornagh wrote: > > Hi all, > I'm really new to gradle. > I have several subprojects (I'm using java plugin) and compiling I got an > OutOfMemoryError: Java heap space. > I searched the mailing list and I found that the solution should be to > use: > > compile.getOptions().fork([memoryMaximumSize:"512m"]) . > > I placed it into the "subprojects" scope and I'm getting the following > error: > > "Could not find property 'compile' on project mySubProject" > > I know it's probably a silly question...but what am I missing? > > Thanks, > Paolo > I figured it out: do not refer to compile property, but refer to compileJava property instead : with compileJava.options.fork(memoryMaximumSize: '512m') I had the job done. -- View this message in context: http://old.nabble.com/compile-property-and-OutOfMemory-problem-tp26156670p26157117.html Sent from the gradle-user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
|
|
|
Re: cobertura report not executed on test failureAli, Haneef wrote: > Hi, > > I have just copied the script from cookbook for executing "Cobertura" report. test.doLast {} is not getting executed if one of the test fails. Is there a way to make the task call test.doLast irrespective of the test results > There isn't. Could you add a JIRA issue for this? As a workaround, you could do something like this instead of using doLast { } gradle.taskGraph.afterTask { task -> if (task == test) { ... do whatever would be done in doLast { } ... } } -- Adam Murdoch Gradle Developer http://www.gradle.org --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: cobertura report not executed on test failure>> I have just copied the script from cookbook for executing "Cobertura"
>> report. test.doLast {} is not getting executed if one of the test fails. >> Is there a way to make the task call test.doLast irrespective of the test >> results >> > > There isn't. Could you add a JIRA issue for this? http://jira.codehaus.org/browse/GRADLE-738 -- Tomek --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |