示例#1
0
 /**
  * Overrides the BaseResourceCollectionContainer version to recurse on nested ResourceComparators.
  *
  * @param stk the stack of data types to use (recursively).
  * @param p the project to use to dereference the references.
  * @throws BuildException on error.
  */
 protected synchronized void dieOnCircularReference(Stack stk, Project p) throws BuildException {
   if (isChecked()) {
     return;
   }
   if (isReference()) {
     super.dieOnCircularReference(stk, p);
   } else {
     DataType.invokeCircularReferenceCheck(comp, stk, p);
     setChecked(true);
   }
 }
示例#2
0
文件: Sort.java 项目: nhojpatrick/ant
  /**
   * Overrides the BaseResourceCollectionContainer version to recurse on nested ResourceComparators.
   *
   * @param stk the stack of data types to use (recursively).
   * @param p the project to use to dereference the references.
   * @throws BuildException on error.
   */
  protected synchronized void dieOnCircularReference(Stack<Object> stk, Project p)
      throws BuildException {
    if (isChecked()) {
      return;
    }

    // check nested collection
    super.dieOnCircularReference(stk, p);

    if (!isReference()) {
      DataType.pushAndInvokeCircularReferenceCheck(comp, stk, p);
      setChecked(true);
    }
  }