axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r396738 - /webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ParmHeaderFileWriter.java
Date Tue, 25 Apr 2006 00:13:45 GMT
Author: nadiramra
Date: Mon Apr 24 17:13:43 2006
New Revision: 396738

URL: http://svn.apache.org/viewcvs?rev=396738&view=rev
Log:
Prevent the inclusion of header file that is being generated.

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

Modified: webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ParmHeaderFileWriter.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ParmHeaderFileWriter.java?rev=396738&r1=396737&r2=396738&view=diff
==============================================================================
--- webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ParmHeaderFileWriter.java
(original)
+++ webservices/axis/trunk/c/src/wsdl/org/apache/axis/wsdl/wsdl2ws/cpp/ParmHeaderFileWriter.java
Mon Apr 24 17:13:43 2006
@@ -598,9 +598,13 @@
             Iterator itr = typeSet.iterator();
             while (itr.hasNext())
             {
-                writer.write("#include \"" + itr.next().toString() + CUtils.CPP_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.CPP_HEADER_SUFFIX +
"\"\n");
             }
 
+            writer.write("\n");
             //Local name and the URI for the type
             writer.write("/*Local name and the URI for the type*/\n");
             writer.write("static const char* Axis_URI_" + classname + " = \""



Mime
View raw message