org.apache.tools.ant.types.Path.setRefid()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.apache.tools.ant.types.Path.setRefid()方法的一些代码示例,展示了Path.setRefid()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Path.setRefid()方法的具体详情如下:
包路径:org.apache.tools.ant.types.Path
类名称:Path
方法名:setRefid

Path.setRefid介绍

[英]Makes this instance in effect a reference to another Path instance.

You must not set another attribute or nest elements inside this element if you make it a reference.
[中]使此实例实际上成为对另一个路径实例的引用。
如果将其作为引用,则不能在该元素内设置其他属性或嵌套元素。

代码示例

代码示例来源:origin: org.testng/testng

/**
 * Classpath to use, by reference.
 *
 * @param r a reference to an existing classpath
 */
public void setClasspathRef(Reference r) {
 createClasspath().setRefid(r);
}

代码示例来源:origin: checkstyle/checkstyle

/**
 * Set the class path from a reference defined elsewhere.
 * @param classpathRef the reference to an instance defining the classpath
 */
public void setClasspathRef(Reference classpathRef) {
  createClasspath().setRefid(classpathRef);
}

代码示例来源:origin: apache/groovy

/**
 * Adds a reference to a classpath defined elsewhere.
 * @param r a reference to a classpath
 */
public void setClasspathRef(Reference r) {
  createClasspath().setRefid(r);
}

代码示例来源:origin: apache/groovy

/**
 * Adds a reference to a source path defined elsewhere.
 *
 * @param r a reference to a source path
 */
public void setSourcepathRef(Reference r) {
  createSourcepath().setRefid(r);
}

代码示例来源:origin: org.projectlombok/lombok

public void setSourcepathRef(Reference r) {
  createSourcepath().setRefid(r);
}

代码示例来源:origin: org.projectlombok/lombok

public void setModulepathRef(Reference r) {
  createModulepath().setRefid(r);
}

代码示例来源:origin: joelittlejohn/jsonschema2pojo

public void setClasspathRef(Reference classpathRef) {
  createClasspath().setRefid(classpathRef);
}

代码示例来源:origin: apache/groovy

/**
 * Set the classpath for loading
 * using the classpath reference.
 *
 * @param ref the refid to use
 */
public void setClasspathRef(final Reference ref) {
  createClasspath().setRefid(ref);
}

代码示例来源:origin: apache/groovy

/**
 * Adds a reference to a classpath defined elsewhere.
 *
 * @param r a reference to a classpath
 */
public void setClasspathRef(Reference r) {
  createClasspath().setRefid(r);
}

代码示例来源:origin: apache/groovy

public void setClasspathRef(final Reference r) {
  assert r != null;
  
  createClasspath().setRefid(r);
}

代码示例来源:origin: apache/groovy

public void setClasspathRef(final Reference r) {
  assert r != null;
  createClasspath().setRefid(r);
}

代码示例来源:origin: org.projectlombok/lombok

public void setClasspathRef(Reference r) {
  createClasspath().setRefid(r);
}

代码示例来源:origin: org.apache.ant/ant

/**
   * Adds a reference to a CLASSPATH defined elsewhere.
   *
   * @param r the reference containing the path.
   */
  public void setPathRef(final Reference r) {
    createPath().setRefid(r);
  }
}

代码示例来源:origin: org.apache.ant/ant

/**
 * Set the classpath by reference.
 *
 * @param r a Reference to a Path instance to be used as the classpath
 *          value.
 */
public void setClasspathRef(Reference r) {
  createClasspath().setRefid(r);
}

代码示例来源:origin: org.apache.ant/ant

/**
 * Adds a reference to a classpath defined elsewhere.
 * @param r a reference to a classpath
 */
public void setBootClasspathRef(final Reference r) {
  createBootclasspath().setRefid(r);
}

代码示例来源:origin: org.apache.ant/ant

/**
 * Set the classpath to use by reference.
 *
 * @param r a reference to an existing classpath.
 * @since Ant 1.7.1
 */
public void setClasspathRef(Reference r) {
  createClasspath().setRefid(r);
}

代码示例来源:origin: org.apache.ant/ant

/**
 * the classpath to use when looking up a resource,
 * given as reference to a <path> defined elsewhere
 * @param r a reference to a classpath
 */
public void setClasspathRef(Reference r) {
  createClasspath().setRefid(r);
}

代码示例来源:origin: org.apache.ant/ant

/**
 * Buildpath to use, by reference.
 *
 * @param  r a reference to an Ant Path object containing the buildpath.
 */
public void setBuildpathRef(Reference r) {
  createBuildpath().setRefid(r);
}

代码示例来源:origin: org.apache.ant/ant

/**
 * Where to find the parser class; optional.
 * @see #setClasspath
 * @param r reference to a classpath defined elsewhere
 */
public void setClasspathRef(Reference r) {
  createClasspath().setRefid(r);
}

代码示例来源:origin: org.apache.ant/ant

/**
 * Set a single commandline argument from a reference to a
 * path--ensuring the right separator for the local platform
 * is used.
 *
 * @param value a single commandline argument.
 */
public void setPathref(Reference value) {
  Path p = new Path(getProject());
  p.setRefid(value);
  parts = new String[] {p.toString()};
}

相关文章