org.apache.tools.ant.types.RedirectorElement Java Examples

The following examples show how to use org.apache.tools.ant.types.RedirectorElement. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BaseRedirectorHelperTask.java    From Tomcat8-Source-Read with MIT License 5 votes vote down vote up
/**
 * Add a <CODE>RedirectorElement</CODE> to this task.
 *
 * @param redirectorElement <CODE>RedirectorElement</CODE>.
 */
public void addConfiguredRedirector(RedirectorElement redirectorElement) {
    if (this.redirectorElement != null) {
        throw new BuildException("Cannot have > 1 nested <redirector>s");
    } else {
        this.redirectorElement = redirectorElement;
    }
}
 
Example #2
Source File: BaseRedirectorHelperTask.java    From Tomcat7.0.67 with Apache License 2.0 5 votes vote down vote up
/**
 * Add a <CODE>RedirectorElement</CODE> to this task.
 * @param redirectorElement   <CODE>RedirectorElement</CODE>.
 */
public void addConfiguredRedirector(RedirectorElement redirectorElement) {
    if (this.redirectorElement != null) {
        throw new BuildException("Cannot have > 1 nested <redirector>s");
    } else {
        this.redirectorElement = redirectorElement;
    }
}
 
Example #3
Source File: BaseRedirectorHelperTask.java    From tomcatsrc with Apache License 2.0 5 votes vote down vote up
/**
 * Add a <CODE>RedirectorElement</CODE> to this task.
 * @param redirectorElement   <CODE>RedirectorElement</CODE>.
 */
public void addConfiguredRedirector(RedirectorElement redirectorElement) {
    if (this.redirectorElement != null) {
        throw new BuildException("Cannot have > 1 nested <redirector>s");
    } else {
        this.redirectorElement = redirectorElement;
    }
}
 
Example #4
Source File: ExpectExec.java    From ExpectIt with Apache License 2.0 2 votes vote down vote up
/**
 * Always throw an {@link java.lang.UnsupportedOperationException} exception.
 *
 * @param redirectorElement the element
 */
@Override
public void addConfiguredRedirector(RedirectorElement redirectorElement) {
    throw new UnsupportedOperationException("Redirector element is not supported");
}