-
Type: New Feature
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: AAMP-2.0.3
-
Component/s: ant-assembly-maven-plugin
-
Tags:
-
Backlog priority:300
-
Upgrade notes:
-
Sprint:DevOps Sprint 7
-
Story Points:2
We need a way to exit an Ant build without failing the build (for instance, if 'skipTests' then exit). The existing fail task always raises an Exception:
<fail if="skipTests" status="0" />
BUILD FAILED itests.xml:17: if=skipTests Total time: 0 seconds [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error occurred while running itests.xml: if=skipTests
Override org.apache.tools.ant.taskdefs.Exit or write an alternate task (EndTask for instance) which ends the build without raising an Exception. Something like:
if (status == 0) { getProject().fireBuildFinished(null); System.exit(0); }
with a default status = 1 instead of
throw ((status == null) ? new BuildException(text) : new ExitStatusException(text, status.intValue()));
- is required by
-
NXBT-656 Skip integration tests when using one of the Maven dedicated options
- Resolved