You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-commits@axis.apache.org by na...@apache.org on 2010/10/24 19:34:33 UTC
svn commit: r1026844 -
/axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java
Author: nadiramra
Date: Sun Oct 24 17:34:33 2010
New Revision: 1026844
URL: http://svn.apache.org/viewvc?rev=1026844&view=rev
Log:
Minor - move completion message to proper place.
Modified:
axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java
Modified: axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java
URL: http://svn.apache.org/viewvc/axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java?rev=1026844&r1=1026843&r2=1026844&view=diff
==============================================================================
--- axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java (original)
+++ axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/WSDL2Ws.java Sun Oct 24 17:34:33 2010
@@ -110,9 +110,10 @@ public class WSDL2Ws
public static void main(String[] args) throws Exception
{
// Kick off code generation
+ WSDL2Ws gen = null;
try
{
- WSDL2Ws gen = new WSDL2Ws(args);
+ gen = new WSDL2Ws(args);
gen.generateWrappers();
}
catch (Exception e)
@@ -124,7 +125,13 @@ public class WSDL2Ws
if (e.getMessage() != null)
System.out.println("\nCode generation failed. Please see errors above.\n");
+
+ return;
}
+
+ // Indicate code generation complete and show where stored.
+ System.out.println("\nCode generation completed. Generated files in directory\n'"
+ + gen.getCmdLineArgs().getOutputDirectory() + "'.");
}
/**
@@ -293,9 +300,6 @@ public class WSDL2Ws
// Generate code
wsg.generate();
-
- // Indicate code generation complete and show where stored.
- System.out.println("\nCode generation completed. Generated files in directory\n'" + c_cmdLineArgs.getOutputDirectory() + "'.");
}
// The following 3 exposeXXX methods attempts to expose anonymous types so that
@@ -562,4 +566,14 @@ public class WSDL2Ws
wsContext.getTypemap().addType(newTypeName, innerClassType);
}
}
+
+ /**
+ * Return command line arguments.
+ *
+ * @return c_cmdLineArgs
+ */
+ private CLArgParser getCmdLineArgs()
+ {
+ return c_cmdLineArgs;
+ }
}