axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Irv Salisbury (JIRA)" <>
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
             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,
        //set the existing flag
        fileExists = outputFile.exists();
        if (!fileExists) {
   = new FileOutputStream(outputFile);
        } else {
  "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:
For additional commands, e-mail:

View raw message