User: lsanders
Date: 02/04/17 18:42:16
Modified: src/main/org/jboss/deployment MainDeployer.java
Log:
Provided propper handling for Class-Path entries in META-INF for exploded
archives.
Revision Changes Path
1.29 +10 -5 jboss-system/src/main/org/jboss/deployment/MainDeployer.java
Index: MainDeployer.java
===================================================================
RCS file:
/cvsroot/jboss/jboss-system/src/main/org/jboss/deployment/MainDeployer.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- MainDeployer.java 15 Apr 2002 02:48:53 -0000 1.28
+++ MainDeployer.java 18 Apr 2002 01:42:16 -0000 1.29
@@ -58,7 +58,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Scott Stark</a>
* @author <a href="mailto:[EMAIL PROTECTED]">David Jencks</a>
- * @version $Revision: 1.28 $
+ * @version $Revision: 1.29 $
*
* @jmx:mbean name="jboss.system:service=MainDeployer"
* extends="org.jboss.system.ServiceMBean,
org.jboss.deployment.DeployerMBean"
@@ -729,7 +729,6 @@
classPath = mainAttributes.getValue(Attributes.Name.CLASS_PATH);
}
- URL[] libs = {};
if (classPath != null)
{
ArrayList tmp = new ArrayList();
@@ -745,14 +744,20 @@
try
{
- lib = new URL(sdi.url, tk);
+ if (sdi.isDirectory)
+ {
+ File parentDir = new File(sdi.url.getPath()).getParentFile();
+ lib = new File(parentDir, tk).toURL();
+ }
+ else
+ {
+ lib = new URL(sdi.url, tk);
+ }
if (!isDeployed(lib))
{
// Try having it as a full subdeployment
sub = new DeploymentInfo(lib, sdi);
-
- deploy(sub);
}
}
catch (Exception ignore)
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development