public static void main(String[] args) throws IOException, GitAPIException { try (Repository repository = CookbookHelper.openJGitCookbookRepository()) { // make the included archive formats known ArchiveFormats.registerAll(); try { write(repository, ".zip", "zip"); write(repository, ".tar.gz", "tgz"); write(repository, ".tar.bz2", "tbz2"); write(repository, ".tar.xz", "txz"); } finally { ArchiveFormats.unregisterAll(); } } }
public static void main(String[] args) throws IOException, GitAPIException { try (Repository repository = CookbookHelper.openJGitCookbookRepository()) { // make the included archive formats known ArchiveFormats.registerAll(); try { write(repository, ".zip", "zip"); write(repository, ".tar.gz", "tgz"); write(repository, ".tar.bz2", "tbz2"); write(repository, ".tar.xz", "txz"); } finally { ArchiveFormats.unregisterAll(); } } }
/** * Cleans up after {@link #start(BundleContext)} by calling * {@link ArchiveFormats#unregisterAll}. * * @param context * unused */ public void stop(BundleContext context) { ArchiveFormats.unregisterAll(); } }
/** * Cleans up after {@link #start(BundleContext)} by calling * {@link ArchiveFormats#unregisterAll}. * * @param context * unused */ public void stop(BundleContext context) { ArchiveFormats.unregisterAll(); } }