throw new NullPointerException("server task not found");
undeployTask.setInstallDir(installDirectory);</BUG>
undeployTask.setServerName(serverName);
undeployTask.setUserDir(userDirectory);
undeployTask.setOutputDir(outputDirectory);
<BUG>undeployTask.setFile(appArchive);
undeployTask.setTimeout(Long.toString(timeout*1000));
</BUG>
undeployTask.execute();
}

} else {
log.info(messages.getString("info.undeploy.all"));
}
undeployTask.setInstallDir(installDirectory);
undeployTask.setServerName(serverName);
undeployTask.setUserDir(userDirectory);
undeployTask.setOutputDir(outputDirectory);
undeployTask.setTimeout(Long.toString(timeout * 1000));
undeployTask.execute();
