private SmartFile(String s) { if (s == null) throw new NullPointerException(); // note that "" is a valid filename // IT 7500 get rid of quotes!!! s = StringUtils.removeEnclosingQuotes(s); convert(new File(s).getAbsolutePath()); }
private SmartFile(String s) { if (s == null) throw new NullPointerException(); // note that "" is a valid filename // IT 7500 get rid of quotes!!! s = StringUtils.removeEnclosingQuotes(s); convert(new File(s).getAbsolutePath()); }
private SmartFile(String s) { if (s == null) throw new NullPointerException(); // note that "" is a valid filename // IT 7500 get rid of quotes!!! s = StringUtils.removeEnclosingQuotes(s); convert(new File(s).getAbsolutePath()); }
JvmOptions(List<String> options) throws GFLauncherException { // We get them from domain.xml as a list of Strings // -Dx=y -Dxx -XXfoo -XXgoo=zzz -client -server // Issue 4434 -- we might get a jvm-option like this: // <jvm-options>"-xxxxxx"</jvm-options> notice the literal double-quotes for (String s : options) { s = StringUtils.removeEnclosingQuotes(s); if (s.startsWith("-D")) { addSysProp(s); } else if (s.startsWith("-XX")) { addXxProp(s); } else if (s.startsWith("-X")) { addXProp(s); } else if (s.startsWith("-")) { addPlainProp(s); } else // TODO i18n { throw new GFLauncherException("UnknownJvmOptionFormat", s); } } filter(); // get rid of forbidden stuff setOsgiPort(); }