/** * Closes the archive and does all required cleanup. * * @throws CoreException to signal any other unusual termination. * This can also be used to return information * in the status object. */ public void close() throws CoreException { if (fJarOutputStream != null) try { fJarOutputStream.close(); registerInWorkspaceIfNeeded(); } catch (IOException ex) { throw JarPackagerUtil.createCoreException(ex.getLocalizedMessage(), ex); } }
addDirectories(destinationPath, file); write(destinationPath, output.toByteArray(), lastModified); } catch (IOException ex) {
fJarPackage= jarPackage; Assert.isTrue(fJarPackage.isValid(), "The JAR package specification is invalid"); //$NON-NLS-1$ if (!canCreateJar(parent)) throw new OperationCanceledException();
addDirectories(destinationPath, file); write(destinationPath, output.toByteArray(), lastModified); } catch (IOException ex) {
fJarPackage= jarPackage; Assert.isTrue(fJarPackage.isValid(), "The JAR package specification is invalid"); //$NON-NLS-1$ if (!canCreateJar(parent)) throw new OperationCanceledException();
addDirectories(destinationPath, file); write(destinationPath, output.toByteArray(), lastModified); } catch (IOException ex) {
/** * Closes the archive and does all required cleanup. * * @throws CoreException to signal any other unusual termination. * This can also be used to return information * in the status object. */ public void close() throws CoreException { if (fJarOutputStream != null) try { fJarOutputStream.close(); registerInWorkspaceIfNeeded(); } catch (IOException ex) { throw JarPackagerUtil.createCoreException(ex.getLocalizedMessage(), ex); } }
fJarPackage= jarPackage; Assert.isTrue(fJarPackage.isValid(), "The JAR package specification is invalid"); //$NON-NLS-1$ if (!canCreateJar(parent)) throw new OperationCanceledException();
/** * Closes the archive and does all required cleanup. * * @throws CoreException to signal any other unusual termination. * This can also be used to return information * in the status object. */ public void close() throws CoreException { if (fJarOutputStream != null) try { fJarOutputStream.close(); registerInWorkspaceIfNeeded(); } catch (IOException ex) { throw JarPackagerUtil.createCoreException(ex.getLocalizedMessage(), ex); } }