Skip to content

Commit 971dde1

Browse files
committed
Handle bad versions gracefully
1 parent cb54a27 commit 971dde1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

plugins/org.eclipse.oomph.setup.installer/src/org/eclipse/oomph/setup/internal/installer/MarketplaceCatalogGenerator.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ public void perform(Map<String, URI> nodeURIs) throws Exception
482482
EList<EObject> contents = listingResource.getContents();
483483
if (contents.isEmpty())
484484
{
485-
System.err.println("Empty Listing: '" + listingURI);
485+
System.err.println("Empty Listing: '" + listingURI + "'");
486486
continue;
487487
}
488488

@@ -718,7 +718,14 @@ else if ("Linux/GTK".equals(platformName))
718718
{
719719
for (String eclipseVersion : StringUtil.explode(eclipseVersions, ","))
720720
{
721-
nodePlatformVersions.add(Version.create(eclipseVersion.trim()));
721+
try
722+
{
723+
nodePlatformVersions.add(Version.create(eclipseVersion.trim()));
724+
}
725+
catch (IllegalArgumentException ex)
726+
{
727+
System.err.println("Bad version: '" + eclipseVersion + "' for '" + listingURI);
728+
}
722729
}
723730
}
724731

0 commit comments

Comments
 (0)