The environment varibale for ANT_HOME is set to /usr/share/ant but /usr/bin/ant overrides it with a hardcoded ANT_HOME=/usr/share/ant-core. This behaviour effectively breaks ant's optional task, because they are no longer found. Reproducible: Always Steps to Reproduce: 1. echo $ANT_HOME and check that it is set to /usr/share/ant 2. run ant -diagnostics 3. see that ant.home is set to /usr/share/ant-core Actual Results: Ant sees ant.home as /usr/share/ant-core while the env-variable is set to /usr/share/ant. /usr/bin/ant does not use the env-variable. Expected Results: Ant sees ant.home as /usr/share/ant and the optional tasks work. With ant-1.7.0 everything was fine. This problem startet with ant-1.7.1.
Thanks for reporting, fixed in ant-core-1.7.1-r1. The cause isn't just hardcoding ANT_HOME=/usr/share/ant-core which is intentional and done in 1.7.0 too. The problem was that I forgot to update version in the script, so looked in wrong directory (/usr/share/ant/tasks-1.7.0) for tasks to load when ANT_TASKS="all" (or not set at all).
*** Bug 231933 has been marked as a duplicate of this bug. ***