compile property and OutOfMemory problem

View: New views
6 Messages — Rating Filter:   Alert me  

compile property and OutOfMemory problem

by ptornagh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: compile property and OutOfMemory problem

by ptornagh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


ptornagh 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.



Re: compile property and OutOfMemory problem

by ptornagh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message




ptornagh 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



Parent Message unknown cobertura report not executed on test failure

by Ali, Haneef :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Thanks,
Haneef


-----Original Message-----
From: ptornagh [mailto:paolo.tornaghi@...]
Sent: Monday, November 02, 2009 6:51 AM
To: user@...
Subject: Re: [gradle-user] compile property and OutOfMemory problem




ptornagh 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



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: cobertura report not executed on test failure

by Adam Murdoch-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Ali, 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

by Tomek Kaczanowski-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>> 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