Unsign Jar Files (Recursively) Add comment to Wiki View in Wiki Edit Wiki page Printable Version

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)

        }

    }

})

 

Search

Results of your search request can come from various sources: the Groovy website itself, the JIRA issues, the API documentation, as well as a few other interesting Groovy-related blogs.

  By  -  pages  -  views  - last modified