/**
* Output stream for archived data
*/
- JarOutputStream newarchive=null;
+ org.apache.tools.zip.ZipOutputStream newarchive=null;
/**
* JarEntries written to archive
*/
* @throws IOException if entry name was invalid or a new entry could not be made on newarchive
*/
private boolean addValidEntry(String entry) throws IOException {
- JarEntry je = new JarEntry(entry);
+ org.apache.tools.zip.ZipEntry je = new org.apache.tools.zip.ZipEntry(entry);
+ // je.setExsetExtra(null);
if (!addEntry(entry))
return false;
newarchive.flush();
if (newarchive!=null) {
try {
newarchive.closeEntry();
- newarchive.putNextEntry(new JarEntry("deleted"));
+ newarchive.putNextEntry(new org.apache.tools.zip.ZipEntry("deleted"));
newarchive.closeEntry();
newarchive.close();
if (!rchive.lockFile())
throw new IOException("Failed to get lock on file "+archive);
// LATER: locked IO stream based access.
- Manifest newmanifest = new Manifest();
- newarchive = new JarOutputStream(rchive.fileLock.getBufferedOutputStream(true), newmanifest);
+ // Manifest newmanifest = new Manifest();
+ newarchive = new org.apache.tools.zip.ZipOutputStream(rchive.fileLock.getBufferedOutputStream(true));// , newmanifest);
//newarchive = new JarOutputStream(new BufferedOutputStream(new java.io.FileOutputStream(archive)));
entries = new Hashtable();
}