farms {
farm 'XYZ', {
webapp ':ProjectA'
// ...
}
}
Provided that you already learned about multiple web apps in Gretty, now you can systematically learn all about farm tasks.
When you insert apply plugin: 'org.akhikhl.gretty'
to "build.gradle", Gretty additionally facilitates the project with the following gradle tasks:
Tasks | Purpose | Stopped by | Uses WAR | Debug |
---|---|---|---|---|
Starts web-apps of default farm |
keypress |
no |
no |
|
Starts web-apps of default farm |
keypress |
no |
yes |
|
Starts web-apps of default farm |
keypress |
yes |
no |
|
Starts web-apps of default farm |
keypress |
yes |
yes |
|
Starts web-apps of default farm |
farmStop |
no |
no |
|
Starts web-apps of default farm |
farmStop |
no |
yes |
|
Starts web-apps of default farm |
farmStop |
yes |
no |
|
Starts web-apps of default farm |
farmStop |
yes |
yes |
|
Stops web-apps of default farm |
- |
- |
- |
|
Restarts web-apps of default farm |
- |
- |
- |
|
Invokes integrationTest task on web-app projects of default farm |
- |
- |
- |
|
Starts web-apps of default farm before integration tests |
farmAfterIntegrationTest |
no |
no |
|
Stops web-apps of default farm after integration tests |
- |
- |
- |
When you define an additional named farm:
farms {
farm 'XYZ', {
webapp ':ProjectA'
// ...
}
}
then Gretty facilitates the project with the following gradle tasks:
Tasks | Purpose | Stopped by | Uses WAR | Debug |
---|---|---|---|---|
Starts web-apps of farm "XYZ" |
keypress |
no |
no |
|
Starts web-apps of farm "XYZ" |
keypress |
no |
yes |
|
Starts web-apps of farm "XYZ" |
keypress |
yes |
no |
|
Starts web-apps of farm "XYZ" |
keypress |
yes |
yes |
|
Starts web-apps of farm "XYZ" |
farmStop |
no |
no |
|
Starts web-apps of farm "XYZ" |
farmStop |
no |
yes |
|
Starts web-apps of farm "XYZ" |
farmStop |
yes |
no |
|
Starts web-apps of farm "XYZ" |
farmStop |
yes |
yes |
|
Stops web-apps of farm "XYZ" |
- |
- |
- |
|
Restarts web-apps of farm "XYZ" |
- |
- |
- |
|
Invokes integrationTest task on web-app projects of farm "XYZ" |
- |
- |
- |
|
Starts web-apps of farm "XYZ" before integration tests |
farmAfterIntegrationTest |
no |
no |
|
Stops web-apps of farm "XYZ" after integration tests |
- |
- |
- |