Execute exe = new Execute(log);
exe.setAntRun(getProject());
exe.setCommandline(cmd.getCommandline());
try {
int rc = exe.execute();
if (exe.killedProcess()
|| rc != 0) {
throw new BuildException("java2wsdl failed", getLocation());
}
} catch (IOException e) {
throw new BuildException(e, getLocation());