gpt4 book ai didi

windows - 如何为 Windows 编写 wsgen 脚本

转载 作者:可可西里 更新时间:2023-11-01 10:28:37 26 4
gpt4 key购买 nike

我正在研究 Build a SOAP Server with GAE .
在文章中,它包含...

Run wsgen on the annoted class. This tool is now included in the JDK. My JDK includes the version from JAX-WS RI 2.1.6. (You can discover the version by typing wsgen -version.) Because wsgen has several command-line arguments, I have written a Linux shell script called runwsgen.sh to execute it. If you are not using Linux, you will have to translate this script to your OS scripting language. Place the following script in the root directory of the project (i.e. the parent directory of war and src) and execute it from there.

运行wsgen.sh

class=com.example.Greeter
clpth='./war/WEB-INF/classes'
resourcedir='./war'
outsourcedir='./src'
outdir='./war/WEB-INF/classes'
wsgen -cp "$clpth" -wsdl -keep -r "$resourcedir" -d "$outdir" -s "$outsourcedir" $class

我的问题是如何将它翻译成 Windows 脚本。
感谢您的任何建议。

最佳答案

这可能是一个非常晚的答案,但希望它对其他人有用。你最好在运行这个脚本之前构建你的项目。

set class=com.example.Greeter
set clpth=./war/WEB-INF/classes
set resourcedir=./war
set outsourcedir=./src
set outdir=./war/WEB-INF/classes
wsgen -cp "%clpth%" -wsdl -keep -r "%resourcedir%" -d "%outdir%" -s "%outsourcedir%" %class%

关于windows - 如何为 Windows 编写 wsgen 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6267024/

26 4 0
文章推荐: c# - 多线程代理检查器
文章推荐: css - 如何隐藏HTML