Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Kaegi2008-02-29 21:15:27 +0000
committerSimon Kaegi2008-02-29 21:15:27 +0000
commit51188a46cbb5dd4819fffaf38fd66d4b6c53dd08 (patch)
tree572fecb62554dd52eba64b81c92001a22fc7e2f2
parent28545a5c5354e83ccdcb78e91f7a70542f390b4a (diff)
downloadrt.equinox.p2-51188a46cbb5dd4819fffaf38fd66d4b6c53dd08.tar.gz
rt.equinox.p2-51188a46cbb5dd4819fffaf38fd66d4b6c53dd08.tar.xz
rt.equinox.p2-51188a46cbb5dd4819fffaf38fd66d4b6c53dd08.zip
Bug 220434 UpdateSiteMetadataRepository writes tracing info to System.out
-rw-r--r--bundles/org.eclipse.equinox.p2.updatesite/META-INF/MANIFEST.MF1
-rw-r--r--bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/artifact/UpdateSiteArtifactRepository.java5
-rw-r--r--bundles/org.eclipse.equinox.p2.updatesite/src/org/eclipse/equinox/internal/p2/updatesite/metadata/UpdateSiteMetadataRepository.java4
3 files changed, 1 insertions, 9 deletions
diff --git a/bundles/org.eclipse.equinox.p2.updatesite/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.p2.updatesite/META-INF/MANIFEST.MF
index 8ba338ecd..471bbe44e 100644
--- a/bundles/org.eclipse.equinox.p2.updatesite/META-INF/MANIFEST.MF
+++ b/bundles/org.eclipse.equinox.p2.updatesite/META-INF/MANIFEST.MF
@@ -3,6 +3,7 @@ Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-Vendor: %providerName
Bundle-SymbolicName: org.eclipse.equinox.p2.updatesite;singleton:=true
+Bundle-Localization: plugin
Bundle-Version: 0.1.0.qualifier
Bundle-Activator: org.eclipse.equinox.internal.p2.updatesite.Activator
Eclipse-LazyStart: true
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 4cf3a5596..67d990b17 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
@@ -52,11 +52,9 @@ public class UpdateSiteArtifactRepository extends AbstractRepository implements
try {
DefaultSiteParser siteParser = new DefaultSiteParser();
- long start = System.currentTimeMillis();
Checksum checksum = new CRC32();
InputStream is = new CheckedInputStream(new BufferedInputStream(location.openStream()), checksum);
SiteModel siteModel = siteParser.parse(is);
- System.out.println("Time Fetching Artifact Site " + location + " was: " + (System.currentTimeMillis() - start) + " ms");
String savedChecksum = (String) artifactRepository.getProperties().get("site.checksum");
String checksumString = Long.toString(checksum.getValue());
@@ -97,9 +95,6 @@ public class UpdateSiteArtifactRepository extends AbstractRepository implements
IArtifactDescriptor[] descriptors = (IArtifactDescriptor[]) allSiteArtifacts.toArray(new IArtifactDescriptor[allSiteArtifacts.size()]);
artifactRepository.addDescriptors(descriptors);
-
- System.out.println("Time Fetching Artifact Site and Features for " + location + " was: " + (System.currentTimeMillis() - start) + " ms");
-
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
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 21a44fe52..1452139a1 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
@@ -53,9 +53,7 @@ public class UpdateSiteMetadataRepository extends AbstractRepository implements
try {
DefaultSiteParser siteParser = new DefaultSiteParser();
- long start = System.currentTimeMillis();
SiteModel siteModel = siteParser.parse(is);
- System.out.println("Time Fetching Metadata Site " + location + " was: " + (System.currentTimeMillis() - start) + " ms"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
String savedChecksum = (String) metadataRepository.getProperties().get(PROP_SITE_CHECKSUM);
String checksumString = Long.toString(checksum.getValue());
@@ -135,8 +133,6 @@ public class UpdateSiteMetadataRepository extends AbstractRepository implements
IInstallableUnit[] ius = (IInstallableUnit[]) allSiteIUs.toArray(new IInstallableUnit[allSiteIUs.size()]);
metadataRepository.addInstallableUnits(ius);
metadataRepository.setProperty(PROP_SITE_CHECKSUM, checksumString);
- System.out.println("Time Fetching Metadata Site and Features for " + location + " was: " + (System.currentTimeMillis() - start) + " ms"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
-
} catch (SAXException e) {
String msg = NLS.bind(Messages.UpdateSiteMetadataRepository_ErrorParsingUpdateSite, location);
throw new ProvisionException(new Status(IStatus.ERROR, Activator.ID, ProvisionException.REPOSITORY_FAILED_READ, msg, e));

Back to the top