Package org.jitterbit.integration.client.project.jitterpack

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


    static void clearUnpackDestination(File destination) throws UnpackException {
        if (destination.exists()) {
            if (destination.isFile()) {
                if (!destination.delete()) {
                    throw new UnpackException("Failed to overwrite the existing file " + destination.getAbsolutePath()
                                    + ".");
                }
            } else if (destination.isDirectory()) {
                try {
                    clearUnpackDestinationFolder(destination);
                } catch (IOException ex) {
                    throw new UnpackException("Failed to overwrite the existing file " + destination.getAbsolutePath()
                                    + ".", ex);
                }
            }
        }
    }
View Full Code Here


            createAndUnzipProjectFolder(jitterPack, destination);
            String projectName = descriptor.getProjectName();
            String comment = descriptor.getComment();
            return new ProjectDescriptor(projectName, projectFolder, comment);
        } catch (KongaZipException ex) {
            UnpackException ex2 = new UnpackException("An error occurred when unpacking the "
                    + JitterPackConstants.SINGULAR + ": " + ex.getMessage(), ex);
            logUnpackException(ex2);
            throw ex2;
        } catch (IOException ex) {
            UnpackException ex2 = new UnpackException("An IO error occurred: " + ex.getMessage(), ex);
            logUnpackException(ex2);
            throw ex2;
        } catch (InvalidPasswordException ex) {
            UnpackException ex2 = new UnpackException(ex.getMessage(), ex);
            logUnpackException(ex2);
            throw ex2;
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.project.jitterpack.UnpackException

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.