Thanks, Rene. Aside from removing the << as you state, here is the final
product for anyone else who may be interested:

task runWebServerIntegrationTests(dependsOn: tomcatRun)  {
  runIntegrationTests
}

runWebServerIntegrationTests.doLast {
  tomcatStop
}


Thanks again.






On 9/20/11 6:28 PM, "Rene Groeschke" <[email protected]> wrote:

>Hi,
>
>try tomcatRun instead of tomcatStart
>
>regards,
>René
>Am 21.09.11 00:08, schrieb Neil Chaudhuri:
>> I am using Gradle Milestone 3 and the Gradle Tomcat plugin, and I
>> would simply like to start Tomcat, run my tests, and stop Tomcat. I
>> have the following closures:
>>
>> tomcatStart {
>>   contextPath = "/${webContext}"
>> }
>>
>> tomcatStop {
>>   stopKey = "foo"
>> }
>>
>> task runIntegrationTests(type: Test, dependsOn: testClasses) << {
>>     useTestNG()
>>     includes = ["**/*IT.class"]
>> }
>>
>> Then I write a task like this :
>>
>> task runWebServerIntegrationTests(dependsOn: tomcatStart,
>> runIntegrationTests, tomcatStop)
>>
>> But when I do so, I get "Could not find method tomcatStart() for
>> arguments [build_3depkd6mj13l633esnp0isldpc$_run_closure3@42886462] on
>> project"
>>
>> I'm sure it is something simple, but I haven't been able to figure it
>> out from the documentation. Any insight is appreciated.
>>
>> Thanks.
>
>
>-- 
>-----------------------
>regards,
>René
>
>rene groeschke
>http://www.breskeby.com
>@breskeby
>
>
>---------------------------------------------------------------------
>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


Reply via email to