You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by aj...@apache.org on 2006/05/04 09:41:12 UTC
svn commit: r399589 -
/webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java
Author: ajith
Date: Thu May 4 00:41:09 2006
New Revision: 399589
URL: http://svn.apache.org/viewcvs?rev=399589&view=rev
Log:
Added the serverside interface option to the ant task
Modified:
webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java
Modified: webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java?rev=399589&r1=399588&r2=399589&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java (original)
+++ webservices/axis2/trunk/java/modules/tool/src/org/apache/axis2/tool/ant/AntCodegenTask.java Thu May 4 00:41:09 2006
@@ -47,6 +47,7 @@
private boolean generateServiceXml = false;
private boolean generateAllClasses = false;
private boolean unpackClasses = false;
+ private boolean serverSideInterface = false;
private String namespaceToPackages = null;
@@ -75,6 +76,22 @@
}
/**
+ *
+ * @return
+ */
+ public boolean isServerSideInterface() {
+ return serverSideInterface;
+ }
+
+ /**
+ *
+ * @param serverSideInterface
+ */
+ public void setServerSideInterface(boolean serverSideInterface) {
+ this.serverSideInterface = serverSideInterface;
+ }
+
+ /**
* Fills the option map. This map is passed onto
* the code generation API to generate the code.
*/
@@ -182,6 +199,14 @@
new String[0]));
}
+ //server side interface option
+ if (serverSideInterface) {
+ optionMap.put(
+ CommandLineOptionConstants.WSDL2JavaConstants.SERVER_SIDE_INTERFACE_OPTION,
+ new CommandLineOption(
+ CommandLineOptionConstants.WSDL2JavaConstants.SERVER_SIDE_INTERFACE_OPTION,
+ new String[0]));
+ }
optionMap.put(
CommandLineOptionConstants.WSDL2JavaConstants.SERVICE_NAME_OPTION,
new CommandLineOption(