Package org.rhq.bundle.ant

Examples of org.rhq.bundle.ant.HandoverTarget


                    deployer.redeployAndRestoreBackupFiles(diffs, clean, dryRun);
                } else {
                    deployer.deploy(diffs, clean, dryRun);
                }

                HandoverTarget handoverTarget = getProject().getHandoverTarget();
                if (handoverTarget != null) {
                    for (HasHandover hasHandoverReference : contentToHandover) {
                        Handover handoverTag = hasHandoverReference.getHandover();
                        File source = getFileSource(hasHandoverReference, downloadedFilesToHandover, templateEngine);
                        FileInputStream contentStream = new FileInputStream(source);

                        HandoverInfo.Builder builder = new HandoverInfo.Builder();
                        builder.setContent(contentStream);
                        builder.setFilename(source.getName());
                        builder.setAction(handoverTag.getAction());
                        builder.setParams(handoverTag.getHandoverParams());
                        builder.setRevert(revert);
                        HandoverInfo handoverInfo = builder.createHandoverInfo();

                        if (!dryRun) {
                            try {
                                boolean handoverSuccess = handoverTarget.handoverContent(handoverInfo);
                                String informationMessage = "Source: " + source.getName() + ", " + handoverTag;
                                if (handoverSuccess) {
                                    getProject().auditLog(AuditStatus.INFO, "Handover",
                                        "Handover target reported success", informationMessage, null);
                                } else {
View Full Code Here

TOP

Related Classes of org.rhq.bundle.ant.HandoverTarget

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.