final File metadataGz = new File(gemWorkdir, "metadata.gz");
FileUtils.fileWrite(metadata.getAbsolutePath(),
"UTF-8",
gemspecString);
// gzip it into metadata.gz
final GZipArchiver gzip = new GZipArchiver();
gzip.setDestFile(metadataGz);
gzip.addFile(metadata, "metadata.gz");
gzip.createArchive();
final TarArchiver tar = new TarArchiver();
// turn off logging
tar.enableLogging(new AbstractLogger(0, "nologging") {