geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r701921 - /geronimo/gshell/trunk/gshell-commands/gshell-builtins/src/main/java/org/apache/geronimo/gshell/commands/builtins/SourceAction.java
Date Mon, 06 Oct 2008 03:27:50 GMT
Author: jdillon
Date: Sun Oct  5 20:27:49 2008
New Revision: 701921

URL: http://svn.apache.org/viewvc?rev=701921&view=rev
Log:
Allow any file with content

Modified:
    geronimo/gshell/trunk/gshell-commands/gshell-builtins/src/main/java/org/apache/geronimo/gshell/commands/builtins/SourceAction.java

Modified: geronimo/gshell/trunk/gshell-commands/gshell-builtins/src/main/java/org/apache/geronimo/gshell/commands/builtins/SourceAction.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-commands/gshell-builtins/src/main/java/org/apache/geronimo/gshell/commands/builtins/SourceAction.java?rev=701921&r1=701920&r2=701921&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-commands/gshell-builtins/src/main/java/org/apache/geronimo/gshell/commands/builtins/SourceAction.java
(original)
+++ geronimo/gshell/trunk/gshell-commands/gshell-builtins/src/main/java/org/apache/geronimo/gshell/commands/builtins/SourceAction.java
Sun Oct  5 20:27:49 2008
@@ -68,8 +68,8 @@
             io.error("File not found: {}", file.getName());
             return Result.FAILURE;
         }
-        else if (file.getType() == FileType.FOLDER) {
-            io.error("File is a directory: {}", file.getName());
+        else if (!file.getType().hasContent()) {
+            io.error("File has no content: {}", file.getName());
             return Result.FAILURE;
         }
 



Mime
View raw message