MvnCmd returns the command that should be used to invoke maven for this build.
(ctx *gcp.Context)
| 192 | |
| 193 | // MvnCmd returns the command that should be used to invoke maven for this build. |
| 194 | func MvnCmd(ctx *gcp.Context) (string, error) { |
| 195 | exists, err := ctx.FileExists("mvnw") |
| 196 | if err != nil { |
| 197 | return "", err |
| 198 | } |
| 199 | // If this project has the Maven Wrapper, we should use it |
| 200 | if exists { |
| 201 | return "./mvnw", nil |
| 202 | } |
| 203 | return "mvn", nil |
| 204 | } |
| 205 | |
| 206 | // GradleCmd returns the command that should be used to invoke gradle for this build. |
| 207 | func GradleCmd(ctx *gcp.Context) (string, error) { |
no test coverage detected