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

war:war-resources should add overwrite=true (or configurable) flag to ant:copy task

    Details

    • Type: Improvement Improvement
    • 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 default behavior of ant:copy is to not overwrite files if an newer file exists. However, when war dependencies are included and merged (see MPWAR-41), this means that resources of this project might be overriden by resources from an included war file (which is counterintuitive: project resources should override all included files if they overlap)

      The line to change is

      <ant:copy todir="$

      {maven.war.webapp.dir}

      " preservelastmodified="true" overwrite="true">

        Issue Links

          Activity

          Hide
          Stéphane Nicoll added a comment -

          Added property maven.war.resources.overwrite to control is resources overwrites the ones in the generated webapp directory.

          Default to true.

          Show
          Stéphane Nicoll added a comment - Added property maven.war.resources.overwrite to control is resources overwrites the ones in the generated webapp directory. Default to true.

            People

            • Assignee:
              Stéphane Nicoll
              Reporter:
              Steven Dehandtschutter
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: