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

Glen Mazza commented on CXF-928:
--------------------------------

I'm inclined to disagree.  I just checked that Glassfish Metro also overwrites 
each time, like CXF.  Not only that, AFAICT Metro does not even provide an 
command-line option for their <wsimport/>[1] to *not* overwrite (and neither 
does CXF[2]).   (Note Metro's "keep" switch does not mean "don't overwrite" -- 
it refers to retaining the .java files as Metro normally just provides the 
compiled .class files without the java.)

If it were the case that there is significant demand to *not* overwrite each 
time, would not Metro (or CXF) at least have a command line option by now to 
not overwrite?  But to jump from "not even having an option to not overwrite" 
to "making not overwrite the default" is too big a leap IMHO.

[1] https://jax-ws.dev.java.net/nonav/2.1.2m1/docs/wsimport.html
[2] http://cwiki.apache.org/CXF20DOC/wsdl-to-java.html 


> 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