Package org.wso2.carbon.utils

Examples of org.wso2.carbon.utils.ArchiveManipulator.extract()


            }
            String emmaJarName = null;
            for (File file : new File(emmaHome).listFiles()) {
                if (file.getName().startsWith("org.wso2.carbon.integration.core")) {
                    ArchiveManipulator archiveManipulator = new ArchiveManipulator();
                    archiveManipulator.extract(file.getAbsolutePath(), emmaHome);
                } else if (file.getName().startsWith("emma")) {
                    emmaJarName = file.getName();
                }
            }
View Full Code Here


            }
            if (!tempFile.delete() || !tempFile.mkdir()) {
                throw new IllegalStateException("Unable to create temporary directory");
            }
            ArchiveManipulator am = new ArchiveManipulator();
            am.extract(source, dir);
            Properties properties;
            try {
                if (propertyFile == null) {
                    propertyFile = source.substring(0, source.lastIndexOf(".")) +
                            PROPERTIES_FILE_EXTENSION;
View Full Code Here

                continue;
            }
            String fileName = artifact.getFiles().get(0).getName();
            artifactPath = artifact.getExtractedPath() + File.separator + fileName;
            try {
                archiveManipulator.extract(artifactPath, destPath);
            } catch (IOException e) {
                log.error("Unable to copy the Mashup : " + artifactName, e);
            }

        }
View Full Code Here

            if (file.isDirectory()) {
                FileManipulator.copyDir(file, f);
            } else if (file.isFile() && axisServiceGroupURL.getPath().endsWith(".class")) {
                FileManipulator.copyFileToDir(file, f);
            } else {
                am.extract(axisServiceGroupURL.getPath(), f.getAbsolutePath());
            }

            File servicesF =
                    new File(f.getAbsolutePath() + File.separator + "META-INF", "services.xml");
View Full Code Here

        String unzippeDir = filePath + File.separator + "springTemp";
        File unzipped = new File(unzippeDir);
        unzipped.mkdirs();

        try {
            archiveManipulator.extract(filePathFromArchiveId, unzippeDir);
        } catch (IOException e) {
            String msg = bundle.getString("spring.cannot.extract.archive");
            handleException(msg, e);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.