[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: Deployment ClassPath and AOP
adrian@jboss.org
do-not-reply at jboss.com
Thu Mar 27 08:56:05 EDT 2008
anonymous wrote :
| I just commited the following to the MemoryTestCase, and it passes:
|
| | public void testUrlHandling()throws Exception
| | {
| | URL directory = new URL("vfsmemory://guid");
| | URL classes = new URL(directory, "classes");
| |
| | URL classes2 = new URL(directory + "/classes");
| |
| | assertEquals(classes, classes2);
| | assertTrue(classes.equals(classes2));
| | }
| |
| Did you mean something else? This test looks "weird" :-)
|
Ok sorry. The problem is not subdirectories, it is the top directory.
i.e.
URL directory = new URL(new URL("vfsmemory://"), "guid");
Try changing this class
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/jboss-deployers/trunk/deployers-vfs/src/main/org/jboss/deployers/vfs/plugins/classloader/InMemoryClassesDeployer.java?revision=71306&view=markup
to do:
| URL vfsMemory = new URL("vfsmemory://");
| URL dynamicClassRoot = new URL(vfsMemory, new GUID().toString());
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139253#4139253
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139253
More information about the jboss-dev-forums
mailing list