Package org.apache.cactus.integration.ant.deployment

Examples of org.apache.cactus.integration.ant.deployment.EarArchive


        try
        {
            deployable.setFile(theDeployableFile);

            EarArchive earArchive = new DefaultEarArchive(theDeployableFile);
            String webUri = getUriOfCactifiedWebModule(earArchive);
            if (webUri == null)
            {
                throw new BuildException("Could not find cactified web "
                    + "module in the [" + theDeployableFile + "] EAR.");
            }

            WarArchive warArchive = earArchive.getWebModule(webUri);
            if (warArchive == null)
            {
                throw new BuildException("Could not find the WAR [" + webUri
                    + "] in the [" + theDeployableFile + "] EAR.");
            }
View Full Code Here


                    contextPath = contextPath.substring(0, warIndex);
                }
            }
            else
            {
                EarArchive ear = new EarArchive(this.earFile);
                String webUri = getUriOfCactifiedWebModule(ear);
                if (webUri == null)
                {
                    throw new BuildException("Could not find cactified web "
                        + "module in the EAR");
                }
                war = ear.getWebModule(webUri);
                if (war == null)
                {
                    throw new BuildException("Could not find the WAR " + webUri
                        + " in the EAR");
                }
                contextPath =
                    ear.getApplicationXml().getWebModuleContextRoot(webUri);
            }
            addRedirectorNameProperties(war);
        }
        catch (SAXException e)
        {
View Full Code Here

        try
        {
            deployable.setFile(theDeployableFile);

            EarArchive earArchive = new DefaultEarArchive(theDeployableFile);
            String webUri = getUriOfCactifiedWebModule(earArchive);
            if (webUri == null)
            {
                throw new BuildException("Could not find cactified web "
                    + "module in the [" + theDeployableFile + "] EAR.");
            }

            WarArchive warArchive = earArchive.getWebModule(webUri);
            if (warArchive == null)
            {
                throw new BuildException("Could not find the WAR [" + webUri
                    + "] in the [" + theDeployableFile + "] EAR.");
            }
View Full Code Here

TOP

Related Classes of org.apache.cactus.integration.ant.deployment.EarArchive

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.