1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00
filebot/lib/jar.groovy

17 lines
522 B
Groovy
Raw Normal View History

2018-06-27 12:11:20 -04:00
def destfile = { r ->
ant.project.properties.'dir.dist' + '/lib/' + r.file.name.replaceAll(/.lib|.jdk15on|.java16/, '').toLowerCase()
2018-06-27 12:11:20 -04:00
}
project.references.'jar.classpath'.each { r ->
ant.jar(destfile: destfile(r), index: 'yes', indexMetaInf: 'yes', compress: 'no') {
zipfileset(src: r) {
exclude(name: 'META-INF/MANIFEST.MF')
exclude(name: 'META-INF/INDEX.LIST')
exclude(name: 'META-INF/*.RSA')
exclude(name: 'META-INF/*.DSA')
exclude(name: 'META-INF/*.SF')
exclude(name: 'META-INF/*.EC')
}
}
}