com.partnersoft.tools
Class Zipper

java.lang.Object
  extended by com.partnersoft.tools.Zipper

public class Zipper
extends java.lang.Object

Makes a zip file of the given directory. Simple enough.

Author:
Paul Reavis Copyright 2000 Partner Software, Inc.

Constructor Summary
Zipper()
           
 
Method Summary
static void main(java.lang.String[] argv)
           
static void zip(java.io.File zipFile, java.io.File root, java.util.List inputFiles)
          Zips up the given list of files, relative to the given root directory.
static void zip(java.io.File zipFile, java.util.List inputFiles)
          Zips up the given list of files, relative to the root (installation) directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Zipper

public Zipper()
Method Detail

main

public static void main(java.lang.String[] argv)

zip

public static void zip(java.io.File zipFile,
                       java.util.List inputFiles)
                throws java.io.IOException
Zips up the given list of files, relative to the root (installation) directory.

Parameters:
zipFile - file to create
inputFiles - list of files to add (including contents)
Throws:
java.io.IOException

zip

public static void zip(java.io.File zipFile,
                       java.io.File root,
                       java.util.List inputFiles)
                throws java.io.IOException
Zips up the given list of files, relative to the given root directory.

Parameters:
zipFile - file to create
root - root directory; becomes root of zipfile directory structure
inputFiles - list of files to add (including directory contents)
Throws:
java.io.IOException