You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ole Matzura <Ol...@mogul.com> on 2005/01/11 14:27:31 UTC

re: Loading my own class using j:new

hi all!
 
in case somebody stumbles into this problem
(http://marc.theaimsgroup.com/?l=turbine-maven-user&m=110167953711678&w=
2), I solved it by creating a classloader as follows; 
 
<define:classLoader var="mycl" url="file:${basedir}/target/classes/"/> 

<j:new var="myclass" className="my.class.name" classLoader="${mycl}"/>

maybe there is a better way? please let us know!
 
regards
 
/Ole