예제 #1
0
 /**
  * Add a source path to the source path used by this analyzer. The elements in the given path
  * contain the source files for the classes being analyzed. Not all analyzers will use this
  * information.
  *
  * @param sourcePath The Path instance specifying the source path elements.
  */
 public void addSourcePath(Path sourcePath) {
   if (sourcePath == null) {
     return;
   }
   this.sourcePath.append(sourcePath);
   this.sourcePath.setProject(sourcePath.getProject());
 }
예제 #2
0
  /**
   * Add a classpath to the classpath being used by the analyzer. The classpath contains the binary
   * classfiles for the classes being analyzed The elements may either be the directories or jar
   * files.Not all analyzers will use this information.
   *
   * @param classPath the Path instance specifying the classpath elements
   */
  public void addClassPath(Path classPath) {
    if (classPath == null) {
      return;
    }

    this.classPath.append(classPath);
    this.classPath.setProject(classPath.getProject());
  }
예제 #3
0
파일: Path.java 프로젝트: nhojpatrick/ant
 /**
  * Adds a nested path
  *
  * @param path a <code>Path</code> to be added to the path
  * @throws BuildException on error
  * @since Ant 1.6
  */
 public void add(Path path) throws BuildException {
   if (path == this) {
     throw circularReference();
   }
   if (path.getProject() == null) {
     path.setProject(getProject());
   }
   add((ResourceCollection) path);
 }