Package net.sourceforge.javautil.classloader.source

Examples of net.sourceforge.javautil.classloader.source.LibDirectoryClassSource


    if (webInf != null) {
      IVirtualDirectory classes = webInf.getDirectory("classes");
      if (classes != null) this.nonPackageResources.add( new VirtualDirectoryClassSource(classes) );
     
      IVirtualDirectory lib = webInf.getDirectory("lib");
      if (lib != null) this.nonPackageResources.add(new LibDirectoryClassSource(lib, false));
    }
  }
View Full Code Here


  public ClassSource getAdditionalClassSources () throws Exception {
    String libdirs = this.getSetting(LIBDIRS_PROPERTY);
    if (libdirs == null) return null;
   
    String[] libs = libdirs.split(";");
    if (libs.length == 1) return new LibDirectoryClassSource(new SystemDirectory(libs[0]), true);
    else {
      CompositeClassSource ccs = new CompositeClassSource();
      for (String lib : libs) ccs.add(new LibDirectoryClassSource(new SystemDirectory(lib), true));
      return ccs;
    }
  }
View Full Code Here

    if (args.length != 2) {
      System.err.println("Please provide the library directory and the resource name to search for.");
    } else {
     
      System.out.println("Searching for " + args[1] + " in " + args[0]);
      LibDirectoryClassSource lib = new LibDirectoryClassSource(new SystemDirectory(args[0]), true);
      List<ClassSource> sources = lib.getAllNonCompositeSources();
     
      for (ClassSource source : sources) {
        for (String name : source.getResourceNames()) {
          if (name.contains(args[1])) {
            System.out.println("Found: " + name + " in " + source);
View Full Code Here

    if (args.length != 2) {
      System.err.println("Please provide the library directory and the package name to search for.");
    } else {
     
      System.out.println("Searching for " + args[1] + " in " + args[0]);
      LibDirectoryClassSource lib = new LibDirectoryClassSource(new SystemDirectory(args[0]), true);
      List<ClassSource> sources = lib.getAllNonCompositeSources();
     
      PackageSearchInfo info = new PackageSearchInfo(args[1]);
      for (ClassSource source : sources) {
        if (source.hasPackage(info)) {
          System.out.println("Found in " + source);
View Full Code Here

    if (args.length != 2) {
      System.err.println("Please provide the library directory and the class name to search for.");
    } else {
     
      System.out.println("Searching for " + args[1] + " in " + args[0]);
      LibDirectoryClassSource lib = new LibDirectoryClassSource(new SystemDirectory(args[0]), true);
      List<ClassSource> sources = lib.getAllNonCompositeSources();
     
      for (ClassSource source : sources) {
        try {
          ClassInfo info = source.getClassInfo(new ClassSearchInfo(args[1]));
          System.out.println("Found in " + info.getSource());
View Full Code Here

TOP

Related Classes of net.sourceforge.javautil.classloader.source.LibDirectoryClassSource

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.