Author: kentam
Date: Tue Feb 8 16:43:02 2005
New Revision: 152968
URL: http://svn.apache.org/viewcvs?view=rev&rev=152968
Log:
When validation the control property, FilePath, do not check if the file
represented by the FilePath exist or not.
A decision needs to be made on what validation needs to be done for this
property.
Contributor: Hoi Lam
Modified:
incubator/beehive/trunk/controls/src/runtime/org/apache/beehive/controls/runtime/bean/AnnotationConstraintValidator.java
Modified:
incubator/beehive/trunk/controls/src/runtime/org/apache/beehive/controls/runtime/bean/AnnotationConstraintValidator.java
URL:
http://svn.apache.org/viewcvs/incubator/beehive/trunk/controls/src/runtime/org/apache/beehive/controls/runtime/bean/AnnotationConstraintValidator.java?view=diff&r1=152967&r2=152968
==============================================================================
---
incubator/beehive/trunk/controls/src/runtime/org/apache/beehive/controls/runtime/bean/AnnotationConstraintValidator.java
(original)
+++
incubator/beehive/trunk/controls/src/runtime/org/apache/beehive/controls/runtime/bean/AnnotationConstraintValidator.java
Tue Feb 8 16:43:02 2005
@@ -323,13 +323,16 @@
+ ", assigned to a FilePath property must be of type
java.lang.String.");
}
- File file = new File((String) value);
- if (!file.isFile() || !file.canRead())
- {
- error("The value, "
- + value
- + ", assigned to a FilePath property must be a readable
file.");
- }
+//Temporarily commenting out the following check on FilePath until
+//an agreement is reached on what is a valid FilePath.
+//
+// File file = new File((String) value);
+// if (!file.isFile() || !file.canRead())
+// {
+// error("The value, "
+// + value
+// + ", assigned to a FilePath property must be a readable
file.");
+// }
}