out.writeLong(generation.getGenerationId()); out.writeBoolean(generation.isDirectory()); out.writeBoolean(generation.isReference()); out.writeBoolean(generation.hasPackageInfo()); if (bundleInfo.getBundleId() == 0) { if (generation.isReference()) {
out.writeLong(generation.getGenerationId()); out.writeBoolean(generation.isDirectory()); out.writeBoolean(generation.isReference()); out.writeBoolean(generation.hasPackageInfo()); if (bundleInfo.getBundleId() == 0) { if (generation.isReference()) {
out.writeLong(generation.getGenerationId()); out.writeBoolean(generation.isDirectory()); out.writeBoolean(generation.isReference()); out.writeBoolean(generation.hasPackageInfo()); if (bundleInfo.getBundleId() == 0) { if (generation.isReference()) {
out.writeLong(generation.getGenerationId()); out.writeBoolean(generation.isDirectory()); out.writeBoolean(generation.isReference()); out.writeBoolean(generation.hasPackageInfo()); if (bundleInfo.getBundleId() == 0) { if (generation.isReference()) {
out.writeLong(generation.getGenerationId()); out.writeBoolean(generation.isDirectory()); out.writeBoolean(generation.isReference()); out.writeBoolean(generation.hasPackageInfo()); if (bundleInfo.getBundleId() == 0) { if (generation.isReference()) {
out.writeLong(generation.getGenerationId()); out.writeBoolean(generation.isDirectory()); out.writeBoolean(generation.isReference()); out.writeBoolean(generation.hasPackageInfo()); if (bundleInfo.getBundleId() == 0) { if (generation.isReference()) {
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); }