Oups, a correction to (2):
task stopTomcat(type:Exec) {
commandLine = ['cmd', '/c', 'stop.bat']
workingDir = file('../tomcat/bin')
}
It's an example - I leave you to sort out the correct paths, batch
file name, etc.
Cheers!
Szczepan
On Mon, Apr 18, 2011 at 8:20 PM, Szczepan Faber <[email protected]> wrote:
> Hey
>
>> (2) Stop the Tomcat service (on Windows) using a call to the command line
>
> Example:
>
> task stopTomcat(type:Exec) << {
> commandLine = ['cmd', '/c', 'stop.bat'] //cmd and /c are specific
> to windows
> workingDir = file('../tomcat/bin')
> }
>
> http://gradle.org/1.0-milestone-2/docs/dsl/org.gradle.api.tasks.Exec.html
>
>> (3) Delete the ${CATALINA_HOME}/webapps/${app-name} folder
>
> http://gradle.org/1.0-milestone-2/docs/dsl/org.gradle.api.tasks.Delete.html
>
> Example:
>
> task makePretty(type: Delete) {
> delete 'uglyFolder', 'uglyFile'
> }
>
>> (4) Copy the war to ${CATALINA_HOME}/webapps
>
> http://gradle.org/1.0-milestone-2/docs/dsl/org.gradle.api.tasks.Copy.html
>
>> (5) Start the Tomcat service, again making a call to the command line.
>
> See (2)
>
> Hope that helps!
> Cheers!
> Szczepan
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email