I was using a copy task to copy a particular file using <fileset file="${bea-xbean-jar}"/>, but the file consistently failed to be copied. The problem was that the variable bea-xbean-jar was defined in an external build.properties file, but the line contained a trailing space.