Examples of CRequiredFile


Examples of org.jitterbit.integration.server.implementation.webservice.interchange.deploy.client.CRequiredFile

    private void addRequiredUrl(String url, int iType) {
        if (hasFileBeenAdded(url))
            return;

        CRequiredFile requiredFile = new CRequiredFile();
        requiredFile.setPath(url);
        requiredFile.setMD5("");
        requiredFile.setModifiedTime(0);
        requiredFile.setType(iType);
        requiredFile.setZippedBase64Contents(null);

        m_requiredFiles.add(requiredFile);
    }
View Full Code Here

Examples of org.jitterbit.integration.server.implementation.webservice.interchange.deploy.client.CRequiredFile

            if (file == null) {
                throw new DeployException("Failed to get the file \"" + path
                                + "\" from the file store. This is probably a bug.");
            }

            CRequiredFile requiredFile = new CRequiredFile();

            requiredFile.setMD5(file.getMD5());
            requiredFile.setModifiedTime(file.getPhysicalRepresentation().lastModified());

            requiredFile.setPath(path);
            requiredFile.setType(iType);

            // This is not set here, only when we need to send it,
            // just making sure it is null at this point.
            requiredFile.setZippedBase64Contents(null);

            m_requiredFiles.add(requiredFile);

            // Check for dependencies.
            List<? extends FileStoreFile> dependencies = m_fileStore.getRequiredFiles(path);
View Full Code Here

Examples of org.jitterbit.integration.server.implementation.webservice.interchange.deploy.client.CRequiredFile

        private void AddRequiredFilesWithContent(CRequiredFile[] availableOnServer) throws DeployException {
            // Check which ones of our required files are available on the server
            // If a file is available we need to check the hash value and upload the file
            // if it is different.
            for (CRequiredFile requiredFile : m_requiredFiles) {
                CRequiredFile available = FindRequiredFile(requiredFile.getPath(), availableOnServer);

                // We need to add this file if the file is not there OR
                // the available file has a different hash.
                if (available == null || !available.getMD5().equalsIgnoreCase(requiredFile.getMD5())) {
                    // The file contents needs to be uploaded.
                    String path = requiredFile.getPath();
                    if (isUrl(path)) {
                        // Could this be in error? Probably not, but since we don't keep track of
                        // MD5
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.