/** * Calls excludePaths(System.getProperty("java.ext.dirs")) * @return * @throws MalformedURLException */ public UrlSet excludeJavaExtDirs() throws MalformedURLException { String extDirs = System.getProperty("java.ext.dirs"); return extDirs == null ? this : excludePaths(extDirs); }
/** * Calls excludePaths(System.getProperty("java.endorsed.dirs")) * * @return * @throws MalformedURLException */ public UrlSet excludeJavaEndorsedDirs() throws MalformedURLException { String endorsedDirs = System.getProperty("java.endorsed.dirs"); return endorsedDirs == null ? this : excludePaths(endorsedDirs); }
/** * Calls excludePaths(System.getProperty("java.ext.dirs")) * @return * @throws MalformedURLException */ public UrlSet excludeJavaExtDirs() throws MalformedURLException { String extDirs = System.getProperty("java.ext.dirs"); return extDirs == null ? this : excludePaths(extDirs); }
/** * Calls excludePaths(System.getProperty("java.endorsed.dirs")) * * @return * @throws MalformedURLException */ public UrlSet excludeJavaEndorsedDirs() throws MalformedURLException { String endorsedDirs = System.getProperty("java.endorsed.dirs"); return endorsedDirs == null ? this : excludePaths(endorsedDirs); }
/** * Calls excludePaths(System.getProperty("java.ext.dirs")) * @return * @throws MalformedURLException */ public UrlSet excludeJavaExtDirs() throws MalformedURLException { String extDirs = System.getProperty("java.ext.dirs"); return extDirs == null ? this : excludePaths(extDirs); }
/** * Calls excludePaths(System.getProperty("java.endorsed.dirs")) * * @return * @throws MalformedURLException */ public UrlSet excludeJavaEndorsedDirs() throws MalformedURLException { String endorsedDirs = System.getProperty("java.endorsed.dirs"); return endorsedDirs == null ? this : excludePaths(endorsedDirs); }
public static UrlSet cullSystemJars(final UrlSet original) throws IOException { UrlSet urls = new UrlSet(original.getUrls()); urls = urls.exclude(ClassLoader.getSystemClassLoader().getParent()); urls = urls.excludeJvm(); urls = urls.excludePaths(System.getProperty("sun.boot.class.path", "")); urls = urls.exclude(".*/JavaVM.framework/.*"); return urls; }
public static UrlSet cullSystemJars(final UrlSet original) throws IOException { final String sunboot = JavaSecurityManagers.getSystemProperty("sun.boot.class.path", ""); UrlSet urls = new UrlSet(original.getUrls()); urls = urls.exclude(ClassLoader.getSystemClassLoader().getParent()); urls = urls.excludeJvm(); if (!sunboot.isEmpty()) { // else on java9 it excludes new File(".") so all maven builds fail urls = urls.excludePaths(sunboot); } urls = urls.exclude(".*/JavaVM.framework/.*"); return urls; }
urlSet = urlSet.excludeJavaEndorsedDirs(); urlSet = urlSet.excludeJavaHome(); urlSet = urlSet.excludePaths(System.getProperty("sun.boot.class.path", "")); urlSet = urlSet.exclude(".*/JavaVM.framework/.*");