diff options
author | Ian Bull | 2011-03-05 03:16:42 +0000 |
---|---|---|
committer | Ian Bull | 2011-03-05 03:16:42 +0000 |
commit | d826ca961eb560d90c9e8bbb266c06ad9bed8a6d (patch) | |
tree | 3687b3f9689ba60904941a51df380557b81095d7 /bundles/org.eclipse.equinox.p2.updatesite | |
parent | 088551f94aa91b7bbe9679da780ec00b548a17ad (diff) | |
download | rt.equinox.p2-d826ca961eb560d90c9e8bbb266c06ad9bed8a6d.tar.gz rt.equinox.p2-d826ca961eb560d90c9e8bbb266c06ad9bed8a6d.tar.xz rt.equinox.p2-d826ca961eb560d90c9e8bbb266c06ad9bed8a6d.zip |
NEW - bug 301903: Consider a file level lock during batch executionv20110305-0130
https://bugs.eclipse.org/bugs/show_bug.cgi?id=301903
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.updatesite')
2 files changed, 48 insertions, 3 deletions
diff --git a/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/artifact/UpdateSiteArtifactRepository.java b/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/artifact/UpdateSiteArtifactRepository.java index 1d9733b96..de167597c 100644 --- a/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/artifact/UpdateSiteArtifactRepository.java +++ b/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/artifact/UpdateSiteArtifactRepository.java @@ -13,8 +13,7 @@ package org.eclipse.equinox.internal.p2.updatesite.artifact; import java.io.OutputStream; import java.net.URI; import java.util.Map; -import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.core.runtime.IStatus; +import org.eclipse.core.runtime.*; import org.eclipse.equinox.p2.core.IProvisioningAgent; import org.eclipse.equinox.p2.core.ProvisionException; import org.eclipse.equinox.p2.metadata.IArtifactKey; @@ -36,10 +35,20 @@ public class UpdateSiteArtifactRepository implements IArtifactRepository { this.delegate = repository; } + public void addDescriptor(IArtifactDescriptor descriptor, IProgressMonitor monitor) { + throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ + } + + @Deprecated public void addDescriptor(IArtifactDescriptor descriptor) { throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ } + public void addDescriptors(IArtifactDescriptor[] descriptors, IProgressMonitor monitor) { + throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ + } + + @Deprecated public void addDescriptors(IArtifactDescriptor[] descriptors) { throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ } @@ -63,7 +72,7 @@ public class UpdateSiteArtifactRepository implements IArtifactRepository { public IStatus getArtifacts(IArtifactRequest[] requests, IProgressMonitor monitor) { return delegate.getArtifacts(requests, monitor); } - + public OutputStream getOutputStream(IArtifactDescriptor descriptor) throws ProvisionException { // TODO Auto-generated method stub return null; @@ -73,22 +82,47 @@ public class UpdateSiteArtifactRepository implements IArtifactRepository { return delegate.getRawArtifact(descriptor, destination, monitor); } + public void removeAll(IProgressMonitor monitor) { + throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ + } + + @Deprecated public void removeAll() { throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ } + public void removeDescriptor(IArtifactDescriptor descriptor, IProgressMonitor monitor) { + throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ + } + + @Deprecated public void removeDescriptor(IArtifactDescriptor descriptor) { throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ } + public void removeDescriptors(IArtifactDescriptor[] descriptors, IProgressMonitor monitor) { + throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ + } + + @Deprecated public void removeDescriptors(IArtifactDescriptor[] descriptors) { throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ } + public void removeDescriptor(IArtifactKey key, IProgressMonitor monitor) { + throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ + } + + @Deprecated public void removeDescriptor(IArtifactKey key) { throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ } + public void removeDescriptors(IArtifactKey[] keys, IProgressMonitor monitor) { + throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ + } + + @Deprecated public void removeDescriptors(IArtifactKey[] keys) { throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ } @@ -141,6 +175,10 @@ public class UpdateSiteArtifactRepository implements IArtifactRepository { throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ } + public String setProperty(String key, String value, IProgressMonitor monitor) { + throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ + } + public String setProperty(String key, String value) { throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ } diff --git a/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/metadata/UpdateSiteMetadataRepository.java b/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/metadata/UpdateSiteMetadataRepository.java index 84c8a3214..e28cef7ba 100644 --- a/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/metadata/UpdateSiteMetadataRepository.java +++ b/bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/metadata/UpdateSiteMetadataRepository.java @@ -166,6 +166,13 @@ public class UpdateSiteMetadataRepository implements IMetadataRepository { /* (non-Javadoc) * @see org.eclipse.equinox.p2.repository.IRepository#setProperty(java.lang.String, java.lang.String) */ + public String setProperty(String key, String value, IProgressMonitor monitor) { + throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ + } + + /* (non-Javadoc) + * @see org.eclipse.equinox.p2.repository.IRepository#setProperty(java.lang.String, java.lang.String) + */ public String setProperty(String key, String value) { throw new UnsupportedOperationException("Repository not modifiable: " + location); //$NON-NLS-1$ } |