[ 
https://issues.apache.org/jira/browse/CXF-928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12521656
 ] 

maomaode commented on CXF-928:
------------------------------

To be honest, I didn't realized that we overwrite the existing files :( , 
previously, we just rename the new generated file, if there's a file exists 
with the same name. Really don't know when we change this behavior.

But I would like to suggest that we add an argument '-keep' to keep the 
existing file, but you have to remember that in this case, your generated 
project may not be compiled correctly. you have to solve this problem your self.

Don't know if this fit your requirements? 





> wsdl2java should not overwrite existing files
> ---------------------------------------------
>
>                 Key: CXF-928
>                 URL: https://issues.apache.org/jira/browse/CXF-928
>             Project: CXF
>          Issue Type: Improvement
>          Components: Tooling
>    Affects Versions: 2.0.1
>            Reporter: Christian Vest Hansen
>
> wsdl2java, and other code generating tools should not overwrite existing 
> files on a users system.
> Instead, they should warn a user when they decide not to overwrite a file.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to