Thanks Thomas, This is exactly what i needed.
On Sun, Apr 28, 2013 at 5:56 PM, Thomas Broyer <[email protected]> wrote: > On Sun, Apr 28, 2013 at 11:40 AM, Mohammad Shamsi <[email protected]> > wrote: > > Sorry, my question was clear enough. > > > > I need to get the project classpath and add it to current classloader. > > because the plugin needs to search and find some specific classes in the > > project. > > The way I do it (inspired by many other plugins) is using > ClassWorld/ClassRealm (a kind of URLClassLoader), but URLClassLoader > will do just as well if you don't need anything fancy: > Only direct dependencies: > > https://github.com/tbroyer/gwt-maven-plugin/blob/54fe4621d1ee5127b14030f6e1462de44bace901/src/main/java/net/ltgt/gwt/maven/GenerateModuleMojo.java#L218 > Including transitive dependencies (and sources): > > https://github.com/tbroyer/gwt-maven-plugin/blob/54fe4621d1ee5127b14030f6e1462de44bace901/src/main/java/net/ltgt/gwt/maven/CompileMojo.java#L295 > > > -- > Thomas Broyer > /tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Sincerely Yours Mohammad H. Shamsi
