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


Reply via email to