[ 
https://issues.apache.org/jira/browse/AXIS2-2786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Deepal Jayasinghe reassigned AXIS2-2786:
----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> Ability to override the overwrite capabilities of wsdl2java
> -----------------------------------------------------------
>
>                 Key: AXIS2-2786
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2786
>             Project: Axis 2.0 (Axis2)
>          Issue Type: New Feature
>          Components: wsdl
>    Affects Versions: 1.2
>         Environment: Any envioroment
>            Reporter: Irv Salisbury
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Minor
>
> In org.apache.axis2.wsdl.codegen.writer.ClassWriter, the following code will 
> not overwrite what is already there, even if you want it to.  It would be 
> nice to have a switch to turn on overwriting behavior.
> public void createOutFile(String packageName, String fileName) throws 
> Exception {
>         outputFile = FileWriter.createClassFile(outputFileLocation,
>                                                 packageName,
>                                                 fileName,
>                                                 
> getFileExtensionForLanguage(language));
>         //set the existing flag
>         fileExists = outputFile.exists();
>         if (!fileExists) {
>             this.stream = new FileOutputStream(outputFile);
>         } else {
>             log.info(Messages.getMessage("fileExistsNoOverwrite", 
> outputFile.toString()));
>         }
>     }

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to