Examples of supportsSymlinks()


Examples of org.eclipse.jgit.util.FS.supportsSymlinks()

public class TreeWalkJava7Test extends RepositoryTestCase {
  @Test
  public void testSymlinkToDirNotRecursingViaSymlink() throws Exception {
    FS fs = db.getFS();
    assertTrue(fs.supportsSymlinks());
    writeTrashFile("target/data", "targetdata");
    fs.createSymLink(new File(trash, "link"), "target");
    TreeWalk tw = new TreeWalk(db);
    tw.setRecursive(true);
    tw.addTree(new FileTreeIterator(db));
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.