Package VASSAL.tools
Class ZipUpdater
java.lang.Object
VASSAL.tools.ZipUpdater
- All Implemented Interfaces:
Runnable
public class ZipUpdater extends Object implements Runnable
Automatically builds a .jar file that will update a Zip archive.
Usage: java VASSAL.tools.ZipUpdater
will create a file named update.jar Executing this jar (by double-clicking or
typing "java -jar update.jar") will update the old archive so that its contents are identical to
the new archive.
User: rkinney
Date: Oct 23, 2003
-
Field Summary
Fields Modifier and Type Field Description static StringCHECKSUM_RESOURCEstatic StringENTRIES_DIRstatic StringTARGET_ARCHIVEstatic StringUPDATED_ARCHIVE_NAME -
Constructor Summary
Constructors Constructor Description ZipUpdater(File input) -
Method Summary
Modifier and Type Method Description voidcreateUpdater(File newFile)voidcreateUpdater(File newFile, File updaterFile)static voidmain(String[] args)voidrun()voidwrite(File destination)
-
Field Details
-
CHECKSUM_RESOURCE
- See Also:
- Constant Field Values
-
TARGET_ARCHIVE
- See Also:
- Constant Field Values
-
UPDATED_ARCHIVE_NAME
- See Also:
- Constant Field Values
-
ENTRIES_DIR
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ZipUpdater
- Throws:
IOException
-
-
Method Details
-
write
- Throws:
IOException
-
createUpdater
- Throws:
IOException
-
createUpdater
- Throws:
IOException
-
run
public void run() -
main
-