Ant fails to build via javac
March 20th, 2009
Applies to:
Ant
Description:
Occurs while using Apache Ant.
Cause:
Ant failed to build Your program via javac even when You put the needed jars in an external build.properties file and reference them by pathelement or classpath refid.
When ant loads properties from an external file it doesn’t touch the value of properties, trailing blanks will not be trimmed for example.
If the value represents a file path, like a jar needed to compile, the task which requires the value, javac for example would fail to compile since it can’t find the file due to trailing spaces.