axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Irv Salisbury (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-2786) Ability to override the overwrite capabilities of wsdl2java
Date Fri, 08 Jun 2007 18:29:26 GMT
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
            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


Mime
View raw message