Package org.tmatesoft.hg.util

Examples of org.tmatesoft.hg.util.FileWalker.file()


    FileWalker fw = new FileWalker(repo, testRepoLoc, pathSrc, null);
    int execFound, linkFound, regularFound;
    execFound = linkFound = regularFound = 0;
    while(fw.hasNext()) {
      fw.next();
      FileInfo fi = fw.file();
      boolean executable = fi.isExecutable();
      boolean symlink = fi.isSymlink();
      if (executable) {
        execFound++;
      }
View Full Code Here


    boolean exec, link, file;
    exec = link = file = false;
    while (fw.hasNext()) {
      fw.next();
      FileInfo fi = fw.file();
      String fn = fw.name().toString();
      if (fn.equals("file-link")) {
        link = true;
        errorCollector.assertTrue("Symlink shall exist despite the fact it points to nowhere", fi.exists());
        errorCollector.assertFalse(fi.isExecutable());
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.