/** * Builds a URL with the given specification * @param spec the URL specification * @param trailingSlash flag to indicate a trailing slash on the spec * @return a URL */ public static URL buildURL(String spec, boolean trailingSlash) { return LocationHelper.buildURL(spec, trailingSlash); }
/** * Builds a URL with the given specification * @param spec the URL specification * @param trailingSlash flag to indicate a trailing slash on the spec * @return a URL */ public static URL buildURL(String spec, boolean trailingSlash) { return LocationHelper.buildURL(spec, trailingSlash); }
/** * Builds a URL with the given specification * @param spec the URL specification * @param trailingSlash flag to indicate a trailing slash on the spec * @return a URL */ public static URL buildURL(String spec, boolean trailingSlash) { return LocationHelper.buildURL(spec, trailingSlash); }
/** * Builds a URL with the given specification * @param spec the URL specification * @param trailingSlash flag to indicate a trailing slash on the spec * @return a URL */ public static URL buildURL(String spec, boolean trailingSlash) { return LocationHelper.buildURL(spec, trailingSlash); }
/** * Builds a URL with the given specification * @param spec the URL specification * @param trailingSlash flag to indicate a trailing slash on the spec * @return a URL */ public static URL buildURL(String spec, boolean trailingSlash) { return LocationHelper.buildURL(spec, trailingSlash); }
/** * Builds a URL with the given specification * @param spec the URL specification * @param trailingSlash flag to indicate a trailing slash on the spec * @return a URL */ public static URL buildURL(String spec, boolean trailingSlash) { return LocationHelper.buildURL(spec, trailingSlash); }
private static String getSysPathFromURL(String urlSpec) { if (urlSpec == null) return null; URL url = LocationHelper.buildURL(urlSpec, false); if (url == null) return null; File fwkFile = new File(url.getFile()); fwkFile = new File(fwkFile.getAbsolutePath()); fwkFile = new File(fwkFile.getParent()); return fwkFile.getAbsolutePath(); }
private static String getSysPathFromURL(String urlSpec) { if (urlSpec == null) return null; URL url = LocationHelper.buildURL(urlSpec, false); if (url == null) return null; File fwkFile = new File(url.getFile()); fwkFile = new File(fwkFile.getAbsolutePath()); fwkFile = new File(fwkFile.getParent()); return fwkFile.getAbsolutePath(); }
private static String getSysPathFromURL(String urlSpec) { if (urlSpec == null) return null; URL url = LocationHelper.buildURL(urlSpec, false); if (url == null) return null; File fwkFile = new File(url.getFile()); fwkFile = new File(fwkFile.getAbsolutePath()); fwkFile = new File(fwkFile.getParent()); return fwkFile.getAbsolutePath(); }
private static String getSysPathFromURL(String urlSpec) { if (urlSpec == null) return null; URL url = LocationHelper.buildURL(urlSpec, false); if (url == null) return null; File fwkFile = new File(url.getFile()); fwkFile = new File(fwkFile.getAbsolutePath()); fwkFile = new File(fwkFile.getParent()); return fwkFile.getAbsolutePath(); }
private static String getSysPathFromURL(String urlSpec) { if (urlSpec == null) return null; URL url = LocationHelper.buildURL(urlSpec, false); if (url == null) return null; File fwkFile = LocationHelper.decodePath(new File(url.getPath())); fwkFile = new File(fwkFile.getAbsolutePath()); fwkFile = new File(fwkFile.getParent()); return fwkFile.getAbsolutePath(); }
private URL computeInstallConfigurationLocation() { String property = equinoxConfig.getConfiguration(PROP_INSTALL_AREA); if (property != null) return LocationHelper.buildURL(property, true); return null; }
private static String getSysPathFromURL(String urlSpec) { if (urlSpec == null) return null; URL url = LocationHelper.buildURL(urlSpec, false); if (url == null) return null; File fwkFile = LocationHelper.decodePath(new File(url.getPath())); fwkFile = new File(fwkFile.getAbsolutePath()); fwkFile = new File(fwkFile.getParent()); return fwkFile.getAbsolutePath(); }
private URL computeInstallConfigurationLocation() { String property = equinoxConfig.getConfiguration(PROP_INSTALL_AREA); if (property != null) return LocationHelper.buildURL(property, true); return null; }
private URL computeInstallConfigurationLocation() { String property = equinoxConfig.getConfiguration(PROP_INSTALL_AREA); if (property != null) return LocationHelper.buildURL(property, true); return null; }
private URL computeInstallConfigurationLocation() { String property = equinoxConfig.getConfiguration(PROP_INSTALL_AREA); if (property != null) return LocationHelper.buildURL(property, true); return null; }
private URL computeInstallConfigurationLocation() { String property = equinoxConfig.getConfiguration(PROP_INSTALL_AREA); if (property != null) return LocationHelper.buildURL(property, true); return null; }
private URL computeInstallConfigurationLocation() { String property = equinoxConfig.getConfiguration(PROP_INSTALL_AREA); if (property != null) return LocationHelper.buildURL(property, true); return null; }
public URL getDataArea(String filename) throws IOException { URL base = getURL(); if (base == null) throw new IOException(Msg.location_notSet); String prefix = base.toExternalForm(); if (prefix.length() > 0 && prefix.charAt(prefix.length() - 1) != '/') prefix += '/'; filename = filename.replace('\\', '/'); if (filename.length() > 0 && filename.charAt(0) == '/') filename = filename.substring(1); String spec = prefix + dataAreaPrefix + filename; boolean trailingSlash = spec.length() > 0 && spec.charAt(spec.length() - 1) == '/'; return LocationHelper.buildURL(spec, trailingSlash); } }
public URL getDataArea(String filename) throws IOException { URL base = getURL(); if (base == null) throw new IOException(Msg.location_notSet); String prefix = base.toExternalForm(); if (prefix.length() > 0 && prefix.charAt(prefix.length() - 1) != '/') prefix += '/'; filename = filename.replace('\\', '/'); if (filename.length() > 0 && filename.charAt(0) == '/') filename = filename.substring(1); String spec = prefix + dataAreaPrefix + filename; boolean trailingSlash = spec.length() > 0 && spec.charAt(spec.length() - 1) == '/'; return LocationHelper.buildURL(spec, trailingSlash); } }