org.apache.tools.ant.taskdefs.condition

Class Xor

  • All Implemented Interfaces:
    java.lang.Cloneable, Condition


    public class Xor
    extends ConditionBase
    implements Condition
    The Xor condition type to exclusive or operations. This does not shortcut stuff.
    Since:
    Ant 1.7
    • Constructor Detail

      • Xor

        public Xor()
    • Method Detail

      • eval

        public boolean eval()
                     throws BuildException
        Evaluate the contained conditions.
        Specified by:
        eval in interface Condition
        Returns:
        the result of xoring the conditions together.
        Throws:
        BuildException - if an error occurs.