@Override public PackageProperties getPackageProperties() throws IOException { return getPackage().getProperties(); } }
/** * Returns the properties (name, version, dependencies, etc.) for the provided VLT package file * * @throws IOException if it can't read the file */ public static PackageProperties packageProperties(File packageFile) throws IOException { final PackageManagerImpl packageManager = new PackageManagerImpl(); final VaultPackage vltPck = packageManager.open(packageFile); return vltPck.getProperties(); }
try { handler.beforeExtract(packageId, inspectSession, vaultPackage.getProperties(), vaultPackage.getMetaInf(), subpacks); } catch (final RepositoryException e) { getErrorListener().onListenerException(e, handler, packageId);