tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r503514 - /incubator/openejb/trunk/openejb3/server/openejb-server/src/main/java/org/apache/openejb/server/Server.java
Date Sun, 04 Feb 2007 23:45:12 GMT
Author: dblevins
Date: Sun Feb  4 15:45:11 2007
New Revision: 503514

URL: http://svn.apache.org/viewvc?view=rev&rev=503514
Log:
scan lib dir for apps

Modified:
    incubator/openejb/trunk/openejb3/server/openejb-server/src/main/java/org/apache/openejb/server/Server.java

Modified: incubator/openejb/trunk/openejb3/server/openejb-server/src/main/java/org/apache/openejb/server/Server.java
URL: http://svn.apache.org/viewvc/incubator/openejb/trunk/openejb3/server/openejb-server/src/main/java/org/apache/openejb/server/Server.java?view=diff&rev=503514&r1=503513&r2=503514
==============================================================================
--- incubator/openejb/trunk/openejb3/server/openejb-server/src/main/java/org/apache/openejb/server/Server.java
(original)
+++ incubator/openejb/trunk/openejb3/server/openejb-server/src/main/java/org/apache/openejb/server/Server.java
Sun Feb  4 15:45:11 2007
@@ -17,10 +17,13 @@
 package org.apache.openejb.server;
 
 import java.io.IOException;
+import java.io.File;
 import java.net.URI;
 import java.util.Properties;
 
 import org.apache.openejb.OpenEJB;
+import org.apache.openejb.loader.SystemInstance;
+import org.apache.openejb.loader.FileUtils;
 import org.apache.openejb.core.ServerFederation;
 import org.apache.openejb.util.PropertiesService;
 
@@ -50,6 +53,10 @@
     // TODO: Remove it once init() suits our (initialisation) needs 
     public void init(java.util.Properties props) throws Exception {
         this.props = props;
+
+        SystemInstance system = SystemInstance.get();
+        File home = system.getHome().getDirectory();
+        system.setProperty("openejb.deployments.classpath.include", ".*/"+home.getName()+"/lib/.*");
 
         OpenEJB.init(props, new ServerFederation());
 



Mime
View raw message