Author: mbenson
Date: Wed Sep 27 11:22:28 2006
New Revision: 450538
URL: http://svn.apache.org/viewvc?view=rev&rev=450538
Log:
Add "more" as greater-than synonym in Comparison type.
Simplest way to fix the SizeSelectorTest failure I introduced.
Modified:
ant/core/trunk/src/main/org/apache/tools/ant/types/Comparison.java
Modified: ant/core/trunk/src/main/org/apache/tools/ant/types/Comparison.java
URL:
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/Comparison.java?view=diff&rev=450538&r1=450537&r2=450538
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/types/Comparison.java
(original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/types/Comparison.java Wed Sep
27 11:22:28 2006
@@ -23,14 +23,15 @@
/**
* EnumeratedAttribute for generic comparisons. Accepts values
- * "equal", "greater", "less", "ne" (not equal), "ge" (greater or equal),
- * "le" (less or equal), "eq" (equal), "gt" (greater), "lt" (less).
+ * "equal", "greater", "more", "less", "ne" (not equal),
+ * "ge" (greater or equal), "le" (less or equal), "eq" (equal),
+ * "gt" (greater), "lt" (less).
* @since Ant 1.7
*/
public class Comparison extends EnumeratedAttribute {
private static final String[] VALUES
= new String[] {"equal", "greater", "less",
- "ne", "ge", "le", "eq", "gt", "lt"};
+ "ne", "ge", "le", "eq", "gt", "lt", "more"};
/** Equal Comparison. */
public static final Comparison EQUAL = new Comparison("equal");
@@ -52,7 +53,7 @@
private static final int[] EQUAL_INDEX = {0, 4, 5, 6};
private static final int[] LESS_INDEX = {2, 3, 5, 8};
- private static final int[] GREATER_INDEX = {1, 3, 4, 7};
+ private static final int[] GREATER_INDEX = {1, 3, 4, 7, 9};
/**
* Default constructor.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]