File src = jarInput.getFile(); File dst = invocation.getOutputProvider().getContentLocation( jarInput.getName(), jarInput.getContentTypes(), jarInput.getScopes(), Format.JAR); try {
transformInvocation .getOutputProvider() .getContentLocation(inputJar.getName(), getOutputTypes(), getScopes(), Format.JAR); outputJar.getParentFile().mkdirs();
private boolean isJarIncluded(JarInput jarInput) { for (String includedJar : includedJars) { if (jarInput.getName().startsWith(includedJar)) { return true; } } return false; }
private ClassWalker.Visitor.Factory asFactory(AnnotationCollector collector) { return (incremental, content) -> { if (incremental && content instanceof JarInput) { JarInput j = (JarInput) content; if (j.getStatus() == Status.REMOVED) { graph.onJarRemoved(j.getName()); return null; } else if (j.getStatus() == Status.CHANGED) { graph.onJarRemoved(j.getName()); } } return new NamedVisitor(content.getName(), collector); }; }
if (write) { Util.deleteIFExists(invocation.getOutputProvider().getContentLocation( jar.getName(), jar.getContentTypes(), jar.getScopes(), Format.JAR)); jar.getName(), jar.getContentTypes(), jar.getScopes(), Format.JAR); zos = new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(output))); futures = new ArrayList<>();
String name = jarInput.getName(); String md5Name = DigestUtils.md5Hex(jarInput.getFile().getAbsolutePath()); if (name.endsWith(".jar")){
String jarName = jarInput.getName(); String md5Name = DigestUtils.md5Hex(jarInput.getFile().getAbsolutePath()); if (jarName.endsWith(".jar")) {
File backupJar = new File(outputDir, jarInput.getName()); switch(jarInput.getStatus()) { case REMOVED:
File dest = outputProvider.getContentLocation(jarInput.getName(), jarInput.getContentTypes(), jarInput.getScopes(), Format.JAR); if (dest.exists()) { throw new RuntimeException("Jar file " + jarInput.getName() + " already exists!" + " src: " + jarInput.getFile().getPath() + ", dest: " + dest.getPath());
jarInput.getName(), getInputTypes(), jarInput.getScopes(),
File outputJar = outputProvider.getContentLocation( jarInput.getName(), jarInput.getContentTypes(), jarInput.getScopes(),