public static ArrayList<String> getAnalysisOptionProperties(boolean ignoreComments, boolean ignoreBlankLines) { ArrayList<String> resultList = new ArrayList<>(); URL u = DetectorFactoryCollection.getCoreResource("analysisOptions.properties"); if (u != null) { try (BufferedReader reader = UTF8.bufferedReader(u.openStream())) { addCommandLineOptions(resultList, reader, ignoreComments, ignoreBlankLines); } catch (IOException e) { AnalysisContext.logError("unable to load analysisOptions.properties", e); } } return resultList; }
public ProjectPackagePrefixes() { URL u = DetectorFactoryCollection.getCoreResource("projectPaths.properties"); if (u != null) { try (BufferedReader in = UTF8.bufferedReader(u.openStream())) { while (true) { String s = in.readLine(); if (s == null) { break; } String[] parts = s.split("="); if (parts.length == 2 && !map.containsKey(parts[0])) { map.put(parts[0], new PrefixFilter(parts[1])); } } } catch (IOException e1) { AnalysisContext.logError("Error loading projects paths", e1); } } }
private static void loadPropertiesFromConfigFile() { URL systemProperties = DetectorFactoryCollection.getCoreResource("systemProperties.properties"); loadPropertiesFromURL(systemProperties); String u = System.getProperty("findbugs.loadPropertiesFrom"); if (u != null) { try { URL configURL = new URL(u); loadPropertiesFromURL(configURL); } catch (MalformedURLException e) { AnalysisContext.logError("Unable to load properties from " + u, e); } } }
u = plugin.getPlugin().getResource(adjustmentSource); if (u == null) { u = DetectorFactoryCollection.getCoreResource(adjustmentSource);
URL u = DetectorFactoryCollection.getCoreResource("obligationPolicy.db"); try { if (u != null) {
private static void loadPropertiesFromConfigFile() { URL systemProperties = DetectorFactoryCollection.getCoreResource("systemProperties.properties"); loadPropertiesFromURL(systemProperties); String u = System.getProperty("findbugs.loadPropertiesFrom"); if (u != null) { try { URL configURL = new URL(u); loadPropertiesFromURL(configURL); } catch (MalformedURLException e) { AnalysisContext.logError("Unable to load properties from " + u, e); } } }
public ProjectPackagePrefixes() { URL u = DetectorFactoryCollection.getCoreResource("projectPaths.properties"); if (u != null) { BufferedReader in = null; try { in = UTF8.bufferedReader(u.openStream()); while (true) { String s = in.readLine(); if (s == null) { break; } String[] parts = s.split("="); if (parts.length == 2 && !map.containsKey(parts[0])) { map.put(parts[0], new PrefixFilter(parts[1])); } } } catch (IOException e1) { AnalysisContext.logError("Error loading projects paths", e1); } finally { Util.closeSilently(in); } } }
public static ArrayList<String> getAnalysisOptionProperties(boolean ignoreComments, boolean ignoreBlankLines) { ArrayList<String> resultList = new ArrayList<String>(); URL u = DetectorFactoryCollection.getCoreResource("analysisOptions.properties"); if (u != null) { BufferedReader reader = null; try { reader = UTF8.bufferedReader(u.openStream()); addCommandLineOptions(resultList, reader, ignoreComments, ignoreBlankLines); } catch (IOException e) { AnalysisContext.logError("unable to load analysisOptions.properties", e); } finally { Util.closeSilently(reader); } } return resultList; }
u = plugin.getPlugin().getResource(adjustmentSource); if (u == null) { u = DetectorFactoryCollection.getCoreResource(adjustmentSource);
URL u = DetectorFactoryCollection.getCoreResource("obligationPolicy.db"); try { if (u != null) {