public class JARFileMaker extends Object implements AutoCloseable
Constructor and Description |
---|
JARFileMaker(File outputFile) |
JARFileMaker(File outputFile,
Manifest manifest) |
public JARFileMaker(File outputFile) throws IOException
IOException
public JARFileMaker(File outputFile, Manifest manifest) throws IOException
IOException
public JARFileMaker add(File inputFile) throws IOException
inputFile
- file or directory to be added to the jar.IOException
- if cannot create a jar.public JARFileMaker addChildren(File folder) throws IOException
IOException
public void close() throws IOException
close
in interface AutoCloseable
IOException
Copyright © 2017 The Apache Software Foundation. All rights reserved.