List<File> getNativePath() { if (!enabled) { return Collections.emptyList(); } String cp = config.get("native-library-path"); if (GFLauncherUtils.ok(cp)) { return GFLauncherUtils.stringToFiles(cp); } else { return Collections.emptyList(); } }
List<File> getSuffixClasspath() { String cp = map.get("classpath-suffix"); if(GFLauncherUtils.ok(cp)) { return GFLauncherUtils.stringToFiles(cp); } else { return new ArrayList<File>(); } }
List<File> getSystemClasspath() { String cp = map.get("system-classpath"); if(GFLauncherUtils.ok(cp)) { return GFLauncherUtils.stringToFiles(cp); } else { return new ArrayList<File>(); } }
List<File> getPrefixClasspath() { String cp = map.get("classpath-prefix"); if(GFLauncherUtils.ok(cp)) { return GFLauncherUtils.stringToFiles(cp); } else { return new ArrayList<File>(); } }
List<File> getClasspath() { if (!enabled) { return Collections.emptyList(); } String cp = config.get("classpath"); if (GFLauncherUtils.ok(cp)) { return GFLauncherUtils.stringToFiles(cp); } else { return Collections.emptyList(); } }
List<File> getEnvClasspath() { if(useEnvClasspath()) { String s = System.getenv("CLASSPATH"); s = stripQuotes(s); return GFLauncherUtils.stringToFiles(s); } else { return new ArrayList<File>(); } }
List<String> getCommands() { List<String> list = new ArrayList<String>(); String stockNativePathsString = getStockNativePathString(); String prefixFileString = getPrefixString(); String suffixFileString = getSuffixString(); String profilerFileString = getProfilerString(); String libFileString = libDir.getPath(); String lib64FileString = getLib64String(); // bnevins: Very simple to change the order right here in the future! // don't worry about extra PS's --> no problem-o // don't worry about duplicates -- SmartFile will get rid of them... StringBuilder sb = new StringBuilder(); sb.append(prefixFileString).append(PS); sb.append(libFileString).append(PS); sb.append(lib64FileString).append(PS); sb.append(stockNativePathsString).append(PS); sb.append(profilerFileString).append(PS); sb.append(suffixFileString); // this looks dumb but there is a lot of potential cleaning going on here // * all duplicate directories are removed // * junk is removed, e.g. ":xxx::yy::::::" goes to "xxx:yy" String finalPathString = GFLauncherUtils.fileListToPathString(GFLauncherUtils.stringToFiles(sb.toString())); String nativeCommand = "-D" + JAVA_NATIVE_SYSPROP_NAME + "=" + finalPathString; list.add(nativeCommand); return list; }