result = self.runjava(
classpath=classpath,
main="com.sun.tools.internal.ws.WsImport",
jvm_options=self.get_options().jvm_options,
args=args,
workunit_name="wsimport")
if result != 0:
After Change
stderr=workunit.output("stderr")).wait()
workunit.set_outcome(WorkUnit.FAILURE if return_code else WorkUnit.SUCCESS)
if return_code:
raise TaskError("wsimport exited non-zero {rc}".format(rc=return_code))
def _build_wsimport_cmd(self, target, target_workdir, url):
distribution = DistributionLocator.cached(jdk=True)
// Ported and trimmed down from: