Examples of ApplicationXml


Examples of com.google.apphosting.utils.config.ApplicationXml

  static List<VersionWithWarPath> getEarVersions(File earDirectory) {
    File metaInf = new File(earDirectory, "META-INF");
    File applicationXmlFile = new File(metaInf, "application.xml");
    ImmutableList.Builder<VersionWithWarPath> resultBuilder = ImmutableList.builder();
    try {
      ApplicationXml applicationXml =
          APPLICATION_XML_READER.processXml(new FileInputStream(applicationXmlFile));
      for (ApplicationXml.Modules.Web web : applicationXml.getModules().getWeb()) {
        File warDirectory = new File(earDirectory, web.getWebUri());
        if (isWar(warDirectory)) {
          resultBuilder.add(new VersionWithWarPath(warDirectory, getWarVersion(warDirectory)));
        }
      }
View Full Code Here

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

     *         configration problem
     */
    protected static final String getUriOfCactifiedWebModule(EarArchive theEar)
        throws SAXException, IOException, ParserConfigurationException
    {
        ApplicationXml applicationXml = theEar.getApplicationXml();
        for (Iterator i = applicationXml.getWebModuleUris(); i.hasNext();)
        {
            String webUri = (String) i.next();
            WarArchive war = theEar.getWebModule(webUri);
            if ((war != null)
                && (WarParser.parseServletRedirectorMapping(war) != null))
View Full Code Here

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

     */
    private String getUriOfCactifiedWebModule(EarArchive theEar)
    {
        try
        {
            ApplicationXml applicationXml = theEar.getApplicationXml();
            for (Iterator i = applicationXml.getWebModuleUris(); i.hasNext();)
            {
                String webUri = (String) i.next();
                WarArchive war = theEar.getWebModule(webUri);
                if ((war != null) && (getServletRedirectorMapping(war) != null))
                {
View Full Code Here

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

     *         configration problem
     */
    protected static final String getUriOfCactifiedWebModule(EarArchive theEar)
        throws SAXException, IOException, ParserConfigurationException
    {
        ApplicationXml applicationXml = theEar.getApplicationXml();
        for (Iterator i = applicationXml.getWebModuleUris(); i.hasNext();)
        {
            String webUri = (String) i.next();
            WarArchive war = theEar.getWebModule(webUri);
            if ((war != null)
                && (WarParser.parseServletRedirectorMapping(war) != null))
View Full Code Here

Examples of org.apache.cactus.integration.ant.deployment.application.ApplicationXml

     *         configration problem
     */
    protected static final String getUriOfCactifiedWebModule(EarArchive theEar)
        throws SAXException, IOException, ParserConfigurationException
    {
        ApplicationXml applicationXml = theEar.getApplicationXml();
        for (Iterator i = applicationXml.getWebModuleUris(); i.hasNext();)
        {
            String webUri = (String) i.next();
            WarArchive war = theEar.getWebModule(webUri);
            if ((war != null)
                && (WarParser.parseServletRedirectorMapping(war) != null))
View Full Code Here

Examples of org.apache.cactus.integration.ant.deployment.application.ApplicationXml

     *         configration problem
     */
    protected static final String getUriOfCactifiedWebModule(EarArchive theEar)
        throws SAXException, IOException, ParserConfigurationException
    {
        ApplicationXml applicationXml = theEar.getApplicationXml();
        for (Iterator i = applicationXml.getWebModuleUris(); i.hasNext();)
        {
            String webUri = (String) i.next();
            WarArchive war = theEar.getWebModule(webUri);
            if ((war != null)
                && (WarParser.parseServletRedirectorMapping(war) != null))
View Full Code Here

Examples of org.codehaus.cargo.module.application.ApplicationXml

        currentFiles.setSrc(this.srcFile);
        currentFiles.createExclude().setName("META-INF/application.xml");
        addZipfileset(currentFiles);
       
        // cactify the application.xml
        ApplicationXml appXml = getOriginalApplicationXml();
        File tmpAppXml = cactifyApplicationXml(appXml);
        setAppxml(tmpAppXml);
       
        // create the cactus war
        File cactusWarFile = createCactusWar();
View Full Code Here

Examples of org.codehaus.cargo.module.application.ApplicationXml

     *
     * @return the application.xml from the source ear
     */
    private ApplicationXml getOriginalApplicationXml()
    {
        ApplicationXml appXml = null;
        try
        {
            EarArchive ear = new DefaultEarArchive(this.srcFile);
            appXml = ear.getApplicationXml();
            if (appXml == null)
View Full Code Here

Examples of org.codehaus.cargo.module.application.ApplicationXml

    private void addEjbReferencesToWar(File theWar)
    {
        try
        {
            EarArchive ear = new DefaultEarArchive(srcFile);
            ApplicationXml appXml = ear.getApplicationXml();
            Iterator ejbModules = appXml.getEjbModules();
            while (ejbModules.hasNext())
            {
                String module = (String) ejbModules.next();
                EjbArchive ejbArchive = ear.getEjbModule(module);
                EjbJarXml descr = ejbArchive.getEjbJarXml();
View Full Code Here

Examples of org.codehaus.cargo.module.application.ApplicationXml

     */
    public void testConstructionWithNullDocument() throws Exception
    {
        try
        {
            new ApplicationXml(null);
            fail("Expected NullPointerException");
        }
        catch (NullPointerException npe)
        {
            // expected
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.