Package com.salesforce.ide.core.remote.metadata

Examples of com.salesforce.ide.core.remote.metadata.DeployMessageExt


            strBuff.append("\n   n/a");
        }

        strBuff.append("\n\n# Deploy Results:");
        if (deployResultHandler != null && deployResultHandler.getMessageCount() > 0) {
            DeployMessageExt deployMessageExt = deployResultHandler.getMessageHandler();
            deployMessageExt.sort(DeployMessageExt.SORT_RESULT);
            DeployMessage[] deployMessages = deployMessageExt.getMessages();
            for (int i = 0; i < deployMessages.length; i++) {
                DeployMessage deployMessage = deployMessages[i];
                strBuff.append("\n   File Name:    ").append(deployMessage.getFileName()).append("\n   Full Name:  ").append(
                    deployMessage.getFullName()).append("\n   Action:  ").append(
                    getActionString(deployMessage)).append("\n   Result:  ").append(
View Full Code Here


    public String getDeployFailMessages() {
        StringBuffer strBuff = new StringBuffer();

        strBuff.append("\n\n# Deploy Results:");
        if (deployResultHandler != null && deployResultHandler.getMessageCount() > 0) {
            DeployMessageExt deployMessageExt = deployResultHandler.getMessageHandler();
            deployMessageExt.sort(DeployMessageExt.SORT_RESULT);
            DeployMessage[] deployMessages = deployMessageExt.getMessages();
            for (int i = 0; i < deployMessages.length; i++) {
                DeployMessage deployMessage = deployMessages[i];
                if (deployMessage.isSuccess()) {
                    continue;
                }
View Full Code Here

        result.setDeployResultHandler(deployResultHandler);

        if (deployResultHandler != null && !deployResultHandler.isSuccess()) {
            StringBuffer strBuff = new StringBuffer("Deployment FAILED.  ");
            DeployMessageExt messageHandler = deployResultHandler.getMessageHandler();
            if (messageHandler != null) {
                messageHandler.logMessage(strBuff, false);
            }
            logger.warn(strBuff.toString());
        }

        return result;
View Full Code Here

                }
            }
            logger.debug(filePathLog);

            // log deploy messages
            DeployMessageExt messageHandler = deployResultHandler.getMessageHandler();
            if (messageHandler != null) {
                messageHandler.logMessage();
            }

            // log api log
            if (deployResultHandler.getDeployResult() != null) {
                logger.debug("Metadata debug log:\n"
                        + (Utils.isNotEmpty(deployResultHandler.getDebugLog()) ? deployResultHandler.getDebugLog()
                                : "n/a"));
            }
        } else if (logger.isInfoEnabled()) {
            DeployMessageExt messageHandler = deployResultHandler.getMessageHandler();
            if (messageHandler != null) {
                messageHandler.logMessage();
            }
        }

    }
View Full Code Here

TOP

Related Classes of com.salesforce.ide.core.remote.metadata.DeployMessageExt

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.