axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r396733 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/ParmHeaderFileWriter.java
Date Mon, 24 Apr 2006 23:52:01 GMT
Author: nadiramra
Date: Mon Apr 24 16:51:59 2006
New Revision: 396733

URL: http://svn.apache.org/viewcvs?rev=396733&view=rev
Log:
C support fixes/enhancements.

Modified:
    webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/ParmHeaderFileWriter.java

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/ParmHeaderFileWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/ParmHeaderFileWriter.java?rev=396733&r1=396732&r2=396733&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/ParmHeaderFileWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/c/ParmHeaderFileWriter.java
Mon Apr 24 16:51:59 2006
@@ -438,7 +438,10 @@
             Iterator itr = typeSet.iterator();
             while (itr.hasNext())
             {
-                writer.write("#include \"" + itr.next().toString() + CUtils.C_HEADER_SUFFIX
+ "\"\n");
+                // Do not want to include the header file we are generating!
+                String includeFile = itr.next().toString();
+                if (!includeFile.equals(classname))
+                   writer.write("#include \"" + includeFile + CUtils.C_HEADER_SUFFIX + "\"\n");
             }
 
             writer.write("\n");



Mime
View raw message