} else {
throw new MojoExecutionException(MessageFormat.format(messages.getString("error.undeploy.app.set.validate"), ""));
}</BUG>
File destFile = new File(serverDirectory, "dropins/" + appArchive);
<BUG>if (destFile == null || !destFile.exists() || destFile.isDirectory()) {
throw new IOException(MessageFormat.format(messages.getString("error.undeploy.app.noexist"), destFile.getCanonicalPath()));
}
log.info(MessageFormat.format(messages.getString("info.undeploy.app"), destFile.getCanonicalPath()));
UndeployTask undeployTask = (UndeployTask) ant.createTask("antlib:net/wasdev/wlp/ant:undeploy");
if (undeployTask == null)
throw new NullPointerException("server task not found");
undeployTask.setInstallDir(installDirectory);</BUG>
undeployTask.setServerName(serverName);

} else {
log.info(messages.getString("info.undeploy.all"));
}
undeployTask.setInstallDir(installDirectory);
undeployTask.setServerName(serverName);
