Examples of AntLauncher


Examples of org.rhq.bundle.ant.AntLauncher

            ByteArrayInputStream in = new ByteArrayInputStream(recipe.getBytes());
            FileOutputStream out = new FileOutputStream(recipeFile);
            StreamUtil.copy(in, out);

            // parse, but do not execute, the Ant script
            AntLauncher antLauncher = new AntLauncher(true);
            BundleAntProject project = antLauncher.parseBundleDeployFile(recipeFile, null);

            // obtain the parse results
            deploymentProps = new DeploymentProperties(0, project.getBundleName(), project.getBundleVersion(),
                project.getBundleDescription(), project.getDestinationCompliance());
View Full Code Here

Examples of org.rhq.bundle.ant.AntLauncher

    private BundleAntProject executeDeploymentPhase(File recipeFile, Properties antProps,
        List<BuildListener> buildListeners, DeploymentPhase phase, HandoverTarget handoverTarget)
        throws InvalidBuildFileException {
        //noinspection deprecation
        AntLauncher antLauncher = new AntLauncher();
        antLauncher.setHandoverTarget(handoverTarget);
        antProps.setProperty(DeployPropertyNames.DEPLOY_PHASE, phase.name());
        return antLauncher.executeBundleDeployFile(recipeFile, antProps, buildListeners);
    }
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.