diff options
author | John Arthorne | 2010-05-10 17:19:16 +0000 |
---|---|---|
committer | John Arthorne | 2010-05-10 17:19:16 +0000 |
commit | 06d02a2ebb00c7e090cee8147c9f7c3f2fd39fc7 (patch) | |
tree | 9719a052747f82e4ccd6d7de94ceeda0db061281 | |
parent | c6b988866d938b4e6109f74a247f4879f6dab428 (diff) | |
download | rt.equinox.p2-06d02a2ebb00c7e090cee8147c9f7c3f2fd39fc7.tar.gz rt.equinox.p2-06d02a2ebb00c7e090cee8147c9f7c3f2fd39fc7.tar.xz rt.equinox.p2-06d02a2ebb00c7e090cee8147c9f7c3f2fd39fc7.zip |
update repo URL and include feature version in report
-rw-r--r-- | bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/TestLicenseConsistency.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/TestLicenseConsistency.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/TestLicenseConsistency.java index dfd9b041d..7c8b79bbf 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/TestLicenseConsistency.java +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/TestLicenseConsistency.java @@ -28,7 +28,7 @@ import org.eclipse.equinox.p2.repository.metadata.IMetadataRepository; */ public class TestLicenseConsistency extends AbstractProvisioningTest { public void testLicenses() throws URISyntaxException, ProvisionException, OperationCanceledException { - URI repoLocation = new URI("http://download.eclipse.org/releases/helios"); + URI repoLocation = new URI("http://download.eclipse.org/releases/helios/201005070900"); IMetadataRepository repo = getMetadataRepositoryManager().loadRepository(repoLocation, null); IQueryResult<IInstallableUnit> allFeatures = repo.query(QueryUtil.createIUGroupQuery(), null); IQueryResult<IInstallableUnit> platform = allFeatures.query(QueryUtil.createIUQuery("org.eclipse.platform.feature.group"), null); @@ -60,17 +60,17 @@ public class TestLicenseConsistency extends AbstractProvisioningTest { System.out.println("Features with no license:" + SPACER); for (IInstallableUnit unit : sort(noLicense)) { - System.out.println(unit.getId()); + System.out.println(unit.getId() + ' ' + unit.getVersion()); } System.out.println("\n\nFeatures with different license:" + SPACER); for (IInstallableUnit unit : sort(badLicense)) { - System.out.println(unit.getId()); + System.out.println(unit.getId() + ' ' + unit.getVersion()); } System.out.println("\n\nFeatures with matching license:" + SPACER); for (IInstallableUnit unit : sort(goodLicense)) { - System.out.println(unit.getId()); + System.out.println(unit.getId() + ' ' + unit.getVersion()); } } @@ -97,9 +97,9 @@ public class TestLicenseConsistency extends AbstractProvisioningTest { ILicense featureLicense = licenses.iterator().next(); if (!platformLicense.getUUID().equals(featureLicense.getUUID())) { badLicense.add(feature); - // if (featureLicense.getBody().length() < 100) { - // System.out.println(feature.getId() + " license: " + featureLicense.getBody()); - // } +// if (featureLicense.getBody().length() < 100) { +// System.out.println(feature.getId() + " license: " + featureLicense.getBody()); +// } continue; } goodLicense.add(feature); |