Examples of JitterPack


Examples of org.jitterbit.integration.client.project.jitterpack.JitterPack

        try {
            IntegrationProjectLock.acquire();
            File serverBackup = createServerBackup(clientBackup);
            String name = serverBackup.getName();
            File target = getJitterPackFile(name);
            JitterPack jp = manager.createJitterPack(name, serverBackup, target, false);
            return jp;
        } catch (Exception ex) {
            logFailure(ex);
            return null;
        } finally {
View Full Code Here

Examples of org.jitterbit.integration.client.project.jitterpack.JitterPack

    static JitterPack createFromFile(File file, Version version, ImportParameters params) throws IOException,
                    IllegalDataFormatException, UnsupportedVersionException {
        JitterPackFormat format = JitterPackFormatFactory.getFormat(version, params);
        JitterPackDescriptor descriptor = format.extractDescriptor(file);
        return new JitterPack(file, descriptor);
    }
View Full Code Here

Examples of org.jitterbit.integration.client.project.jitterpack.JitterPack

            return canceled;
        }

        private void checkFile(File file) throws IOException {
            if (EncryptionChecker.isPossibleEncryptedJitterPack(file) && params.getPassword() == null) {
                JitterPack jp = new JitterPack(file, JitterPackDescriptor.UNKNOWN_ENCRYPTED);
                callback.locatedJitterPack(jp);
            }
            VersionInfo versionInfo = JitterPackUtils.isPossibleJitterPack(file, params);
            if (versionInfo != null) {
                examinePossibleJitterPack(file, params, versionInfo);
View Full Code Here

Examples of org.jitterbit.integration.client.project.jitterpack.JitterPack

            this.version = version;
        }

        @Override
        public void run() {
            JitterPack jp = JitterPackUtils.createFromFileSilently(file, version, params);
            if (jp != null) {
                callback.locatedJitterPack(jp);
            }
        }
View Full Code Here

Examples of org.jitterbit.integration.client.project.jitterpack.JitterPack

        try {
            File projectFolder = project.getLocation();
            JitterPackDescriptor descriptor = createDescriptorForWriting(project, comment);
            header.write(descriptor, projectFolder);
            zipProject(projectFolder, target);
            return new JitterPack(target, descriptor);
        } catch (KongaZipException ex) {
            throw new JitterPackException("An error occurred: " + ex.getMessage(), ex);
        } catch (IOException ex) {
            throw new JitterPackException("An IO error occurred: " + ex.getMessage(), ex);
        }
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.