/** * Set the properties by file. Setting the properties this way will also set * the base for this analyzer. After reading the properties, this will call * setProperties(Properties) which will handle the includes. * * @param propertiesFile */ public void setProperties(File propertiesFile) { propertiesFile = propertiesFile.getAbsoluteFile(); setProperties(propertiesFile, propertiesFile.getParentFile()); }
/** * Set the properties by file. Setting the properties this way will also set * the base for this analyzer. After reading the properties, this will call * setProperties(Properties) which will handle the includes. * * @param propertiesFile */ public void setProperties(File propertiesFile) { propertiesFile = propertiesFile.getAbsoluteFile(); setProperties(propertiesFile, propertiesFile.getParentFile()); }
/** * Set the properties by file. Setting the properties this way will also set * the base for this analyzer. After reading the properties, this will call * setProperties(Properties) which will handle the includes. * * @param propertiesFile * @throws FileNotFoundException * @throws IOException */ public void setProperties(File propertiesFile) throws IOException { propertiesFile = propertiesFile.getAbsoluteFile(); setProperties(propertiesFile, propertiesFile.getParentFile()); }
/** * Set the properties by file. Setting the properties this way will also set * the base for this analyzer. After reading the properties, this will call * setProperties(Properties) which will handle the includes. * * @param propertiesFile * @throws FileNotFoundException * @throws IOException */ public void setProperties(File propertiesFile) throws IOException { propertiesFile = propertiesFile.getAbsoluteFile(); setProperties(propertiesFile, propertiesFile.getParentFile()); }
/** * Set the properties by file. Setting the properties this way will also set * the base for this analyzer. After reading the properties, this will call * setProperties(Properties) which will handle the includes. * * @param propertiesFile * @throws FileNotFoundException * @throws IOException */ public void setProperties(File propertiesFile) throws IOException { propertiesFile = propertiesFile.getAbsoluteFile(); setProperties(propertiesFile, propertiesFile.getParentFile()); }
/** * */ public void forceRefresh() { included = null; properties.clear(); setProperties(propertiesFile, base); propertiesChanged(); }
/** * */ public void forceRefresh() { included = null; properties.clear(); setProperties(propertiesFile, base); propertiesChanged(); }
/** * */ public void forceRefresh() { included = null; properties.clear(); setProperties(propertiesFile, base); propertiesChanged(); }
public KnownBundleAnalyzer() { Properties properties = new UTF8Properties(); InputStream stream = KnownBundleAnalyzer.class.getResourceAsStream("known-bundles.properties"); if (stream != null) { try { properties.load(stream); } catch (IOException e) { // ignore } finally { try { stream.close(); } catch (IOException e) { } } } p.setProperties(properties); }
public KnownBundleAnalyzer() { Properties properties = new UTF8Properties(); InputStream stream = KnownBundleAnalyzer.class.getResourceAsStream("known-bundles.properties"); if (stream != null) { try { properties.load(stream); } catch (IOException e) { // ignore } finally { try { stream.close(); } catch (IOException e) { } } } p.setProperties(properties); }
public void addProperties(File file) throws Exception { addIncluded(file); Properties p = loadProperties(file); setProperties(p); }
public void addProperties(File file) throws Exception { addIncluded(file); Properties p = loadProperties(file); setProperties(p); }
public void addProperties(File file) throws Exception { addIncluded(file); Properties p = loadProperties(file); setProperties(p); }
public void addProperties(File file) throws Exception { addIncluded(file); Properties p = loadProperties(file); setProperties(p); }
public void addProperties(File file) throws Exception { addIncluded(file); Properties p = loadProperties(file); setProperties(p); }
public void setProperties(File propertiesFile, File base) { this.propertiesFile = propertiesFile.getAbsoluteFile(); setBase(base); try { if (propertiesFile.isFile()) { // System.err.println("Loading properties " + propertiesFile); long modified = propertiesFile.lastModified(); if (modified > System.currentTimeMillis() + 100) { System.err.println("Huh? This is in the future " + propertiesFile); this.modified = System.currentTimeMillis(); } else this.modified = modified; included.clear(); Properties p = loadProperties(propertiesFile); setProperties(p); } else { if (fileMustExist) { error("No such properties file: %s", propertiesFile); } } } catch (IOException e) { error("Could not load properties %s", propertiesFile); } }
/** * */ public void forceRefresh() { included.clear(); Processor p = getParent(); properties = (p != null) ? new UTF8Properties(p.getProperties0()) : new UTF8Properties(); setProperties(propertiesFile, base); propertiesChanged(); }
/** * */ public void forceRefresh() { included.clear(); Processor p = getParent(); properties = (p != null) ? new UTF8Properties(p.getProperties0()) : new UTF8Properties(); setProperties(propertiesFile, base); propertiesChanged(); }
/** * Create a Run that will be stand alone if it contains -standalone. In that * case the given workspace is ignored. Otherwise, the workspace must be a * valid workspace. */ public static Run createRun(Workspace workspace, File file) throws Exception { Processor processor; if (workspace != null) { Run run = new Run(workspace, file); if (run.getProperties() .get(STANDALONE) == null) { return run; } // -standalone specified processor = run; } else { processor = new Processor(); processor.setProperties(file); } Workspace standaloneWorkspace = Workspace.createStandaloneWorkspace(processor, file.toURI()); Run run = new Run(standaloneWorkspace, file); return run; }
/** * Create a Bndrun that will be stand alone if it contains -standalone. In * that case the given workspace is ignored. Otherwise, the workspace must * be a valid workspace. */ public static Bndrun createBndrun(Workspace workspace, File file) throws Exception { Processor processor; if (workspace != null) { Bndrun run = new Bndrun(workspace, file); if (run.getProperties() .get(STANDALONE) == null) { return run; } // -standalone specified processor = run; } else { processor = new Processor(); processor.setProperties(file); } Workspace standaloneWorkspace = Workspace.createStandaloneWorkspace(processor, file.toURI()); Bndrun run = new Bndrun(standaloneWorkspace, file); return run; }