dion 2003/01/19 07:14:26
Modified: jelly/jelly-tags/util/src/java/org/apache/commons/jelly/tags/util
FileTag.java
Log:
remove check in file tag for file existence and readability
Revision Changes Path
1.2 +1 -8
jakarta-commons-sandbox/jelly/jelly-tags/util/src/java/org/apache/commons/jelly/tags/util/FileTag.java
Index: FileTag.java
===================================================================
RCS file:
/home/cvs/jakarta-commons-sandbox/jelly/jelly-tags/util/src/java/org/apache/commons/jelly/tags/util/FileTag.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- FileTag.java 11 Jan 2003 08:59:46 -0000 1.1
+++ FileTag.java 19 Jan 2003 15:14:26 -0000 1.2
@@ -92,14 +92,7 @@
}
File newFile = new File(name);
- available = newFile.exists() && newFile.canRead();
- if (available) {
- getContext().setVariable(var, newFile);
- } else {
- throw new IllegalArgumentException("file '"+ name
- + "' is not readable");
- }
-
+ getContext().setVariable(var, newFile);
}
/**
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>