You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herbert Hui (JIRA)" <ji...@codehaus.org> on 2008/03/05 23:11:28 UTC

[jira] Created: (MASSEMBLY-292) Ability to overwrite existing files regardless of timestamp

Ability to overwrite existing files regardless of timestamp
-----------------------------------------------------------

                 Key: MASSEMBLY-292
                 URL: http://jira.codehaus.org/browse/MASSEMBLY-292
             Project: Maven 2.x Assembly Plugin
          Issue Type: Improvement
    Affects Versions: 2.2-beta-2
            Reporter: Herbert Hui


Request to have an attribute in assembly descriptor that will overwrite existing files regardless of timestamp if set to true. Current behavior overwrites existing file only if existing file has an older date modified timestamp. Only workaround I'm aware of is to not use the assembly plugin and use ant copy task through the maven ant plugin.

Example (overwrite attribute in fileset):

<assembly>
  <id>assemble-data</id>
  <fileSets>
    <fileSet>
      <directory>seed</directory>
      <overwrite>true</overwrite>
      <outputDirectory>../../dist/data/seed</outputDirectory>
    </fileSet>
  </fileSets>
</assembly>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira