(ctx *gcp.Context, jars []string)
| 97 | } |
| 98 | |
| 99 | func filterExecutables(ctx *gcp.Context, jars []string) []string { |
| 100 | var executables []string |
| 101 | for _, jar := range jars { |
| 102 | if main, err := FindManifestValueFromJar(jar, mainClassKey); err != nil { |
| 103 | ctx.Warnf("Failed to inspect %s, skipping: %v.", jar, err) |
| 104 | } else if main != "" { |
| 105 | executables = append(executables, jar) |
| 106 | } |
| 107 | } |
| 108 | return executables |
| 109 | } |
| 110 | |
| 111 | // MainManifestEntry returns the Main-Class manifest entry of the jar at the given filepath, |
| 112 | // or an empty string if the entry does not exist. |
no test coverage detected