gradle appRestart
appRestart sends "restart" command to a running servlet-container process.
appRestart does not build source code, it only sends "restart" command to localhost:servicePort. Usually appRestart is used to restart servlet-container process started by appStart[War][Debug].
The object called appRestart is actually an instance of AppRestartTask 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.AppRestartTask
task('MyRestart', type: AppRestartTask) {
// ...
}
class VerySpecialRestart extends AppRestartTask {
// ...
}
task('MyRestart2', type: VerySpecialRestart) {
// ...
}
If you are going to instantiate or extend this task class yourself, make sure you’ve learned it’s properties and methods.