Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
基本上我正在使用 ant 生成 web 服务客户端和服务器存根。我们不会像我们的 java 代码那样频繁地更改 wsdl。但是由于 wsdl2java 生成的代码总是新的,javac 目标总是编译代码(太慢了)。有没有办法告诉 wsdl2java 任务 gensrc 没有被修改所以不生成代码?
仅当修改了 wsdl 时,您才应该执行 wsdl2java 任务。仅在修改 wsdl 文件时如何执行 Ant 任务?