Ant fails to build via javac

  • Share
  • Share

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.

JAVA-Tools ,

  1. admin
    March 20th, 2009 at 10:28 | #1

    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.

  1. No trackbacks yet.