org.jdesktop.deployment.ant.pack200
Class PackUtils

java.lang.Object
  extended by org.jdesktop.deployment.ant.pack200.PackUtils

public class PackUtils
extends Object

Utility methods for packing and unpacking jar files.

Version:
$Revision: 14720 $, $Date: 2011-09-15 17:17:42 +0200 (Thu, 15 Sep 2011) $
Author:
Emmanuel Bourg

Constructor Summary
PackUtils()
           
 
Method Summary
static void pack(File source, File destination, Map props, boolean gzip)
          Pack a jar.
static void repack(File source, File destination, Map props)
          Repack a jar.
static void unpack(File source, File destination, Map props)
          Unpack a jar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackUtils

public PackUtils()
Method Detail

pack

public static void pack(File source,
                        File destination,
                        Map props,
                        boolean gzip)
                 throws IOException
Pack a jar.

Parameters:
source - the source jar
destination - the packed jar
props - the packing properties
gzip - true if the destination file
Throws:
IOException

repack

public static void repack(File source,
                          File destination,
                          Map props)
                   throws IOException
Repack a jar.

Parameters:
source - the source jar
destination - the destination jar (may be the same as the source jar)
props - the packing properties
Throws:
IOException

unpack

public static void unpack(File source,
                          File destination,
                          Map props)
                   throws IOException
Unpack a jar.

Parameters:
source - the packed jar
destination - the unpacked jar
props - the packing properties
Throws:
IOException


Copyright © 2005-2012 Codehaus. All Rights Reserved.