Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

ant = new AntBuilder();
tmpDir = "tmpDir"

new File(args[0]).eachFileRecurse({file->
    if(file.name.endsWith(".jar")) {
        ant.sequential {
            mkdir(dir:tmpDir)
            echo "Unsigning file: $file"
            unjar(src:file, dest:tmpDir)
            delete {
                fileset(dir:tmpDir, includes:"META-INF/*.DSA,META-INF/*.SF,META-INF/*.RSA")
            }
            jar(destFile:file,baseDir:tmpDir)
            delete(dir:tmpDir)
        }
    }
})

  • No labels