1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-14 21:35:03 -05:00
filebot/lib/jar.groovy
Reinhard Pointner d945aec1e8 Remove Jar Index (no tangible benefits, but might break Linux deployments where JNA is linked in from the system repository)
Remove filebot-resources.jar to simplify build, update and deployment
2019-05-12 17:56:30 +07:00

17 lines
487 B
Groovy

def destfile = { r ->
ant.project.properties.'dir.dist' + '/lib/' + r.file.name.replaceAll(/.lib|.jdk15on|.java16/, '').toLowerCase()
}
project.references.'jar.classpath'.each { r ->
ant.jar(destfile: destfile(r), 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')
}
}
}