Issue Details (XML | Word | Printable)

Key: MPANT-19
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Arnaud Heritier
Reporter: Richard Easterling
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 1.x Ant Plugin

Overwrites existing build.xml files without warning

Created: 15/Sep/04 03:16 AM   Updated: 08/May/06 07:51 PM   Resolved: 08/May/06 07:51 PM
Return to search
Component/s: None
Affects Version/s: 1.8.1
Fix Version/s: 1.10

Time Tracking:
Not Specified


 Description  « Hide

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.



Arnaud Heritier added a comment - 15/Sep/04 06:06 PM

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.


Arnaud Heritier added a comment - 26/Feb/05 07:35 PM

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.


Arnaud Heritier made changes - 22/Aug/05 06:41 AM
Field Original Value New Value
Assignee Arnaud Heritier [ aheritier ]
Arnaud Heritier made changes - 06/Feb/06 09:22 AM
Fix Version/s 1.10 [ 11602 ]
Arnaud Heritier added a comment - 08/May/06 07:51 PM

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


Arnaud Heritier made changes - 08/May/06 07:51 PM
Assignee Arnaud Heritier [ aheritier ]
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]