Package com.atlassian.plugin.util.zip

Examples of com.atlassian.plugin.util.zip.FileUnzipper


        File file = page
                .openDownloadDialog("download.jar-project")
                .downloadAsAmpsProject();
        assertNotNull(file);
        File unzippedPluginDir = TempHelp.getTempDir("download.jar-project-amps-unzip");
        FileUnzipper unzipper = new FileUnzipper(file, unzippedPluginDir);
        Set<String> entries = new HashSet<String>();
        for (ZipEntry entry : unzipper.entries())
        {
            entries.add(entry.getName());
        }

        unzipper.unzip();


        assertEquals(Sets.newHashSet(
                "pom.xml",
                "src/",
View Full Code Here


                .downloadAsExtension();
        assertNotNull(file);
        assertTrue(file.getName().endsWith(".jar"));
        File unzippedPluginDir = TempHelp.getTempDir("download.jar-file-extension-unzip");

        FileUnzipper unzipper = new FileUnzipper(file, unzippedPluginDir);
        Set<String> entries = new HashSet<String>();
        for (ZipEntry entry : unzipper.entries())
        {
            entries.add(entry.getName());
        }

        unzipper.unzip();


        assertEquals(Sets.newHashSet(
                "atlassian-plugin.xml",
                "foo.js",
View Full Code Here

    public static Git createNewLocalRepository(ProductInstance product, String key) throws IOException, NoFilepatternException, NoHeadException, NoMessageException, ConcurrentRefUpdateException, WrongRepositoryStateException, InvalidRemoteException, URISyntaxException
    {
        File pluginJar = buildSimpleExtensionFile("gitTest");
        File dir = getTempDir(key);
        new FileUnzipper(pluginJar, dir).unzip();

        Git git = Git.init()
                .setDirectory(dir)
                .setBare(false)
                .call();
View Full Code Here

TOP

Related Classes of com.atlassian.plugin.util.zip.FileUnzipper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.