History | Log In     View a printable version of the current page.  
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
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.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Arnaud Heritier - 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 - 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 - 08/May/06 07:51 PM
Fixed. The plugin ask to the user if he wants to overwrite a previously generated script