From cdba88c7e6e8ea76d667807640d2d3f1ecdb22f4 Mon Sep 17 00:00:00 2001 From: EverettHanke <156118104+EverettHanke@users.noreply.github.com> Date: Fri, 29 Nov 2024 23:58:07 -0800 Subject: [PATCH] Always add a version if exporting a package #1426 Changed the default for get version to always return a version even if file is unversioned. Defaults at 1.0.0 --- .../pde/internal/core/text/bundle/ImportPackageObject.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/org.eclipse.pde.core/text/org/eclipse/pde/internal/core/text/bundle/ImportPackageObject.java b/ui/org.eclipse.pde.core/text/org/eclipse/pde/internal/core/text/bundle/ImportPackageObject.java index 4cf51b8254..02925ce339 100644 --- a/ui/org.eclipse.pde.core/text/org/eclipse/pde/internal/core/text/bundle/ImportPackageObject.java +++ b/ui/org.eclipse.pde.core/text/org/eclipse/pde/internal/core/text/bundle/ImportPackageObject.java @@ -39,7 +39,7 @@ private static String getVersion(ExportPackageDescription desc) { "[" + version.getMajor() + "." + version.getMinor() + "," + (version.getMajor() + 1) + ")") //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$//$NON-NLS-4$ .toString(); } - return null; + return "[1.0.0)"; } public ImportPackageObject(ManifestHeader header, ManifestElement element, String versionAttribute) {