Examples of ClassPath


Examples of org.ofbiz.base.start.Classpath

    protected  String geronimoRepository = null;

    public List<String> generate(String geronimoVersion, String geronimoHome, String instanceNumber) {
        geronimoRepository = geronimoHome + "/repository";
        Debug.logInfo("The WASCE or Geronimo Repository is " + geronimoRepository, module);
        Classpath classPath = new Classpath(System.getProperty("java.class.path"));
        List<File> elements = classPath.getElements();
        List<String> jar_version = new ArrayList<String>();
        String jarPath = null;
        String jarName = null;
        String newJarName = null;
        String jarNameSimple = null;
View Full Code Here

Examples of org.servicemix.jbi.deployment.ClassPath

            installationContext.setInstall(true);
            installationContext.setComponentName(name);
            installationContext.setComponentDescription(descriptor.getIdentification().getDescription());
            installationContext.setInstallRoot(installationDir);
            installationContext.setComponentClassName(descriptor.getComponentClassName());
            ClassPath cp = descriptor.getComponentClassPath();
            if (cp != null) {
                installationContext.setClassPathElements(cp.getPathElements());
            }
            // now build the ComponentContext
            installationContext.setContext(buildComponentContext(name));
            InstallationDescriptorExtension desc = descriptor.getDescriptorExtension();
            if (desc != null) {
                installationContext.setDescriptorExtension(desc.getDescriptorExtension());
            }
            installationContext.setBinding(descriptor.isBindingComponent());
            installationContext.setEngine(descriptor.isServiceEngine());
            // now we must initialize the boot strap class
            String bootstrapClassName = descriptor.getBootstrapClassName();
            ClassPath bootStrapClassPath = descriptor.getBootstrapClassPath();
            InstallationClassLoader bootstrapLoader = null;
            if (bootstrapClassName != null && bootstrapClassName.length() > 0) {
                boolean parentFirst = descriptor.isBootstrapClassLoaderDelegationParentFirst();
                bootstrapLoader = classLoaderService.buildClassLoader(installationDir, bootStrapClassPath
                        .getPathElements(), parentFirst);
            }
            SharedLibraryList[] lists = descriptor.getSharedLibraries();
            String componentClassName = descriptor.getComponentClassName();
            ClassPath componentClassPath = descriptor.getComponentClassPath();
            boolean parentFirst = descriptor.isComponentClassLoaderDelegationParentFirst();
            ClassLoader componentClassLoader = classLoaderService.buildClassLoader(installationDir, componentClassPath
                    .getPathElements(), parentFirst, lists);
            result = new InstallerMBeanImpl(container, installationContext, componentClassLoader, componentClassName,
                    bootstrapLoader, bootstrapClassName);
            // create an MBean for the installer
            ObjectName objectName = managementContext.createCustomComponentMBeanName(InstallerMBean.class.getName(),
View Full Code Here

Examples of org.servicemix.jbi.deployment.ClassPath

      String name = sl.getIdentification().getName();
     
      // Make the current ClassLoader the parent
      ClassLoader parent = getClass().getClassLoader();   
     
      ClassPath cp = sl.getSharedLibraryClassPath();
      String[] classPathNames = cp.getPathElements();
      URL[] urls = new URL[classPathNames.length];
      for (int i = 0; i < classPathNames.length; i++) {
        File file = new File(dir, classPathNames[i]);
        urls[i] = file.toURL();
      }
View Full Code Here

Examples of sun.tools.java.ClassPath

      classpath =
          dir + files[i] + File.pathSeparator + classpath;
        }
    }
      }
      path = new ClassPath(System.getProperty("sun.boot.class.path") +
         File.pathSeparator + classpath);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.