@Test public void testAppendToClasspath() { try { final Set<Path> cp = new HashSet<Path>(); final Path with_mf_entry = Paths.get("./src/test/resources/org.apache.servicemix.bundles.jaxb-xjc-2.2.4_1.jar"); Path appended_path = JarWriter.appendToClasspath(cp, with_mf_entry, true); assertTrue(!cp.contains(with_mf_entry)); assertTrue(!with_mf_entry.equals(appended_path)); final Path without_mf_entry = Paths.get("./src/test/resources/junit-4.12.jar"); appended_path = JarWriter.appendToClasspath(cp, without_mf_entry, true); assertTrue(cp.contains(without_mf_entry)); assertTrue(without_mf_entry.equals(appended_path)); } catch (Exception e) { e.printStackTrace(); assertTrue(false); } }
public static final void appendToClasspath( Set<Path> _classpath, Set<Path> _to_append, boolean _preprocess) { for (Path p : _to_append) appendToClasspath(_classpath, p, _preprocess); }
JarWriter { public static final void appendToClasspath( Set<Path> _classpath, Set<Path> _to_append, boolean _preprocess) { for (Path p : _to_append) appendToClasspath(_classpath, p, _preprocess); } }
JarWriter { public static final void appendToClasspath( Set<Path> _classpath, Set<Path> _to_append, boolean _preprocess) { for (Path p : _to_append) appendToClasspath(_classpath, p, _preprocess); } JarWriter(Path _jar); }
JarWriter { public static final void appendToClasspath( Set<Path> _classpath, Set<Path> _to_append, boolean _preprocess) { for (Path p : _to_append) appendToClasspath(_classpath, p, _preprocess); } JarWriter(Path _jar); long getFileSize(); long getInstrumentedFileSize(); Manifest getOriginalManifest(); Path extract(Path _todir); synchronized String getSHA1(); void skipManifestEntry(String _entry); void addManifestEntry(String _key, String _val); boolean hasManifestEntry(String _key); boolean isRewrittenByVulas(); void setClassifier(String _string); void register(String _regex, JarEntryWriter _writer); Path getOriginalJarFileName(); Path getRewriteJarFileName(); void addFiles(String _target_dir, Set<Path> _paths, boolean _overwrite); void addFile(String _target_dir, Path _path, boolean _overwrite); boolean hasEntry(String _entry_name); File getRewrittenJarFile(); Path rewrite(Path _todir); static final void appendToClasspath(
      Set<Path> _classpath, Set<Path> _to_append, boolean _preprocess); static final Path appendToClasspath(
      Set<Path> _classpath, Path _to_append, boolean _preprocess); }
JarWriter { public static final void appendToClasspath( Set<Path> _classpath, Set<Path> _to_append, boolean _preprocess) { for (Path p : _to_append) appendToClasspath(_classpath, p, _preprocess); } JarWriter(Path _jar); long getFileSize(); long getInstrumentedFileSize(); Manifest getOriginalManifest(); Path extract(Path _todir); synchronized String getSHA1(); void skipManifestEntry(String _entry); void addManifestEntry(String _key, String _val); boolean hasManifestEntry(String _key); boolean isRewrittenByVulas(); void setClassifier(String _string); void register(String _regex, JarEntryWriter _writer); Path getOriginalJarFileName(); Path getRewriteJarFileName(); void addFiles(String _target_dir, Set<Path> _paths, boolean _overwrite); void addFile(String _target_dir, Path _path, boolean _overwrite); boolean hasEntry(String _entry_name); File getRewrittenJarFile(); Path rewrite(Path _todir); static final void appendToClasspath(
      Set<Path> _classpath, Set<Path> _to_append, boolean _preprocess); static final Path appendToClasspath(
      Set<Path> _classpath, Path _to_append, boolean _preprocess); final SimpleDateFormat dateFormat; static final String MANIFEST_ENTRY_VULAS_MODIF; static final String MANIFEST_ENTRY_ORIG_SHA1; }