Patches item #490770, was opened at 2001-12-08 21:44
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=490770&group_id=22866

Category: JBossServer
Group: v3.0 Rabbit Hole (unstable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Adrian Brock (ejort)
Assigned to: Nobody/Anonymous (nobody)
Summary: J2eeDeployer and directories

Initial Comment:
Here's a diff to allow directories containing
META-INF/ejb-jar.xml to deploy through J2eeDeployer

The diff is for RH. The toLowerCase should probably be
applied to 2.4 anyway?

There's some code in AutoDeployer to try to do this,
but it looks like it only works through setUrls at
start up. 
When I tried it on 2.4.3 it didn't work??
It's totally broke on RH because the ServiceDeployer is
now the default deployer.

The installer still copies the directory into a jar.

---
jboss/src/main/org/jboss/deployment/J2eeDeployer.java~
Sat Dec  1 21:29:46 2001
+++
jboss/src/main/org/jboss/deployment/J2eeDeployer.java
Sun Dec  9 05:02:38 2001
@@ -173,6 +173,16 @@
       {
          public boolean accept(File dir, String
filename)
          {
+
+         File f = new File(dir, filename);
+         if (f.exists() && f.isDirectory())
+         {
+           if (new File(f, "META-INF" + File.separator
+ "ejb-jar.xml").exists())
+             return true;
+           else
+            return false;
+         }
+
             filename=filename.toLowerCase();
             boolean accept = filename.endsWith(".jar")
||
             filename.endsWith(".war") ||

Regards,
Adrian

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=490770&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to