org.codehaus.mojo.webstart
Interface Pack200Tool


public interface Pack200Tool

Tool api for pack200 operations.

Note: A such tool can only be used for a jre > 1.4.

Since:
1.0-beta-2
Author:
tchemit

Field Summary
static String ROLE
          Plexus component role.
 
Method Summary
 void packJars(File directory, FileFilter jarFileFilter, boolean gzip)
          Packs from the given directory, all files matched by the filter.
 void unpackJars(File directory, FileFilter pack200FileFilter)
          UnPacks from the given directory, all files matched by the filter.
 

Field Detail

ROLE

static final String ROLE
Plexus component role.

Method Detail

packJars

void packJars(File directory,
              FileFilter jarFileFilter,
              boolean gzip)
Packs from the given directory, all files matched by the filter.

If parameter gzip is setted to true, then after it gzip packed files.

Parameters:
directory - the location of the directory containing files to pack
jarFileFilter - the filter to determin which files to pack
gzip - flag to gzip files after pack them

unpackJars

void unpackJars(File directory,
                FileFilter pack200FileFilter)
UnPacks from the given directory, all files matched by the filter.

Parameters:
directory - the location of the directory containing files to unpack
pack200FileFilter - the fileter to determin which files to unpakc


Copyright © 2011-2012 Codehaus. All Rights Reserved.