Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2015-03-09 20:54:50 +0000
committerPascal Rapicault2015-03-09 20:54:50 +0000
commit97c049de6141ed78adc45f6083aeb9ff447bfd0c (patch)
tree86b79a1e227f85048126a70598ba04f05ede29dd
parent1f7d3bed9b77058a2c2bb18c4846c30fcfab6d18 (diff)
downloadrt.equinox.p2-97c049de6141ed78adc45f6083aeb9ff447bfd0c.tar.gz
rt.equinox.p2-97c049de6141ed78adc45f6083aeb9ff447bfd0c.tar.xz
rt.equinox.p2-97c049de6141ed78adc45f6083aeb9ff447bfd0c.zip
Bug 461758 - [Mac] Branding iron should set CFBundleDisplayNameI20150311-1300I20150310-0800
-rw-r--r--bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/BrandingIron.java4
-rw-r--r--bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/InfoPListEditor.java1
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/EquinoxExecutableActionTest.java2
3 files changed, 5 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/BrandingIron.java b/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/BrandingIron.java
index 183653d06..b4c060b50 100644
--- a/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/BrandingIron.java
+++ b/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/BrandingIron.java
@@ -504,8 +504,10 @@ public class BrandingIron {
}
//Deal with error case
+ String capitalizedName = name.substring(0, 1).toUpperCase() + name.substring(1);
infoPListEditor.setKey(InfoPListEditor.MARKER_KEY, name);
- infoPListEditor.setKey(InfoPListEditor.BUNDLE_KEY, name);
+ infoPListEditor.setKey(InfoPListEditor.BUNDLE_KEY, capitalizedName);
+ infoPListEditor.setKey(InfoPListEditor.BUNDLE_DISPLAYNAME_KEY, capitalizedName);
infoPListEditor.setKey(InfoPListEditor.BUNDLE_ID_KEY, id == null ? name : id);
if (description != null)
infoPListEditor.setKey(InfoPListEditor.BUNDLE_INFO_KEY, description);
diff --git a/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/InfoPListEditor.java b/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/InfoPListEditor.java
index 72c8885f4..9599eb27c 100644
--- a/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/InfoPListEditor.java
+++ b/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/internal/p2/publisher/eclipse/InfoPListEditor.java
@@ -26,6 +26,7 @@ public class InfoPListEditor {
public static final String MARKER_KEY = "CFBundleExecutable"; //$NON-NLS-1$
public static final String BUNDLE_KEY = "CFBundleName"; //$NON-NLS-1$
public static final String BUNDLE_ID_KEY = "CFBundleIdentifier"; //$NON-NLS-1$
+ public static final String BUNDLE_DISPLAYNAME_KEY = "CFBundleDisplayName"; //$NON-NLS-1$
public static final String BUNDLE_INFO_KEY = "CFBundleGetInfoString"; //$NON-NLS-1$
public static final String BUNDLE_VERSION_KEY = "CFBundleVersion"; //$NON-NLS-1$
public static final String BUNDLE_SHORT_VERSION_KEY = "CFBundleShortVersionString"; //$NON-NLS-1$
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/EquinoxExecutableActionTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/EquinoxExecutableActionTest.java
index 37101f8df..158f66e45 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/EquinoxExecutableActionTest.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/publisher/actions/EquinoxExecutableActionTest.java
@@ -215,10 +215,10 @@ public class EquinoxExecutableActionTest extends ActionTest {
assertTrue(found);
try {
String contents = readContentsAndClose(zip.getInputStream(candidate));
- System.out.println("INFO.PLIST.CONTENT IS----> " + contents);
assertEquals(id, getPlistStringValue(contents, "CFBundleIdentifier"));
assertEquals(EXECUTABLE_NAME, getPlistStringValue(contents, "CFBundleExecutable"));
assertEquals(EXECUTABLE_NAME, getPlistStringValue(contents, "CFBundleName"));
+ assertEquals(EXECUTABLE_NAME, getPlistStringValue(contents, "CFBundleDisplayName"));
assertEquals(version.toString(), getPlistStringValue(contents, "CFBundleVersion"));
} catch (IOException e) {
fail();

Back to the top