Maven 1.x War Plugin
  1. Maven 1.x War Plugin
  2. MPWAR-46

The war:war-resources goal should use filter when copying the resources

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.6.2
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The war:war-resources goal don not use the ant filter whern copying the resources to the target directory.
      here is the replacement goal as modified for using the filtering. I only added the (filtering="on") on the two
      ant:copy tags.

      <goal name="war:war-resources" prereqs="war:init"
      description="Copy webapp resources to target directory">
      <ant:mkdir dir="$

      {maven.war.webapp.dir}"/>
      <j:set var="webapp.build.webinf"
      value="${maven.war.webapp.dir}

      /WEB-INF"/>
      <ant:mkdir dir="$

      {webapp.build.webinf}"/>
      <j:if test="${webSourcesPresent == 'true'}">
      <ant:copy todir="${maven.war.webapp.dir}"
      filtering="on"
      preservelastmodified="true">
      <ant:fileset dir="${maven.war.src}"
      includes="${maven.war.src.includes}"
      excludes="${maven.war.src.excludes}">
      </ant:fileset>
      </ant:copy>
      </j:if>

      <util:available file="${maven.war.webxml}">
      <ant:copy file="${maven.war.webxml}"
      filtering="on"
      tofile="${webapp.build.webinf}

      /web.xml"
      overwrite="true" />
      </util:available>

      </goal>

        Issue Links

          Activity

          Stéphane Nicoll made changes -
          Field Original Value New Value
          Assignee Stephane Nicoll [ sni ]
          Stéphane Nicoll made changes -
          Fix Version/s 1.6.2 [ 12001 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Lukas Theussl made changes -
          Link This issue is related to MAVEN-1815 [ MAVEN-1815 ]
          Jason van Zyl made changes -
          Reporter Raphaël Piéroni [ larafale ] Raphaël Piéroni [ raphael ]

            People

            • Assignee:
              Stéphane Nicoll
              Reporter:
              Raphaël Piéroni
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 15 minutes
                15m
                Remaining:
                Remaining Estimate - 15 minutes
                15m
                Logged:
                Time Spent - Not Specified
                Not Specified