Skip to content

Instantly share code, notes, and snippets.

@demoth
Last active December 23, 2015 17:39
Show Gist options
  • Save demoth/6670672 to your computer and use it in GitHub Desktop.
Save demoth/6670672 to your computer and use it in GitHub Desktop.
groovy script to look for all i18n files in all jar archives in some directory
import java.util.zip.ZipFile
import static groovy.io.FileType.*
new File('/home/daniil/bundles').eachFileMatch(FILES, ~/.*.jar/ , { f ->
new ZipFile(f).entries().each{
if (it.toString().matches('.*messages_.*properties'))
println ' ' + f + '!/' + it
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment