void add(Jar jar) throws Exception { Analyzer analyzer = new Analyzer(this); analyzer.setJar(jar); analyzer.analyze(); analyzers.add(analyzer); }
/** * Intercept the call to analyze and cleanup versions after we have analyzed * the setup. We do not want to cleanup if we are going to verify. */ public void analyze() throws Exception { super.analyze(); cleanupVersion(imports, null); cleanupVersion(exports, getVersion()); String version = getProperty(BUNDLE_VERSION); if (version != null) { version = cleanupVersion(version); if (version.endsWith(".SNAPSHOT")) { version = version.replaceAll("SNAPSHOT$", getProperty(SNAPSHOT, "SNAPSHOT")); } setProperty(BUNDLE_VERSION, version); } }
analyze(); Manifest manifest = new Manifest(); Attributes main = manifest.getMainAttributes();
/** * Intercept the call to analyze and cleanup versions after we have analyzed * the setup. We do not want to cleanup if we are going to verify. */ public void analyze() throws IOException { super.analyze(); cleanupVersion(imports); cleanupVersion(exports); String version = getProperty(BUNDLE_VERSION); if (version != null) setProperty(BUNDLE_VERSION, cleanupVersion(version)); }
analyze(); Manifest manifest = new Manifest(); Attributes main = manifest.getMainAttributes();
analyzer.setPedantic(isPedantic()); analyzer.setJar(jar); analyzer.analyze(); if ((options & USES) != 0) { out.println("[USES]");
analyzer.setPedantic(isPedantic()); analyzer.setJar(jar); analyzer.analyze(); if ((options & USES) != 0) { out.println("[USES]");
Analyzer analyzer = new Analyzer(); analyzer.setJar(output); analyzer.analyze();