Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2010-04-19 20:33:03 +0000
committerAndrew Niefer2010-04-19 20:33:03 +0000
commit43a1c6d089ab14105f9f15d49baf232742cd6324 (patch)
treefbc6ce2e270caed9b47cf38e585a22ec7cf82fac /bundles/org.eclipse.equinox.frameworkadmin.equinox
parentf0d0f8108745e684246a109c8f47af9f3ead2da8 (diff)
downloadrt.equinox.p2-43a1c6d089ab14105f9f15d49baf232742cd6324.tar.gz
rt.equinox.p2-43a1c6d089ab14105f9f15d49baf232742cd6324.tar.xz
rt.equinox.p2-43a1c6d089ab14105f9f15d49baf232742cd6324.zip
bug 309227 - osgi.launcherPath getting mangled
Diffstat (limited to 'bundles/org.eclipse.equinox.frameworkadmin.equinox')
-rw-r--r--bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/internal/frameworkadmin/equinox/EquinoxFwConfigFileParser.java40
1 files changed, 21 insertions, 19 deletions
diff --git a/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/internal/frameworkadmin/equinox/EquinoxFwConfigFileParser.java b/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/internal/frameworkadmin/equinox/EquinoxFwConfigFileParser.java
index e62bf9a2a..cd6735c59 100644
--- a/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/internal/frameworkadmin/equinox/EquinoxFwConfigFileParser.java
+++ b/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/internal/frameworkadmin/equinox/EquinoxFwConfigFileParser.java
@@ -215,11 +215,11 @@ public class EquinoxFwConfigFileParser {
}
//Start figuring out stuffs
- URI rootURI = launcherData.getLauncher() != null ? launcherData.getLauncher().getParentFile().toURI() : null;
+ //URI rootURI = launcherData.getLauncher() != null ? launcherData.getLauncher().getParentFile().toURI() : null;
readFwJarLocation(configData, launcherData, props);
URI configArea = inputFile.getParentFile().toURI();
- readLauncherPath(props, rootURI);
+ //readLauncherPath(props, rootURI);
readp2DataArea(props, configArea);
readSimpleConfiguratorURL(props, configArea);
readBundlesList(manipulator, ParserUtils.getOSGiInstallArea(Arrays.asList(launcherData.getProgramArgs()), props, launcherData).toURI(), props);
@@ -377,21 +377,23 @@ public class EquinoxFwConfigFileParser {
}
}
- private void readLauncherPath(Properties props, URI root) throws URISyntaxException {
- if (props.getProperty(EquinoxConstants.PROP_LAUNCHER_PATH) != null)
- props.setProperty(EquinoxConstants.PROP_LAUNCHER_PATH, URIUtil.makeAbsolute(URIUtil.fromString(props.getProperty(EquinoxConstants.PROP_LAUNCHER_PATH)), root).toString());
- }
-
- private void writeLauncherPath(ConfigData configData, Properties props, URI root) throws URISyntaxException {
- String value = getFwProperty(configData, EquinoxConstants.PROP_LAUNCHER_PATH);
- if (value != null) {
- URI launcherPathURI = FileUtils.fromPath(value);
- String launcherPath = URIUtil.toUnencodedString(URIUtil.makeRelative(launcherPathURI, root));
- if ("/".equals(launcherPath) || "".equals(launcherPath)) //$NON-NLS-1$ //$NON-NLS-2$
- launcherPath = "."; //$NON-NLS-1$
- props.setProperty(EquinoxConstants.PROP_LAUNCHER_PATH, launcherPath);
- }
- }
+ // private void readLauncherPath(Properties props, URI root) throws URISyntaxException {
+ // if (props.getProperty(EquinoxConstants.PROP_LAUNCHER_PATH) != null) {
+ // URI absoluteURI = URIUtil.makeAbsolute(URIUtil.fromString(props.getProperty(EquinoxConstants.PROP_LAUNCHER_PATH)), root);
+ // props.setProperty(EquinoxConstants.PROP_LAUNCHER_PATH, URIUtil.toUnencodedString(absoluteURI));
+ // }
+ // }
+ //
+ // private void writeLauncherPath(ConfigData configData, Properties props, URI root) throws URISyntaxException {
+ // String value = getFwProperty(configData, EquinoxConstants.PROP_LAUNCHER_PATH);
+ // if (value != null) {
+ // URI launcherPathURI = FileUtils.fromPath(value);
+ // String launcherPath = URIUtil.toUnencodedString(URIUtil.makeRelative(launcherPathURI, root));
+ // if ("/".equals(launcherPath) || "".equals(launcherPath)) //$NON-NLS-1$ //$NON-NLS-2$
+ // launcherPath = "."; //$NON-NLS-1$
+ // props.setProperty(EquinoxConstants.PROP_LAUNCHER_PATH, launcherPath);
+ // }
+ // }
private void readSimpleConfiguratorURL(Properties props, URI configArea) throws URISyntaxException {
if (props.getProperty(KEY_ORG_ECLIPSE_EQUINOX_SIMPLECONFIGURATOR_CONFIGURL) != null)
@@ -434,11 +436,11 @@ public class EquinoxFwConfigFileParser {
String header = "This configuration file was written by: " + this.getClass().getName(); //$NON-NLS-1$
Properties configProps = new Properties();
- URI rootURI = launcherData.getLauncher() != null ? launcherData.getLauncher().getParentFile().toURI() : null;
+ //URI rootURI = launcherData.getLauncher() != null ? launcherData.getLauncher().getParentFile().toURI() : null;
writeFwJarLocation(configData, launcherData, configProps);
try {
- writeLauncherPath(configData, configProps, rootURI);
+ //writeLauncherPath(configData, configProps, rootURI);
URI configArea = manipulator.getLauncherData().getFwConfigLocation().toURI();
writep2DataArea(configData, configProps, configArea);
writeSimpleConfiguratorURL(configData, configProps, configArea);

Back to the top