-
Notifications
You must be signed in to change notification settings - Fork 30
Consider only artifacts with "osgi.bundle" classifier #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright (C) 2015-2020 DiffPlug | ||
* Copyright (C) 2015-2021 DiffPlug | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
|
@@ -27,7 +27,7 @@ | |
|
||
public class MavenCentralMappingTest { | ||
@Test | ||
public void testParsing() throws IOException, ParserConfigurationException, SAXException { | ||
public void testParsing463() throws IOException, ParserConfigurationException, SAXException { | ||
try (InputStream input = MavenCentralMappingTest.class.getResourceAsStream("/artifacts-4.6.3.xml")) { | ||
assert463(MavenCentralMapping.parse(input)); | ||
} | ||
|
@@ -42,7 +42,23 @@ private void assert463(Map<String, String> bundleToVersion) { | |
Assertions.assertThat(bundleToVersion) | ||
.containsEntry("org.eclipse.debug.core", "3.10.100") | ||
.containsEntry("org.eclipse.equinox.p2.metadata", "2.3.100") | ||
.hasSize(895); | ||
.containsEntry("org.eclipse.help", "3.7.0") | ||
.hasSize(743); | ||
} | ||
|
||
@Test | ||
public void testParsing4140() throws IOException, ParserConfigurationException, SAXException { | ||
try (InputStream input = MavenCentralMappingTest.class.getResourceAsStream("/artifacts-4.14.0.xml")) { | ||
assert4140(MavenCentralMapping.parse(input)); | ||
} | ||
} | ||
|
||
private void assert4140(Map<String, String> bundleToVersion) { | ||
Assertions.assertThat(bundleToVersion) | ||
.containsEntry("org.eclipse.debug.core", "3.14.100") | ||
.containsEntry("org.eclipse.equinox.p2.metadata", "2.4.600") | ||
.containsEntry("org.eclipse.help", "3.8.600") | ||
.hasSize(785); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Output: https://github.com/jmini/ecentral/blob/master/data/4.14/bnd-output.txt Approach described on stackoverflow: |
||
} | ||
|
||
@Test | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
743
is also the size returned bnd when listing the content of thehttps://download.eclipse.org/eclipse/updates/4.6/
Output: https://github.com/jmini/ecentral/blob/master/data/4.6/bnd-output.txt
Approach described on stackoverflow:
How to programmatically query a p2 repository for information and artifacts?