Examples of SystemDirectory


Examples of net.sourceforge.javautil.common.io.impl.SystemDirectory

    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])) {
View Full Code Here

Examples of net.sourceforge.javautil.common.io.impl.SystemDirectory

    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)) {
View Full Code Here

Examples of net.sourceforge.javautil.common.io.impl.SystemDirectory

    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]));
View Full Code Here

Examples of net.sourceforge.javautil.common.io.impl.SystemDirectory

    return pw;
  }

  public SystemDirectory getDirectory(String prompt, SystemDirectory defaultDirectory) {
    String result = this.captureRawInput(prompt + (defaultDirectory != null ? " [default=" + defaultDirectory.getPath().toString("/") + "]" : "") + ": ");
    return "".equals(result.trim()) ? defaultDirectory : new SystemDirectory(result);
  }
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.