mojohaus / jaxb2-maven-plugin

JAXB2 Maven Plugin
https://www.mojohaus.org/jaxb2-maven-plugin/
Apache License 2.0
103 stars 76 forks source link

Output directory should be deleted before creating the episode file name #300

Open alerosmile opened 4 months ago

alerosmile commented 4 months ago

getEpisodeFile() adds a post-fix to the file name if the file already exists. However, the file is deleted shortly afterwards.

For this reason, the output directory should be deleted before calling getXjcArguments(). Otherwise the xjc arguments include an unexpected episode file name.