gradle appStop
appStop sends "stop" command to a running servlet-container process.
appStop does not build source code, it only sends "stop" command to localhost:servicePort. Usually appStop is used to stop servlet-container process started by appStart[War][Debug].
The object called appStop is actually an instance of AppStopTask class, created and configured for you by Gretty. You can instantiate or even extend this class on your own:
apply plugin: 'org.akhikhl.gretty'
import org.akhikhl.gretty.AppStopTask
task('MyStop', type: AppStopTask) {
// ...
}
class VerySpecialStop extends AppStopTask {
// ...
}
task('MyStop2', type: VerySpecialStop) {
// ...
}
If you are going to instantiate or extend this task class yourself, make sure you’ve learned it’s properties and methods.