package alien4cloud.packager;

import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;

import alien4cloud.git.RepositoryManager;
import alien4cloud.utils.FileUtil;

/**
 * Utility that downloads the archives we want to package.
 */
public class ArchiveDownloader {

    public static void main(String[] args) throws IOException {
        Path buildDirectory = Paths.get(args[0]);
        Path gitDirectory = buildDirectory.resolve("git");
        Path zipDirectory = buildDirectory.resolve("archives");

        RepositoryManager.cloneOrCheckout(gitDirectory, "https://github.com/alien4cloud/tosca-normative-types.git", "1.4.0", "tosca-normative-types");
        RepositoryManager.cloneOrCheckout(gitDirectory, "https://github.com/alien4cloud/alien4cloud-extended-types.git", "1.4.0",
                "alien4cloud-extended-types");
        // Do we want to initialize alien with sample topology.
        // repositoryManager.cloneOrCheckout(gitDirectory, "https://github.com/alien4cloud/samples.git", "master", "samples");

        FileUtil.zip(gitDirectory.resolve("tosca-normative-types"), zipDirectory.resolve("tosca-normative-types.zip"));
        FileUtil.zip(gitDirectory.resolve("alien4cloud-extended-types/alien-extended-storage-types"), zipDirectory.resolve("alien-extended-storage-types.zip"));
        // zip archives
        // FileUtil.zip(from, to);
    }
}

@@ -638,27 +638,27 @@
 ypes.git%22, %22
-1.4
+2.0
 .0%22, %22tosca-
@@ -802,11 +802,11 @@
 %22, %22
-1.4
+2.0
 .0%22,
@@ -845,32 +845,225 @@
 tended-types%22);%0A
+                // docker types%0A        RepositoryManager.cloneOrCheckout(gitDirectory, %22https://github.com/alien4cloud/docker-tosca-types.git%22, %222.0.0%22,%0A                %22docker-tosca-types%22);%0A
         // Do we
@@ -1438,78 +1438,342 @@
 ien-
-extended-storage-types%22), zipDirectory.resolve(%22alien-extended-storage
+base-types%22), zipDirectory.resolve(%22alien-base-types.zip%22));%0A        FileUtil.zip(gitDirectory.resolve(%22alien4cloud-extended-types/alien-extended-storage-types%22), zipDirectory.resolve(%22alien-extended-storage-types.zip%22));%0A        FileUtil.zip(gitDirectory.resolve(%22docker-tosca-types/docker-types%22), zipDirectory.resolve(%22docker-tosca
 -typ

Update pom.xml for adding the kubernetes plugin