.isEmpty method only exists in Java 1.6, Ant supports still Java 1.5

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