Examples of TargetReport


Examples of org.apache.easyant.core.report.TargetReport

            getProject().log(LINE_SEP + "\t\tFor information on targets attached to this extension-point, run:");
            getProject().log("\t\teasyant -listTargets " + target);
        } else {
            getProject().log("\tNo extension point found for name: " + target);
        }
        TargetReport targetRep = getEareport().getTargetReport(target);
        if (targetRep != null) {
            getProject().log("\tTarget: " + target);
            getProject().log(
                    "\t\tExtension Point: "
                            + (targetRep.getExtensionPoint() == null ? NONE : targetRep.getExtensionPoint()));
            getProject().log(
                    "\t\tDescription: " + (targetRep.getDescription() == null ? NONE : targetRep.getDescription()));
            getProject().log("\t\tDepends: " + (targetRep.getDepends() == null ? NONE : targetRep.getDepends()));
            getProject().log("\t\tIF: " + (targetRep.getIfCase() == null ? NONE : targetRep.getIfCase()));
            getProject().log("\t\tUNLESS: " + (targetRep.getUnlessCase() == null ? NONE : targetRep.getUnlessCase()));
        } else {
            getProject().log("\tNo Target found for name: " + target);
        }
        PropertyDescriptor prop = getEareport().getAvailableProperties().get(target);
        if (prop != null) {
View Full Code Here

Examples of org.apache.easyant.core.report.TargetReport

        if (targets.size() == 0) {
            project.log("\tNo targets found.");
            return;
        }
        for (int i = 0; i < targets.size(); i++) {
            TargetReport targetRep = targets.get(i);
            project.log("\tTarget: " + targetRep.getName());
            project.log("\t\tExtension-Point: "
                    + (targetRep.getExtensionPoint() == null ? NONE : targetRep.getExtensionPoint()));
            project.log("\t\tDescription: " + (targetRep.getDescription() == null ? NONE : targetRep.getDescription()));
            project.log("\t\tDepends: " + (targetRep.getDepends() == null ? NONE : targetRep.getDepends()));
            project.log("\t\tIF: " + (targetRep.getIfCase() == null ? NONE : targetRep.getIfCase()));
            project.log("\t\tUNLESS: " + (targetRep.getUnlessCase() == null ? NONE : targetRep.getUnlessCase()));
        }
    }
View Full Code Here

Examples of org.apache.easyant.core.report.TargetReport

        for (TargetReport target : packageEP.getTargetReports()) {
            Assert.assertTrue("expected to find " + target.getName(), expectedTargets.remove(target.getName()));
        }

        TargetReport helloWorld = eaReport.getTargetReport("hello-world");
        Assert.assertNotNull(helloWorld);
        Assert.assertTrue("package".equals(helloWorld.getExtensionPoint()));
    }
View Full Code Here

Examples of org.apache.easyant.core.report.TargetReport

    private void handleTarget(Target target, EasyAntReport eaReport) {
        if (!"".equals(target.getName())) {
            boolean isExtensionPoint = target instanceof ExtensionPoint;
            if (!isExtensionPoint) {
                TargetReport targetReport = new TargetReport();
                targetReport.setName(target.getName());
                StringBuilder sb = new StringBuilder();
                Enumeration<?> targetDeps = target.getDependencies();
                while (targetDeps.hasMoreElements()) {
                    String t = (String) targetDeps.nextElement();
                    sb.append(t);
                    if (targetDeps.hasMoreElements()) {
                        sb.append(",");
                    }
                }
                targetReport.setDepends(sb.toString());
                targetReport.setDescription(target.getDescription());
                targetReport.setIfCase(target.getIf());
                targetReport.setUnlessCase(target.getUnless());
                for (Iterator<?> iterator = target.getProject().getTargets().values().iterator(); iterator.hasNext();) {
                    Target currentTarget = (Target) iterator.next();
                    if (currentTarget instanceof ExtensionPoint) {
                        Enumeration<?> dependencies = currentTarget.getDependencies();
                        while (dependencies.hasMoreElements()) {
                            String dep = (String) dependencies.nextElement();
                            if (dep.equals(target.getName())) {
                                targetReport.setExtensionPoint(currentTarget.getName());
                            }
                        }

                    }
                }

                eaReport.addTargetReport(targetReport);

                Message.debug("Ant file has a target called : " + targetReport.getName());
            } else {
                ExtensionPointReport extensionPoint = new ExtensionPointReport(target.getName());
                StringBuilder sb = new StringBuilder();
                Enumeration<?> targetDeps = target.getDependencies();
                while (targetDeps.hasMoreElements()) {
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.