Package org.codehaus.classworlds

Examples of org.codehaus.classworlds.ClassRealm


        catch( NoSuchRealmException ignore )
        {
            // ignore
        }
        try {
      ClassRealm realm = classRealm.getWorld().newRealm("jruby-all");
      for (String path : this.project.getTestClasspathElements()) {
        realm.addConstituent(new File(path).toURI().toURL());
      }
      if (this.jrubyVersion != null) {
              // preference to command line or property version
              return newScriptFactory( resolveJRubyCompleteArtifact(this.jrubyVersion) );
          }
          // check if there is jruby present
      Class<?> clazz = realm.loadClass("org.jruby.runtime.Constants");
      if ( jrubyVerbose ){
        String version = clazz.getField( "VERSION" ).get(clazz).toString();
        getLog().info("found jruby on classpath");
        getLog().info("jruby version   : " + version);
      }
View Full Code Here


                .getChild("build")
                .getChild("plugins")
                .getChild("plugin")
                .getChild("configuration");
        PlexusConfiguration config = new XmlPlexusConfiguration(dom);
        ClassRealm realm = new ClassWorld()
                .newRealm(null, getClass().getClassLoader());
        configurator.configureComponent(mojo, config, evaluator, realm);
    }
View Full Code Here

TOP

Related Classes of org.codehaus.classworlds.ClassRealm

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.