public interface Pack200Tool
Modifier and Type | Field and Description |
---|---|
static String |
PACK_EXTENSION
Extension of a pack file.
|
static String |
PACK_GZ_EXTENSION
Extension of a gz pack file.
|
static String |
ROLE
Plexus component role.
|
Modifier and Type | Method and Description |
---|---|
void |
pack(File source,
File destination,
Map<String,String> props,
boolean gzip)
Pack a jar.
|
File |
packJar(File jarFile,
boolean gzip,
List<String> passFiles)
Pack the given jarfile and return the packed file.
|
void |
packJars(File directory,
FileFilter jarFileFilter,
boolean gzip,
List<String> passFiles)
Packs from the given
directory , all files matched by the filter. |
void |
repack(File source,
File destination,
Map<String,String> props)
Repack a jar.
|
void |
unpack(File source,
File destination,
Map<String,String> props)
Unpack a jar.
|
File |
unpackJar(File packFile)
Unpack the given file and return it.
|
void |
unpackJars(File directory,
FileFilter pack200FileFilter)
UnPacks from the given
directory , all files matched by the filter. |
static final String ROLE
static final String PACK_EXTENSION
static final String PACK_GZ_EXTENSION
void pack(File source, File destination, Map<String,String> props, boolean gzip) throws IOException
source
- the source jardestination
- the packed jarprops
- the packing propertiesgzip
- true if the destination fileIOException
void repack(File source, File destination, Map<String,String> props) throws IOException
source
- the source jardestination
- the destination jar (may be the same as the source jar)props
- the packing propertiesIOException
void unpack(File source, File destination, Map<String,String> props) throws IOException
source
- the packed jardestination
- the unpacked jarprops
- the packing propertiesIOException
void packJars(File directory, FileFilter jarFileFilter, boolean gzip, List<String> passFiles) throws IOException
directory
, all files matched by the filter.
If parameter gzip
is setted to true
, then after it gzip packed files.directory
- the location of the directory containing files to packjarFileFilter
- the filter to determin which files to packgzip
- flag to gzip files after pack thempassFiles
- the list of file names to be passed as not pack200 compressedIOException
File packJar(File jarFile, boolean gzip, List<String> passFiles) throws IOException
jarFile
- jar file to packgzip
- flag to enable gzip compressionpassFiles
- the list of file names to be passed as not pack200 compressedIOException
void unpackJars(File directory, FileFilter pack200FileFilter) throws IOException
directory
, all files matched by the filter.directory
- the location of the directory containing files to unpackpack200FileFilter
- the fileter to determin which files to unpakcIOException
File unpackJar(File packFile) throws IOException
packFile
- the file to unpackIOException
Copyright © 2005–2016 MojoHaus. All rights reserved.