1

我正在寻找weblogic.wsee.tools.anttasks.WsdlcTaskgradle。到目前为止,我能找到的只是Ant的一个例子。

ant.importBuild "wsdlc_build.xml"在我的 gradle 构建脚本中导入 ant 脚本可以正常工作,但我更喜欢在 gradle 中编写任务。有人已经找到解决方案了吗?

我的蚂蚁脚本:

<project name="WebServices" basedir=".">

<property name="build.wls.home" value="C:\User\wls\"/>

<path id="weblogic.tools.path">
    <fileset dir="${build.wls.home}/wlserver/server/lib">
        <include name="weblogic.jar" />
    </fileset>
</path>
<taskdef name="wsdlc" classname="weblogic.wsee.tools.anttasks.WsdlcTask" classpathref="weblogic.tools.path"/>

<target name="build_opera">
    <wsdlc failOnError="true" 
        srcWsdl="WebContent/WEB-INF/wsdls/OperaService.wsdl" 
        destImplDir="src" 
        destJwsDir="WebContent/WEB-INF/lib" 
        packageName="server.opera.webservice.service" 
        verbose="on" debug="on"
        type="JAXWS">
    </wsdlc>

</target>

<target name="build_nez">
    <wsdlc
        failOnError="true"
        srcWsdl="WebContent/WEB-INF/wsdls/NezService.wsdl"
        destImplDir="src" 
        destJwsDir="WebContent/WEB-INF/lib" 
        packageName="server.nez.webservice.service"
        srcPortName="NezSoapPort"
        type="JAXWS">
    </wsdlc>
</target>

<target name="build_nezp">
    <wsdlc
        failOnError="true"
        srcWsdl="WebContent/WEB-INF/wsdls/NezpService.wsdl"
        destImplDir="src" 
        destJwsDir="WebContent/WEB-INF/lib" 
        packageName="server.nezp.webservice.service"
        srcPortName="NezPSoapPort"
        type="JAXWS">
    </wsdlc>
</target>

4

0 回答 0