Package com.caucho.vfs

Examples of com.caucho.vfs.Path.list()


    if (_configDirectory == null)
      throw new ConfigException(L.l("resource-manager requires a config-directory"));
   
    try {
      Path path = _configDirectory;
      String []list = path.list();

      for (int i = 0; i < list.length; i++) {
  String name = list[i];

  if (! name.endsWith(".ra"))
View Full Code Here


      if (path == null || ! path.isDirectory()) {
        env.warning(L.l("'{0}' is not a directory", fileName));
        return BooleanValue.FALSE;
      }

      String []values = path.list();

      Arrays.sort(values);

      ArrayValue result = new ArrayValueImpl();
View Full Code Here

    if (resinLib.lookup("pro.jar").canRead())
      addClassPath(classPath, resinLib.lookup("pro.jar").getNativePath());
    addClassPath(classPath, resinLib.lookup("resin.jar").getNativePath());
    //    addClassPath(classPath, resinLib.lookup("jaxrpc-15.jar").getNativePath());

    String []list = resinLib.list();

    for (int i = 0; i < list.length; i++) {
      if (! list[i].endsWith(".jar"))
        continue;
View Full Code Here

    Path archiveDirectory = getArchiveDirectory();

    if (archiveDirectory == null)
      return;

    String []entryList = archiveDirectory.list();

    // collect all the new entrys
    loop:
    for (int i = 0; i < entryList.length; i++) {
      String archiveName = entryList[i];
View Full Code Here

    Path expandDirectory = getExpandDirectory();

    if (expandDirectory == null)
      return;
   
    String []entryExpandList = expandDirectory.list();

    // collect all the new war expand directories
    loop:
    for (int i = 0; i < entryExpandList.length; i++) {
      String pathName = entryExpandList[i];
View Full Code Here

    Path path = getRootDirectory().lookup(getRealPath(prefix));

    HashSet<String> set = new HashSet<String>();

    try {
      String []list = path.list();

      for (int i = 0; i < list.length; i++) {
        if (path.lookup(list[i]).isDirectory())
          set.add(prefix + list[i] + '/');
        else
View Full Code Here

      libDir = _libraryDirectory;

    if (_rootDir.lookup(libDir).isDirectory()) {
      Path lib = _rootDir.lookup(libDir);

      for (String file : lib.list()) {
        if (file.endsWith(".jar")) {
          _loader.addJar(lib.lookup(file));
        }
      }
    }
View Full Code Here

      return;

    for (String extDir : extDirPath.split(File.pathSeparator, 512)) {
      Path dir = Vfs.lookup(extDir);

      for (String fileName : dir.list()) {
  Path root = dir.lookup(fileName);

  try {
    // #2659
    if (root.isDirectory()
View Full Code Here

  {
    try {
      Path path = getPath();
      Path parent = path.getParent();

      String []list = parent.list();

      ArrayList<String> matchList = new ArrayList<String>();

      Pattern archiveRegexp = getArchiveRegexp();
      for (int i = 0; i < list.length; i++) {
View Full Code Here

    Path dir = pwd.lookup(filename);
    if (! dir.isDirectory())
      throw error(L.l("`{0}' is not a directory for resin:include-directory.  The href for resin:include-directory must refer to a directory.",
                      dir.getNativePath()));

    String []list = dir.list();
    Arrays.sort(list);
    for (int i = list.length - 1; i >= 0; i--) {
      if (list[i].startsWith(".") ||
          extension != null && ! list[i].endsWith(extension))
        continue;
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.