small refactoring

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1577676 13f79535-47bb-0310-9956-ffa450edef68
try to help Java5 builds and finally figure out what was wrong with disabled test

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1577687 13f79535-47bb-0310-9956-ffa450edef68
simply doesn't work on java5

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1577698 13f79535-47bb-0310-9956-ffa450edef68