jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Clean Plugin
  • MCLEAN-49

Preserve build directory after cleaning

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 2.4.1
  • Fix Version/s: None
  • Labels:
    None

Description

I feel the need to preserve e.g. project.build.directory folder after deleting all files and folders within this folder by clean:clean.
Currently these default output folders are deleted entirely instead of beeing cleared.
This could be configured by configuration section in pom or by a property.

Thanks in advance.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Mark Struberg added a comment - 22/Jul/11 10:30 AM

I don't really get the benefit. What is the use case where you would need such a behaviour?
The idea behind dropping the directory is to be certain that you start on a defined base line.

Show
Mark Struberg added a comment - 22/Jul/11 10:30 AM I don't really get the benefit. What is the use case where you would need such a behaviour? The idea behind dropping the directory is to be certain that you start on a defined base line.
Hide
Permalink
Björn Michael added a comment - 25/Jul/11 12:30 AM

E.g. I use maven in conjunction with eclipse. The target folder is set derived in eclipse manually. Every time I launched mvn clean eclipse recognizes that the folder was deleted and derived flag is unset again.
Similar occurrences could happen with other third-party tools which validate a certain folder structure.

Show
Björn Michael added a comment - 25/Jul/11 12:30 AM E.g. I use maven in conjunction with eclipse. The target folder is set derived in eclipse manually. Every time I launched mvn clean eclipse recognizes that the folder was deleted and derived flag is unset again. Similar occurrences could happen with other third-party tools which validate a certain folder structure.
Hide
Permalink
Benjamin Bentmann added a comment - 25/Jul/11 5:10 AM

It might be worth to check the example configuration given in MCLEAN-44 and the parameter excludeDefaultDirectories

Show
Benjamin Bentmann added a comment - 25/Jul/11 5:10 AM It might be worth to check the example configuration given in MCLEAN-44 and the parameter excludeDefaultDirectories
Hide
Permalink
Björn Michael added a comment - 25/Jul/11 5:48 AM - edited

This is a solution indeed but a clear flag would be much more comfortable. It's up to you, I can live with this 'workaround'.

Show
Björn Michael added a comment - 25/Jul/11 5:48 AM - edited This is a solution indeed but a clear flag would be much more comfortable. It's up to you, I can live with this 'workaround'.

People

  • Assignee:
    Olivier Lamy
    Reporter:
    Björn Michael
Vote (0)
Watch (1)

Dates

  • Created:
    22/Jul/11 10:22 AM
    Updated:
    Yesterday 9:36 AM
    Resolved:
    Yesterday 9:36 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.