Examples of ClassPath


Examples of com.redhat.ceylon.compiler.java.runtime.Main.ClassPath

    public void testWrongOsgiModule() throws IOException, ModuleNotFoundException {
        File jar = jar("MANIFEST.MF", "META-INF");
        try{
            ArrayList<File> jars = new ArrayList<File>(1);
            jars.add(jar);
            ClassPath classPath = new Main.ClassPath(jars);
            classPath.loadModule("bar", "1");
            fail();
        }finally{
            //        System.err.println("Jar is at "+jar.getAbsolutePath());
            jar.delete();
        }
View Full Code Here

Examples of com.springsource.bundlor.ClassPath

    try {
      PropertiesSource propertiesSource = new PropertiesPropertiesSource(properties);

      ManifestGenerator generator = new StandardManifestGenerator(DefaultManifestGeneratorContributorsFactory.create(propertiesSource));
      ClassPath classPath = new StandardClassPathFactory().create(inputPath);
      ManifestContents contents = new StandardManifestTemplateFactory().create(manifestTemplate.getPath(), null, null, null);
      manifest = generator.generate(contents, classPath);

      ManifestWriter manifestWriter = new StandardManifestWriterFactory().create(inputPath, outputJar.getPath());
      try {
View Full Code Here

Examples of com.subhajit.classbench.Classpath

      final Set<String> classNames = new HashSet<String>();
      new TaskRunner(new ISwingRunnableWithProgress() {
        public void run(IProgress arg0) throws Throwable {
          classNames
              .addAll(ClasspathUtils
                  .getAllClasses(new Classpath(
                      classpathElements
                          .toArray(IConstants.ZERO_LENGTH_FILE_ARRAY))));
        }
      }, "Finding classes", "", classpathElements.size()).exec();
View Full Code Here

Examples of com.sun.jdo.api.persistence.enhancer.util.ClassPath

     * root directory for the lookup which represents the annotated output
     * for the class specified.  Return null if not found.
     */
    public ClassFileSource lookupDestClass(String className) {
        if (destClassPath == null && destinationDirectory != null)
            destClassPath = new ClassPath(destinationDirectory.getPath());
        return (destClassPath == null
                ? null : destClassPath.findClass(className));
    }
View Full Code Here

Examples of com.sun.org.apache.bcel.internal.util.ClassPath

     *                  jar files have optional package dependency, that must be
     *                  taken care of in the classpath by ther caller.
     */
    public BCELClassFileLoader1(String classPath) {
        logger.entering("BCELClassFileLoader1", "<init>(String)", classPath); // NOI18N
        cp = new ClassPath(classPath);
    }
View Full Code Here

Examples of de.fub.bytecode.ClassPath

  public void visitUnknown(Unknown obj) {}   

  public static void main(String[] argv) {
    ClassParser parser=null;
    JavaClass   java_class;
    ClassPath   class_path = new ClassPath();

    try {
      if(argv.length == 0) {
  System.err.println("disassemble: No input files specified");
      }
      else {
  for(int i=0; i < argv.length; i++) {
    if(argv[i].endsWith(".class"))
      parser = new ClassParser(argv[i]); // Create parser object
    else {
      InputStream is = class_path.getInputStream(argv[i]);
      String    name = argv[i].replace('.', '/') + ".class";

      parser = new ClassParser(is, name);
    }
     
View Full Code Here

Examples of fitnesse.testsystems.ClassPath

  public WikiPageDescriptor(WikiPage data, boolean inProcess, boolean remoteDebug, String classPath) {
    this.page = data;
    this.inProcess = inProcess;
    // Debug property should move to ClientBuilder
    this.remoteDebug = remoteDebug;
    this.classPath = new ClassPath(classPath, ",");
  }
View Full Code Here

Examples of gov.nasa.jpf.autodoc.types.parser.ClassPath

   
    String dir = "build" + System.getProperty("file.separator");
    String[] pathnames = new String[]{dir + "jpf-autodoc-types.jar",
                                      dir + "main", dir + "tests"};
   
    ClassPath cp = new ClassPath();
    cp.addAllPathNames(pathnames);
   
    for (String s : cp.getPathNames()) {
      System.out.println("  " + s);
    }
   
    assertArrayEquals(pathnames, cp.getPathNames());
  }
View Full Code Here

Examples of javassist.ClassPath

        ClassLoader threadDeadlockBuffer = new URLClassLoader(new URL[0], parent);

        loader = new PackageAwareLoader(threadDeadlockBuffer, classPool);

        ClassPath path = new LoaderClassPath(loader);

        classPool.appendClassPath(path);

        classSource = new CtClassSourceImpl(classPool, loader);
View Full Code Here

Examples of javassist.ClassPath

        if (loader == null || loader == _loader || _loaders.contains(loader))
            return;

        _loader.addDelegateLoader(loader);

        ClassPath path = new LoaderClassPath(loader);

        appendClassPath(path);

        _loaders.add(loader);
    }
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.