AbortException is expected, so no need to report a stack trace.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6783 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2008-01-21 00:38:26 +00:00
1 parent 43a502d977
commit 1bbab442c6
1 file changed
+4
@@ -299,6 +299,10 @@ public final class MavenModuleSetBuild extends AbstractBuild<MavenModuleSet,Mave
List<PomInfo> poms;
try {
poms = project.getModuleRoot().act(new PomParser(listener,project.getRootPOM(),project.getProfiles()));
} catch (IOException e) {
if (e.getCause() instanceof AbortException)
throw (AbortException) e.getCause();
throw e;
} catch (MavenExecutionException e) {
// Maven failed to parse POM
e.getCause().printStackTrace(listener.error("Failed to parse POM"));