From: Emmanuel V. <ve...@us...> - 2004-12-12 22:38:07
|
venisse 04/12/12 14:37:59 Modified: axis plugin.jelly axis/xdocs properties.xml Log: Defines location and namespace by classes Revision Changes Path 1.5 +5 -8 maven-plugins/axis/plugin.jelly Index: plugin.jelly =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/axis/plugin.jelly,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- plugin.jelly 8 Dec 2004 22:27:11 -0000 1.4 +++ plugin.jelly 12 Dec 2004 22:37:58 -0000 1.5 @@ -201,20 +201,17 @@ <ant:fail message="${message}" /> </j:if> - <j:if test="${context.getVariable('maven.axis.namespace') == null}"> - <j:set var="message" value="You must specify maven.axis.namespace property." /> - <ant:echo>${message}</ant:echo> - <ant:fail message="${message}" /> - </j:if> - <u:tokenize var="classes" delim=",">${maven.axis.classnames}</u:tokenize> <j:forEach var="classname" items="${classes}"> <ant:echo>generate .wsdl file from ${classname}</ant:echo> + <u:tokenize var="classDetail" delim=",">${context.getVariable(classname)}</u:tokenize> + <j:set var="location" value="${classDetail[0]}" /> + <j:set var="namespace" value="${classDetail[1]}" /> <axis-java2wsdl classname="${classname}" exclude="${maven.axis.java2wsdl.exclude}" - location="${maven.axis.location}" - namespace="${maven.axis.namespace}" + location="${location}" + namespace="${namespace}" output="${maven.axis.output}/${classname}.wsdl" typemappingversion="${maven.axis.typemappingversion}" useinheritedmethods="${maven.axis.useinheritedmethods}"> 1.4 +7 -17 maven-plugins/axis/xdocs/properties.xml Index: properties.xml =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/axis/xdocs/properties.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- properties.xml 6 Dec 2004 15:41:31 -0000 1.3 +++ properties.xml 12 Dec 2004 22:37:58 -0000 1.4 @@ -75,14 +75,12 @@ <td>No</td> <td> Specifies a comma-separated list of classes names to import, eg. org.example.Foo. Required. - </td> - </tr> - <tr> - <td>maven.axis.namespace</td> - <td></td> - <td>No</td> - <td> - Specifies the target namespace. Required. + It's required too to define the namespace and location for these classes like this :<br> + classname=location,namespace<br> + example:<br> + maven.axis.classnames=foo.bar.class1,foo.bar.class2<br> + foo.bar.class1=http://localhost/services/service1,Namespace1<br> + foo.bar.class2=http://localhost/services/service2,Namespace2 </td> </tr> <tr> @@ -94,14 +92,6 @@ </td> </tr> <tr> - <td>maven.axis.location</td> - <td></td> - <td>No</td> - <td> - Specifies the url of the location of the service. - </td> - </tr> - <tr> <td>maven.axis.output</td> <td>${maven.src.dir}/wsdl</td> <td>Yes</td> @@ -203,7 +193,7 @@ </td> </tr> <tr> - <td>maven.axis.namespaceMappings</td> + <td>maven.wsdl2java.namespaceMappings</td> <td>empty</td> <td>Yes</td> <td> |