Examples of ClassPath


Examples of org.apache.maven.surefire.booter.Classpath

            throw new RuntimeException( "Unable to locate surefire-booter in the list of plugin artifacts" );
        }

        surefireBooterArtifact.isSnapshot(); // MNG-2961: before Maven 2.0.8, fixes getBaseVersion to be -SNAPSHOT if needed

        final Classpath bootClasspathConfiguration =
            getArtifactClasspath( shadeFire != null ? shadeFire : surefireBooterArtifact );

        ForkConfiguration fork = new ForkConfiguration( bootClasspathConfiguration, getForkMode(), tmpDir );

        fork.setTempDirectory( tmpDir );
View Full Code Here

Examples of org.apache.maven.surefire.booter.Classpath

        if ( getTestNgArtifact() != null )
        {
            addTestNgUtilsArtifacts( classpath );
        }

        return new Classpath( classpath );
    }
View Full Code Here

Examples of org.apache.servicemix.jbi.deployer.descriptor.ClassPath

    protected ClassLoader createClassLoader() {
        SharedLibraryDesc library = descriptor.getSharedLibrary();
        // Make the current ClassLoader the parent
        ClassLoader parent = BundleDelegatingClassLoader.createBundleClassLoaderFor(bundle, getClass().getClassLoader());
        boolean parentFirst = library.isParentFirstClassLoaderDelegation();
        ClassPath cp = library.getSharedLibraryClassPath();
        String[] classPathNames = cp.getPathElements();
        List<URL> urls = new ArrayList<URL>();
        for (String classPathName : classPathNames) {
            File f = new File(installRoot, classPathName);
            if (!f.exists()) {
                LOGGER.warn("Shared library classpath entry not found: '" + classPathName + "'");
View Full Code Here

Examples of org.apache.servicemix.jbi.deployment.ClassPath

    protected ClassLoader createClassLoader() {
        boolean parentFirst = library.isParentFirstClassLoaderDelegation();
        // Make the current ClassLoader the parent
        ClassLoader parent = getClass().getClassLoader();      
       
        ClassPath cp = library.getSharedLibraryClassPath();
        String[] classPathNames = cp.getPathElements();
        URL[] urls = new URL[classPathNames.length];
        for (int i = 0; i < classPathNames.length; i++) {
            File file = new File(installationDir, classPathNames[i]);
            try {
                urls[i] = file.toURL();
View Full Code Here

Examples of org.apache.servicemix.jbi.deployment.ClassPath

        // component stuff
        Component component = root.getComponent();
        assertNotNull("component is null", component);
        assertEquals("getBootstrapClassName", "com.foo.Engine1Bootstrap", component.getBootstrapClassName());
        assertEquals("getComponentClassName", "com.foo.Engine1", component.getComponentClassName());
        assertEquals("getComponentClassPath", new ClassPath(new String[] {"Engine1.jar"}), component.getComponentClassPath());
        assertEquals("getBootstrapClassPath", new ClassPath(new String[] {"Engine2.jar"}), component.getBootstrapClassPath());

        assertEquals("getDescription", "foo", component.getDescription());

        assertArrayEquals("getSharedLibraries", new SharedLibraryList[] {new SharedLibraryList("slib1")}, component.getSharedLibraries());
View Full Code Here

Examples of org.codehaus.mojo.appassembler.model.Classpath

    private void test( Platform util, String[] asserts )
        throws Exception
    {
        Daemon daemon = new Daemon();
        daemon.setClasspath( new Classpath() );

        assertEquals( "", util.getClassPath( daemon ) );

        List classpath = daemon.getClasspath().getDirectories();
        classpath.add( createDirectory( asserts[0] ) );
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.batch.FileSystem.Classpath

    // no user classpath specified.
    classpaths = new ArrayList(DEFAULT_SIZE_CLASSPATH);
    String classProp = System.getProperty("java.class.path"); //$NON-NLS-1$
    if ((classProp == null) || (classProp.length() == 0)) {
      addPendingErrors(this.bind("configure.noClasspath")); //$NON-NLS-1$
      final Classpath classpath = FileSystem.getClasspath(System.getProperty("user.dir"), customEncoding, null);//$NON-NLS-1$
      if (classpath != null) {
        classpaths.add(classpath);
      }
    } else {
      StringTokenizer tokenizer = new StringTokenizer(classProp, File.pathSeparator);
      String token;
      while (tokenizer.hasMoreTokens()) {
        token = tokenizer.nextToken();
        FileSystem.Classpath currentClasspath = FileSystem
            .getClasspath(token, customEncoding, null);
        if (currentClasspath != null) {
          classpaths.add(currentClasspath);
        } else if (token.length() != 0) {
          addPendingErrors(this.bind("configure.incorrectClasspath", token));//$NON-NLS-1$
        }
      }
    }
  }
  ArrayList result = new ArrayList();
  HashMap knownNames = new HashMap();
  FileSystem.ClasspathSectionProblemReporter problemReporter =
    new FileSystem.ClasspathSectionProblemReporter() {
      public void invalidClasspathSection(String jarFilePath) {
        addPendingErrors(bind("configure.invalidClasspathSection", jarFilePath)); //$NON-NLS-1$
      }
      public void multipleClasspathSections(String jarFilePath) {
        addPendingErrors(bind("configure.multipleClasspathSections", jarFilePath)); //$NON-NLS-1$
      }
    };
  while (! classpaths.isEmpty()) {
    Classpath current = (Classpath) classpaths.remove(0);
    String currentPath = current.getPath();
    if (knownNames.get(currentPath) == null) {
      knownNames.put(currentPath, current);
      result.add(current);
      List linkedJars = current.fetchLinkedJars(problemReporter);
      if (linkedJars != null) {
        classpaths.addAll(0, linkedJars);
      }
    }
  }
View Full Code Here

Examples of org.exist.start.Classpath

    public static void updateClasspath(BrokerPool pool) {
        final ClassLoader loader = pool.getClassLoader();
        if (!(loader instanceof EXistClassLoader))
            {return;}
        final Classpath cp = new Classpath();
        scanPackages(pool, cp);
        ((EXistClassLoader)loader).addURLs(cp);
    }
View Full Code Here

Examples of org.gradle.internal.classpath.ClassPath

        this.moduleRegistry = moduleRegistry;
    }

    public ClassPath findClassPath(String name) {
        if (name.equals("GRADLE_RUNTIME")) {
            ClassPath classpath = new DefaultClassPath();
            for (Module module : moduleRegistry.getModule("gradle-launcher").getAllRequiredModules()) {
                classpath = classpath.plus(module.getClasspath());
            }
            return classpath;
        }
        if (name.equals("GRADLE_CORE")) {
            return moduleRegistry.getModule("gradle-core").getImplementationClasspath();
        }
        if (name.equals("GRADLE_BASE_SERVICES")) {
            return moduleRegistry.getModule("gradle-base-services").getImplementationClasspath();
        }
        if (name.equals("COMMONS_CLI")) {
            return moduleRegistry.getExternalModule("commons-cli").getClasspath();
        }
        if (name.equals("ANT")) {
            ClassPath classpath = new DefaultClassPath();
            classpath = classpath.plus(moduleRegistry.getExternalModule("ant").getClasspath());
            classpath = classpath.plus(moduleRegistry.getExternalModule("ant-launcher").getClasspath());
            return classpath;
        }
        if (name.equals("GROOVY")) {
            return moduleRegistry.getExternalModule("groovy-all").getClasspath();
        }
View Full Code Here

Examples of org.gradle.jvm.Classpath

                sourceSet.getJava().srcDir(String.format("src/%s/java", sourceSet.getName()));
                sourceSet.getResources().srcDir(String.format("src/%s/resources", sourceSet.getName()));
                sourceSet.compiledBy(sourceSet.getClassesTaskName());

                FunctionalSourceSet functionalSourceSet = projectSourceSet.create(sourceSet.getName());
                Classpath compileClasspath = new SourceSetCompileClasspath(sourceSet);
                DefaultJavaSourceSet javaSourceSet = instantiator.newInstance(DefaultJavaSourceSet.class, "java", sourceSet.getJava(), compileClasspath, functionalSourceSet);
                functionalSourceSet.add(javaSourceSet);
                JvmResourceSet resourceSet = instantiator.newInstance(DefaultJvmResourceSet.class, "resources", sourceSet.getResources(), functionalSourceSet);
                functionalSourceSet.add(resourceSet);
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.