Maven 1.x Ant Plugin

Overwrites existing build.xml files without warning

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8.1
  • Fix Version/s: 1.10
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

This plugin has caused much grief by overwriting existing build.xml files without warning. The default build name should be changed to something less commonly used, 'build-from-pom.xml' for example. Or the user should be prompted to confirm overwriting on the command line.

Activity

Hide
Arnaud Heritier added a comment -

I can try to add a warning if the file already exists but I'm not in favor to change the default file name.
You can use the property 'maven.ant.generatebuild.file' to define yourself another name for this file.

Show
Arnaud Heritier added a comment - I can try to add a warning if the file already exists but I'm not in favor to change the default file name. You can use the property 'maven.ant.generatebuild.file' to define yourself another name for this file.
Hide
Arnaud Heritier added a comment -

Actually I didn't find how to do it.
Even if I add a user input when the file exists, I don't find how to generate or not the file.
The call to <j:import..> is always done even it is in a test with a false value.

Show
Arnaud Heritier added a comment - Actually I didn't find how to do it. Even if I add a user input when the file exists, I don't find how to generate or not the file. The call to <j:import..> is always done even it is in a test with a false value.
Hide
Arnaud Heritier added a comment -

Fixed. The plugin ask to the user if he wants to overwrite a previously generated script

Show
Arnaud Heritier added a comment - Fixed. The plugin ask to the user if he wants to overwrite a previously generated script

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: