Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ var opts = struct {
Zip struct {
In flags.StdinStrings `short:"i" long:"input" description:"Input directory" required:"true"`
Out string `short:"o" long:"output" env:"OUT" description:"Output filename" required:"true"`
Include []string `long:"include" description:"Add members of these zip files to generated zip file (before any others)"`
Suffix []string `short:"s" long:"suffix" default:".jar" description:"Suffix of files to include"`
ExcludeSuffix []string `short:"e" long:"exclude_suffix" description:"Suffix of files to exclude"`
ExcludeTools []string `long:"exclude_tools" env:"TOOLS" env-delim:" " description:"Tools to exclude from the generated zipfile"`
Expand Down Expand Up @@ -221,6 +222,9 @@ func main() {
defer pf.Close()
must(f.WritePreamble(pf))
}
for _, filename := range opts.Zip.Include {
must(f.AddZipFile(filename))
}
if opts.Zip.MainClass != "" {
must(f.AddManifest(opts.Zip.MainClass))
}
Expand Down