Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 114472 Details for
Bug 249996
[artifact] MirrorApplication does not mirror properly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Lets Mirroring bypass processing steps
249996patch.txt (text/plain), 2.64 KB, created by
Andrew Cattle
on 2008-10-07 16:05:33 EDT
(
hide
)
Description:
Lets Mirroring bypass processing steps
Filename:
MIME Type:
Creator:
Andrew Cattle
Created:
2008-10-07 16:05:33 EDT
Size:
2.64 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.equinox.p2.artifact.repository >Index: src/org/eclipse/equinox/internal/p2/artifact/mirror/Mirroring.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/mirror/Mirroring.java,v >retrieving revision 1.2 >diff -u -r1.2 Mirroring.java >--- src/org/eclipse/equinox/internal/p2/artifact/mirror/Mirroring.java 30 Sep 2008 00:09:07 -0000 1.2 >+++ src/org/eclipse/equinox/internal/p2/artifact/mirror/Mirroring.java 7 Oct 2008 19:58:11 -0000 >@@ -14,6 +14,7 @@ > import java.io.IOException; > import java.io.OutputStream; > import org.eclipse.core.runtime.NullProgressMonitor; >+import org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository; > import org.eclipse.equinox.internal.provisional.p2.artifact.repository.*; > import org.eclipse.equinox.internal.provisional.p2.core.ProvisionException; > import org.eclipse.equinox.internal.provisional.p2.metadata.IArtifactKey; >@@ -54,7 +55,8 @@ > if (repositoryStream == null) > return; > // TODO Is that ok to ignore the result? >- source.getArtifact(descriptor, repositoryStream, new NullProgressMonitor()); >+ //TODO remove cast when API becomes available >+ ((SimpleArtifactRepository) source).getRawArtifact(descriptor, repositoryStream, new NullProgressMonitor()); > } finally { > if (repositoryStream != null) > repositoryStream.close(); >Index: src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.equinox/p2/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java,v >retrieving revision 1.63 >diff -u -r1.63 SimpleArtifactRepository.java >--- src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java 26 Sep 2008 19:30:02 -0000 1.63 >+++ src/org/eclipse/equinox/internal/p2/artifact/repository/simple/SimpleArtifactRepository.java 7 Oct 2008 19:58:11 -0000 >@@ -515,6 +515,10 @@ > return downloadArtifact(descriptor, destination, monitor); > } > >+ public IStatus getRawArtifact(IArtifactDescriptor descriptor, OutputStream destination, IProgressMonitor monitor) { >+ return downloadArtifact(descriptor, destination, monitor); >+ } >+ > public synchronized IArtifactDescriptor[] getArtifactDescriptors(IArtifactKey key) { > Collection result = (Collection) artifactMap.get(key); > if (result == null)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 249996
:
114472
|
114540
|
114593
|
114594
|
114791
|
115034