axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bu...@apache.org
Subject cvs commit: xml-axis/java/src/org/apache/axis/wsdl/toJava JavaBindingWriter.java
Date Fri, 09 Aug 2002 19:33:09 GMT
butek       2002/08/09 12:33:09

  Modified:    java/src/org/apache/axis/wsdl/toJava JavaBindingWriter.java
  Log:
  WSDL2Java doesn't overwrite XXXImpl.java files.  I added a message
  informing the user if that's the case:
  
  "XXXImpl.java already exists, WSDL2Java will not overwrite it."
  
  Revision  Changes    Path
  1.14      +5 -1      xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaBindingWriter.java
  
  Index: JavaBindingWriter.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/toJava/JavaBindingWriter.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- JavaBindingWriter.java	8 Aug 2002 15:17:11 -0000	1.13
  +++ JavaBindingWriter.java	9 Aug 2002 19:33:09 -0000	1.14
  @@ -180,9 +180,13 @@
                   String fileName = Utils.getJavaLocalName(bEntry.getName())
                           + "Impl.java";
                   try {
  -                    if (!Utils.fileExists(fileName,
  +                    if (Utils.fileExists(fileName,
                               binding.getQName().getNamespaceURI(),
                               emitter.getNamespaces())) {
  +                        System.out.println(JavaUtils.getMessage(
  +                                "wontOverwrite", fileName));
  +                    }
  +                    else {
                           implWriter = getJavaImplWriter(
                                   emitter, bEntry, symbolTable);
                       }
  
  
  

Mime
View raw message