if (generation.isReference()) { out.writeUTF(new FilePath(installPath).makeRelative(new FilePath(generation.getContent().getAbsolutePath()))); } else {
if (generation.isReference()) { out.writeUTF(new FilePath(installPath).makeRelative(new FilePath(generation.getContent().getAbsolutePath()))); } else {
if (generation.isReference()) { out.writeUTF(new FilePath(installPath).makeRelative(new FilePath(generation.getContent().getAbsolutePath()))); } else {
if (generation.isReference()) { out.writeUTF(new FilePath(installPath).makeRelative(new FilePath(generation.getContent().getAbsolutePath()))); } else {
if (generation.isReference()) { out.writeUTF(new FilePath(installPath).makeRelative(new FilePath(generation.getContent().getAbsolutePath()))); } else {
if (generation.isReference()) { out.writeUTF(new FilePath(installPath).makeRelative(new FilePath(generation.getContent().getAbsolutePath()))); } else {
private boolean needsDiscarding(Generation generation) { for (StorageHook<?, ?> hook : generation.getStorageHooks()) { try { hook.validate(); } catch (IllegalStateException e) { // TODO Logging? return true; } } File content = generation.getContent(); if (getConfiguration().inCheckConfigurationMode()) { if (generation.isDirectory()) { content = new File(content, "META-INF/MANIFEST.MF"); //$NON-NLS-1$ } return generation.getLastModified() != secureAction.lastModified(content); } if (!content.exists()) { // the content got deleted since last time! return true; } return false; }
private boolean needsDiscarding(Generation generation) { for (StorageHook<?, ?> hook : generation.getStorageHooks()) { try { hook.validate(); } catch (IllegalStateException e) { // TODO Logging? return true; } } File content = generation.getContent(); if (getConfiguration().inCheckConfigurationMode()) { if (generation.isDirectory()) { content = new File(content, "META-INF/MANIFEST.MF"); //$NON-NLS-1$ } return generation.getLastModified() != secureAction.lastModified(content); } if (!content.exists()) { // the content got deleted since last time! return true; } return false; }
private boolean needsDiscarding(Generation generation) { for (StorageHook<?, ?> hook : generation.getStorageHooks()) { try { hook.validate(); } catch (IllegalStateException e) { // TODO Logging? return true; } } File content = generation.getContent(); if (getConfiguration().inCheckConfigurationMode()) { if (generation.isDirectory()) { content = new File(content, "META-INF/MANIFEST.MF"); //$NON-NLS-1$ } return generation.getLastModified() != secureAction.lastModified(content); } if (!content.exists()) { // the content got deleted since last time! return true; } return false; }
private boolean needsDiscarding(Generation generation) { for (StorageHook<?, ?> hook : generation.getStorageHooks()) { try { hook.validate(); } catch (IllegalStateException e) { // TODO Logging? return true; } } File content = generation.getContent(); if (!content.exists()) { // the content got deleted since last time! return true; } if (getConfiguration().inCheckConfigurationMode()) { if (generation.isDirectory()) content = new File(content, "META-INF/MANIFEST.MF"); //$NON-NLS-1$ return generation.getLastModified() != secureAction.lastModified(content); } return false; }
private boolean needsDiscarding(Generation generation) { for (StorageHook<?, ?> hook : generation.getStorageHooks()) { try { hook.validate(); } catch (IllegalStateException e) { // TODO Logging? return true; } } File content = generation.getContent(); if (getConfiguration().inCheckConfigurationMode()) { if (generation.isDirectory()) { content = new File(content, "META-INF/MANIFEST.MF"); //$NON-NLS-1$ } return generation.getLastModified() != secureAction.lastModified(content); } if (!content.exists()) { // the content got deleted since last time! return true; } return false; }
private boolean needsDiscarding(Generation generation) { for (StorageHook<?, ?> hook : generation.getStorageHooks()) { try { hook.validate(); } catch (IllegalStateException e) { // TODO Logging? return true; } } File content = generation.getContent(); if (!content.exists()) { // the content got deleted since last time! return true; } if (getConfiguration().inCheckConfigurationMode()) { if (generation.isDirectory()) content = new File(content, "META-INF/MANIFEST.MF"); //$NON-NLS-1$ return generation.getLastModified() != secureAction.lastModified(content); } return false; }
private void refresh(Module module) throws BundleException { ModuleRevision current = module.getCurrentRevision(); Generation currentGen = (Generation) current.getRevisionInfo(); File content = currentGen.getContent(); String spec = (currentGen.isReference() ? "reference:" : "") + content.toURI().toString(); //$NON-NLS-1$ //$NON-NLS-2$ URLConnection contentConn; try { contentConn = getContentConnection(spec); } catch (IOException e) { throw new BundleException("Error reading bundle content.", e); //$NON-NLS-1$ } update(module, contentConn); }
private void refresh(Module module) throws BundleException { ModuleRevision current = module.getCurrentRevision(); Generation currentGen = (Generation) current.getRevisionInfo(); File content = currentGen.getContent(); String spec = (currentGen.isReference() ? "reference:" : "") + content.toURI().toString(); //$NON-NLS-1$ //$NON-NLS-2$ URLConnection contentConn; try { contentConn = getContentConnection(spec); } catch (IOException e) { throw new BundleException("Error reading bundle content.", e); //$NON-NLS-1$ } update(module, contentConn); }