Uploaded image for project: 'Codehaus Cargo'
  1. CARGO-1176

Configuration files option cannot override files CARGO is attempting to replace

    Details

    • Type: Bug
    • Status: Closed (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: 1.3.2
    • Fix versions: 1.3.3
    • Components: Core
    • Labels:
      None

      Description

      See: http://old.nabble.com/conf.server.xml-being-overwritten--to34963090.html

      Configuration files option cannot override files CARGO is attempting to replace. For example, with the below:

      <plugin>
      <groupId>org.codehaus.cargo</groupId>
      <artifactId>cargo-maven2-plugin</artifactId>
      <version>1.3.2</version>
      <configuration>
      <container>
      <containerId>tomcat7x</containerId>
      <zipUrlInstaller>
      <url>http://archive.apache.org/dist/tomcat/tomcat-7/v7.0.35/bin/apache-tomcat-7.0.35.zip</url>
      </zipUrlInstaller>
      </container>
      <configuration>
      <home>${project.build.directory}/catalina-base</home>
      <configfiles>
      <configfile>
      <file>${project.basedir}/src/test/resources/tomcat-server.xml</file>
      <tofile>conf/server.xml</tofile>
      <overwrite>true</overwrite>
      </configfile>
      </configfiles>
      </configuration>
      </configuration>
      </plugin>
      

      CARGO will:

      1. Create the "base" Tomcat configuration
      2. Overrides the server.xml file
      3. And then, performs XML replacements and other changes in the server.xml file

      Steps 2 and 3 should be inversed

        Attachments

          Activity

            People

            • Assignee:
              Savas Ali Tokmen (Inactive)
              Reporter:
              Savas Ali Tokmen (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: