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

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


    private JitterPackDescriptor createDescriptorFromData(Properties data, final String folderName, boolean encrypted)
                    throws IllegalDataFormatException {
        String projectName = readProjectName(data);
        String comment = readComment(data);
        Date created = readCreatedDate(data);
        VersionInfo versionInfo = readVersionInfo(data);
        boolean readOnly = isReadOnly(data);
        return new DefaultJitterPackDescriptor(projectName, versionInfo, folderName, created, comment, encrypted, readOnly);
    }
View Full Code Here


        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

     *         understand this Jitterpack format.
     */
    protected abstract Version getRequiredVersion();
   
    private JitterPackDescriptor createDescriptorForWriting(final ManagedProject project, final String comment) {
        VersionInfo versionInfo = createVersionInfo(project);
        ExportParameters packParams = ParamsSanityCheck.ensureForPacking(params);
        return new DefaultJitterPackDescriptor(project.getProject().getName(), versionInfo,
                        project.getLocation().getName(), new Date(), comment, packParams.getPassword() != null,
                        packParams.isPackedProjectReadOnly());
    }
View Full Code Here

TOP

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

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.