writer.register("vulas-core.properties", this); writer.rewrite(this.inclDir);
/** * See here: http://docs.oracle.com/javase/7/docs/technotes/guides/jar/jar.html * @throws JarAnalysisException */ protected void createInstrumentedArchive() throws JarAnalysisException { // Additional manifest file entries this.jarWriter.addManifestEntry("VULAS-classInstrStats", "[" + this.classCount + " total, " + this.instrControl.countClassesInstrumentedAlready() + " existed, " + this.instrControl.countClassesInstrumentedSuccess() + " ok, " + this.instrControl.countClassesInstrumentedFailure() + " err]"); this.jarWriter.addManifestEntry("VULAS-constructStats", "[" + constructs.size() + " constructs]"); if(JarAnalyzer.getAppContext()!=null) this.jarWriter.addManifestEntry("VULAS-appContext", JarAnalyzer.getAppContext().getMvnGroup() + ":" + JarAnalyzer.getAppContext().getArtifact() + ":" + JarAnalyzer.getAppContext().getVersion()); // Register this JarAnalyzer for callbacks this.jarWriter.register(".*.class$", this); // Rename if(this.rename) this.jarWriter.setClassifier("vulas-instr"); // Rewrite this.jarWriter.rewrite(this.workDir); // Stats this.instrControl.logStatistics(); }