Examples of archiveDir()


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

                    absoluteServiceFile.delete();
                }
                servicePath = servicePath.substring(0, servicePath.lastIndexOf(".") + 1) +
                        RuleConstants.RULE_SERVICE_ARCHIVE_EXTENSION;
            }
            archiveManipulator.archiveDir(servicePath, paths.getWorkingDirPath());
        } catch (IOException e) {
            throw new RuleServiceManagementException("Error creating a archive a rule service ", e,
                    log);
        }
//        saveToRegistry(paths, ruleServiceDescription.getName());
View Full Code Here

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

                    }
                }
            } catch (IOException e) {
                log.warn("An error occurred while reading properties file for: " + source, e);
            }
            am.archiveDir(destination, dir);
        } finally {
            if (tempDir != null) {
                FileUtils.deleteDirectory(tempDir);
            }
        }
View Full Code Here

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

                log.warn("Could not create " + fout.getAbsolutePath());
            }
            String outAARFilename = fout.getAbsolutePath() + File.separator +
                                    formatServiceName(serviceGroupName) + ".aar";

            am.archiveDir(outAARFilename, f.getPath());

            // TODO : This is a hack. storing file resources in the super tenant config context
            // this is because, currently File download servlet is only registered under super
            // tenat. all other places like wsdl2code work using the super tenant CC
            ConfigurationContext superTenantConfigContext = MessageContext
View Full Code Here

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

        // These are the files to include in the ZIP file
        String outAARFilename = filePath + File.separator + archiveFileName
                + ".aar";

        try {
            archiveManipulator.archiveDir(outAARFilename, unzipped.getPath());
        } catch (IOException e) {
            String msg = bundle.getString("springcannot.create.new.aar.archive");
            handleException(msg, e);
        }
View Full Code Here

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

        new File(tempDir).mkdirs();
        String outAARFilename = tempDir + File.separator + serviceGroupName + ".aar";

        try {
            ArchiveManipulator archiveManipulator = new ArchiveManipulator();
            archiveManipulator.archiveDir(outAARFilename, directoryPath);
        } catch (IOException e) {
            String msg = "Cannot create new AAR archive";
            log.error(msg, e);
            throw new AxisFault(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.