Examples of rm()


Examples of org.eclipse.jgit.api.Git.rm()

    writeTrashFile("b", "Hello world b");
    writeTrashFile("a", "b");
    git.add().addFilepattern(".").call();
    git.commit().setMessage("add file b & file a").call();
    Ref branch_1 = git.branchCreate().setName("branch_1").call();
    git.rm().addFilepattern("a").call();
    File folderA = new File(db.getWorkTree(), "a");
    FileUtils.mkdirs(folderA);
    writeTrashFile("a/c", "Hello world c");
    git.add().addFilepattern(".").call();
    git.commit().setMessage("add folder a").call();
View Full Code Here

Examples of org.eclipse.jgit.api.Git.rm()

    writeTrashFile("b", "Hello world b");
    writeTrashFile("a", "b");
    git.add().addFilepattern(".").call();
    git.commit().setMessage("add file b & file a").call();
    Ref branch_1 = git.branchCreate().setName("branch_1").call();
    git.rm().addFilepattern("a").call();
    git.commit().setMessage("delete file a").call();

    FileUtils.mkdirs(new File(db.getWorkTree(), "a"));
    writeTrashFile("a/c", "Hello world c");
View Full Code Here

Examples of org.eclipse.jgit.api.Git.rm()

    writeTrashFile("b", "Hello world b");
    git.add().addFilepattern(".").call();
    RevCommit commit1 = git.commit().setMessage("add folder a & file b")
        .call();
    Ref branch_1 = git.branchCreate().setName("branch_1").call();
    git.rm().addFilepattern("a").call();
    RevCommit commit2 = git.commit().setMessage("delete folder a").call();

    TreeWalk tw = new TreeWalk(db);
    tw.addTree(commit1.getTree());
    tw.addTree(commit2.getTree());
View Full Code Here

Examples of org.eclipse.jgit.api.Git.rm()

    writeTrashFile("a/c", "Hello world c");
    writeTrashFile("b", "Hello world b");
    git.add().addFilepattern(".").call();
    git.commit().setMessage("add folder a & file b").call();
    Ref branch_1 = git.branchCreate().setName("branch_1").call();
    git.rm().addFilepattern("a").call();
    File fileA = new File(db.getWorkTree(), "a");
    writeTrashFile("a", "b");
    git.add().addFilepattern("a").call();
    git.commit().setMessage("add file a").call();
View Full Code Here

Examples of org.eclipse.jgit.api.Git.rm()

    FileEntry entry = new FileTreeIterator.FileEntry(new File(
        db.getWorkTree(), "a"), db.getFS());
    assertEquals(FileMode.REGULAR_FILE, entry.getMode());

    git.rm().addFilepattern("a").call();
    FileUtils.mkdirs(new File(db.getWorkTree(), "a"));
    writeTrashFile("a/c", "Hello world c");
    git.add().addFilepattern(".").call();

    entry = new FileTreeIterator.FileEntry(new File(db.getWorkTree(), "a"),
View Full Code Here

Examples of org.eclipse.jgit.api.Git.rm()

    writeTrashFile("b", "Hello world b");
    writeTrashFile("a", "b");
    git.add().addFilepattern(".").call();
    git.commit().setMessage("add file b & file a").call();
    Ref branch_1 = git.branchCreate().setName("branch_1").call();
    git.rm().addFilepattern("a").call();
    writeTrashFile("a", "Hello world a");
    git.add().addFilepattern("a").call();
    git.commit().setMessage("add file a").call();

    FileEntry entry = new FileTreeIterator.FileEntry(new File(
View Full Code Here

Examples of org.eclipse.jgit.api.Git.rm()

    FileEntry entry = new FileTreeIterator.FileEntry(new File(
        db.getWorkTree(), "a"), db.getFS());
    assertEquals(FileMode.REGULAR_FILE, entry.getMode());

    git.rm().addFilepattern("a").call();
    FileUtils.mkdirs(new File(db.getWorkTree(), "a"));
    writeTrashFile("a/c", "Hello world c");
    git.add().addFilepattern(".").call();

    entry = new FileTreeIterator.FileEntry(new File(db.getWorkTree(), "a"),
View Full Code Here

Examples of org.glassfish.cluster.ssh.sftp.SFTPClient.rm()

                throw new IOException(ioe);
            }

            try {
                logger.info("Removing " + host + ":" + sshInstallDir + "/" + getArchiveName());
                sftpClient.rm(sshInstallDir + "/" + getArchiveName());
                logger.finer("Removed " + host + ":" + sshInstallDir + "/" + getArchiveName());
            }
            catch (IOException ioe) {
                logger.info(Strings.get("remove.glassfish.failed", host, sshInstallDir));
                throw new IOException(ioe);
View Full Code Here

Examples of org.platformlayer.ops.OpsTarget.rm()

      target.executeCommand(Command.build("extlinux --install  {0}", rootfsDir).setTimeout(TimeSpan.FIVE_MINUTES));
    }

    if (supportCloudConfigDisk) {
      if (useConfigDriveSymlinks) {
        target.rm(new File(rootfsDir, "etc/network/interfaces"));
        target.executeCommand("ln -s /media/config/etc/network/interfaces {0}", new File(rootfsDir,
            "etc/network/interfaces"));

        target.mkdir(new File(rootfsDir, "root/.ssh"));
        target.executeCommand("ln -s /media/config/root/.ssh/authorized_keys {0}", new File(rootfsDir,
View Full Code Here

Examples of org.platformlayer.ops.OpsTarget.rm()

    }

    {
      // Remove policy file
      File policyFile = new File(rootfsDir, "usr/sbin/policy-rc.d");
      target.rm(policyFile);
    }

    target.executeCommand("sync");
    target.executeCommand("umount {0}", new File(rootfsDir, "proc"));
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.