You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Deepal Jayasinghe (JIRA)" <ji...@apache.org> on 2007/06/11 23:45:26 UTC

[jira] Assigned: (AXIS2-2786) Ability to override the overwrite capabilities of wsdl2java

     [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org