Package org.apache.tools.ant

Examples of org.apache.tools.ant.RuntimeConfigurable


        throw new UnsupportedOperationException();
    }

    private synchronized void hijackId() {
        if (id == null) {
            RuntimeConfigurable wrapper = getWrapper();
            id = wrapper.getId();
            if (id == null) {
                throw new IllegalStateException(getTaskName() + " attribute 'id' unset");
            }
            wrapper.setAttribute("id", null);
            wrapper.removeAttribute("id");
            wrapper.setElementTag("augmented reference \"" + id + "\"");
        }
    }
View Full Code Here


    public boolean supportsTask(final String taskname) {
      return taskname.equals(supportedTaskName);
    }

    public void enhanceTask(final Task task) {
      final RuntimeConfigurable configurableWrapper = task
          .getRuntimeConfigurableWrapper();

      final String forkValue = (String) configurableWrapper
          .getAttributeMap().get("fork");

      if (forkValue == null || !Project.toBoolean(forkValue)) {
        throw new BuildException(
            "Coverage can only be applied on a forked VM",
View Full Code Here

    public void addJvmArgs(final Task task) {
      final UnknownElement el = new UnknownElement("jvmarg");
      el.setTaskName("jvmarg");
      el.setQName("jvmarg");

      final RuntimeConfigurable runtimeConfigurableWrapper = el
          .getRuntimeConfigurableWrapper();
      runtimeConfigurableWrapper.setAttribute("value",
          getLaunchingArgument());

      task.getRuntimeConfigurableWrapper().addChild(
          runtimeConfigurableWrapper);
View Full Code Here

    public boolean supportsTask(final String taskname) {
      return taskname.equals(supportedTaskName);
    }

    public void enhanceTask(final Task task) {
      final RuntimeConfigurable configurableWrapper = task
          .getRuntimeConfigurableWrapper();

      final String forkValue = (String) configurableWrapper
          .getAttributeMap().get("fork");

      if (forkValue == null || !Project.toBoolean(forkValue)) {
        throw new BuildException(
            "Coverage can only be applied on a forked VM");
View Full Code Here

    public void addJvmArgs(final UnknownElement task) {
      final UnknownElement el = new UnknownElement("jvmarg");
      el.setTaskName("jvmarg");
      el.setQName("jvmarg");

      final RuntimeConfigurable runtimeConfigurableWrapper = el
          .getRuntimeConfigurableWrapper();
      runtimeConfigurableWrapper.setAttribute("value",
          getLaunchingArgument());

      task.getRuntimeConfigurableWrapper().addChild(
          runtimeConfigurableWrapper);
View Full Code Here

    public boolean supportsTask(final String taskname) {
      return taskname.equals(supportedTaskName);
    }

    public void enhanceTask(final Task task) {
      final RuntimeConfigurable configurableWrapper = task
          .getRuntimeConfigurableWrapper();

      final String forkValue = (String) configurableWrapper
          .getAttributeMap().get("fork");

      if (forkValue == null || !Project.toBoolean(forkValue)) {
        throw new BuildException(
            "Coverage can only be applied on a forked VM");
View Full Code Here

    public void addJvmArgs(final UnknownElement task) {
      final UnknownElement el = new UnknownElement("jvmarg");
      el.setTaskName("jvmarg");
      el.setQName("jvmarg");

      final RuntimeConfigurable runtimeConfigurableWrapper = el
          .getRuntimeConfigurableWrapper();
      runtimeConfigurableWrapper.setAttribute("value",
          getLaunchingArgument());

      task.getRuntimeConfigurableWrapper().addChild(
          runtimeConfigurableWrapper);
View Full Code Here

    public boolean supportsTask(final String taskname) {
      return taskname.equals(supportedTaskName);
    }

    public void enhanceTask(final Task task) {
      final RuntimeConfigurable configurableWrapper = task
          .getRuntimeConfigurableWrapper();

      final String forkValue = (String) configurableWrapper
          .getAttributeMap().get("fork");

      if (forkValue == null || !Project.toBoolean(forkValue)) {
        throw new BuildException(
            "Coverage can only be applied on a forked VM");
View Full Code Here

    public void addJvmArgs(final UnknownElement task) {
      final UnknownElement el = new UnknownElement("jvmarg");
      el.setTaskName("jvmarg");
      el.setQName("jvmarg");

      final RuntimeConfigurable runtimeConfigurableWrapper = el
          .getRuntimeConfigurableWrapper();
      runtimeConfigurableWrapper.setAttribute("value",
          getLaunchingArgument());

      task.getRuntimeConfigurableWrapper().addChild(
          runtimeConfigurableWrapper);
View Full Code Here

    public boolean supportsTask(final String taskname) {
      return taskname.equals(supportedTaskName);
    }

    public void enhanceTask(final Task task) {
      final RuntimeConfigurable configurableWrapper = task
          .getRuntimeConfigurableWrapper();

      final String forkValue = getProject().replaceProperties(
          (String) configurableWrapper.getAttributeMap().get("fork"));

      if (!Project.toBoolean(forkValue)) {
        throw new BuildException(
            "Coverage can only be applied on a forked VM",
            getLocation());
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.RuntimeConfigurable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.