code: public void addPathElement(String pathElement) throws BuildException {
          File pathComponent = project != null ? project.resolveFile(pathElement) : new File(
                  pathElement);
          try {
              addPathFile(pathComponent);
          } catch (IOException e) {
              throw new BuildException(e);
          }
      }
docs: Adds an element to the classpath to be searched.
  
  @param pathElement The path element to add. Must not be
  <code>null</code>.
  
  @exception BuildException if the given path element cannot be resolved
  against the project.