[jboss-cvs] JBossAS SVN: r88842 - projects/fresh/trunk/fresh-shell/src/main/java/org/jboss/fresh/shell/impl.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed May 13 19:10:31 EDT 2009


Author: mstruk
Date: 2009-05-13 19:10:30 -0400 (Wed, 13 May 2009)
New Revision: 88842

Modified:
   projects/fresh/trunk/fresh-shell/src/main/java/org/jboss/fresh/shell/impl/ShellRuntime.java
Log:
Removed mime type requirement for files representing executables

Modified: projects/fresh/trunk/fresh-shell/src/main/java/org/jboss/fresh/shell/impl/ShellRuntime.java
===================================================================
--- projects/fresh/trunk/fresh-shell/src/main/java/org/jboss/fresh/shell/impl/ShellRuntime.java	2009-05-13 22:51:36 UTC (rev 88841)
+++ projects/fresh/trunk/fresh-shell/src/main/java/org/jboss/fresh/shell/impl/ShellRuntime.java	2009-05-13 23:10:30 UTC (rev 88842)
@@ -191,8 +191,6 @@
             }
 
             if (inf != null) {
-                if (inf.getMime() == null || !inf.getMime().equals("cp2-shell/executable"))
-                    throw new ShellException("Mime type mismatch. Mime is " + inf.getMime() + ". Should be cp2-shell/executable. (" + command + ")");
                 String clazz = (String) inf.getAttributes().get("Class");
                 if (clazz == null) throw new ShellException("No Class attribute specified. (" + command + ")");
                 command = clazz;




More information about the jboss-cvs-commits mailing list