Bug 40235 - Subclass of JUnitTask that manages classpath dependencies according to directory tree
Summary: Subclass of JUnitTask that manages classpath dependencies according to direct...
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Optional Tasks (show other bugs)
Version: 1.6.5
Hardware: Other other
: P2 enhancement (vote)
Target Milestone: ---
Assignee: Ant Notifications List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2006-08-11 19:48 UTC by Ben Yu
Modified: 2009-07-31 06:47 UTC (History)
0 users



Attachments
The core tree class loader. No dependency on Ant API. org.codehaus.classloader.TreeClassLoaders is the facade class to create tree classloaders. (21.06 KB, application/zip)
2006-08-11 19:50 UTC, Ben Yu
Details
the JUnitTask subclass that provide tree classloader support for forked mode (6.47 KB, application/zip)
2006-08-11 19:54 UTC, Ben Yu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Yu 2006-08-11 19:48:43 UTC
Hi, guys. I created a subclass of JUnitTask to utilize a tree class loader that
I wrote to manage different versions of dependencies following directory tree
structure.
Comment 1 Ben Yu 2006-08-11 19:50:52 UTC
Created attachment 18701 [details]
The core tree class loader. No dependency on Ant API.

org.codehaus.classloader.TreeClassLoaders is the facade class to create tree classloaders.

This package contains a tree class loader implementation. (optionally support
hot-swap).

Run "ant doc" to generate javadoc.
Comment 2 Ben Yu 2006-08-11 19:54:20 UTC
Created attachment 18702 [details]
the JUnitTask subclass that provide tree classloader support for forked mode

This package has the actual task class that calls tree-classloader to manage
dependency using directory tree.

org.codehaus.neptune.ant.tasks.JUnitTask is the subclass.

Usage: Load this class as a task (call it junit2 for example), then use the
same syntax as <junit>, except now the jar files in each directory in the
classpath are loaded and managed following directory tree structure.
Comment 3 Matt Benson 2006-09-08 16:41:26 UTC
I have the feeling that if I understood this any better I could see how the tree
ClassLoader could be generally useful on its own.  As it is I didn't entirely
understand it.  For one thing, if I DL and build the tree classloader
attachment, its tests don't run successfully.  :(