Examples of cd()


Examples of br.com.caelum.tubaina.io.TubainaHtmlDir.cd()

        for (Chapter chapter : book.getChapters()) {
            int curdir = currentDir++;
            StringBuffer chapterText = new ChapterToString(parser, cfg, dirTree, ifdefs).generateChapter(
                    book, chapter, chapterIndex, curdir);

            bookRoot.cd(Utilities.toDirectoryName(null, chapter.getTitle())).writeIndex(
                    fixPaths(chapterText)).writeResources(chapter.getResources());

            chapterIndex++;
        }
View Full Code Here

Examples of br.com.caelum.tubaina.io.TubainaHtmlDir.cd()

        Map<String, Integer> indexes = new TreeMap<String, Integer>(String.CASE_INSENSITIVE_ORDER);
        StringBuffer index = new IndexToString(dirTree, cfg).createFlatIndex(indexes, book);
        List<Chapter> introductionChapters = book.getIntroductionChapters();
        for (Chapter chapter : introductionChapters) {
          bookRoot.cd(".").writeResources(chapter.getResources())
    }
    }

    private StringBuffer fixPaths(StringBuffer chFullText) {
        return new StringBuffer(chFullText.toString().replace("$$RELATIVE$$", "."));
View Full Code Here

Examples of br.com.caelum.tubaina.io.TubainaHtmlDir.cd()

    for (Chapter c : book.getChapters()) {
      StringBuffer chapterContent = generateChapter(book, c);
      bookContent.append(chapterContent);
      if (!c.getResources().isEmpty()) {
        bookRoot.cd(Utilities.toDirectoryName(null, c.getTitle()))
            .writeResources(c.getResources());
      }
    }
   
    bookContent = resolveReferencesOf(bookContent);
View Full Code Here

Examples of com.alphacsp.cit.Environment.cd()

        List<String> parameters = executionContext.getParameters();

        FileValue pwd = environment.pwd();

        if (parameters.isEmpty()) {
            environment.cd();
        } else {
            String newFolder = parameters.get(0);
            FileValue newPwd = pwd.child(newFolder);
            File newFolderFile = newPwd.getAsFile();
            if (! newFolderFile.exists()) {
View Full Code Here

Examples of com.alphacsp.cit.Environment.cd()

                throw new CommandExecutionException("No such directory: " + newFolderFile);
            }
            if (! newFolderFile.isDirectory()) {
                throw new CommandExecutionException(newFolderFile + "is not a directory");
            }
            environment.cd(newFolderFile.getAbsolutePath());
        }

    }
}
View Full Code Here

Examples of com.jcraft.jsch.ChannelSftp.cd()

                String workingDirectory = getRootName().getPath();
                if (workingDirectory != null && (userDirIsRoot == null || !userDirIsRoot.booleanValue()))
                {
                    try
                    {
                        channel.cd(workingDirectory);
                    }
                    catch (SftpException e)
                    {
                        throw new FileSystemException("vfs.provider.sftp/change-work-directory.error", workingDirectory);
                    }
View Full Code Here

Examples of com.jcraft.jsch.ChannelSftp.cd()

        ChannelSftp channel = openSftpChannel();
        try {
            channel.connect();

            try {
                channel.cd(remotePath);
                for (Iterator i = directoryList.iterator(); i.hasNext();) {
                    Directory current = (Directory) i.next();
                    sendDirectory(channel, current);
                }
            } catch (SftpException e) {
View Full Code Here

Examples of com.jcraft.jsch.ChannelSftp.cd()

            try
            {
                if (relPath != null)
                {
                    workingDirectory = channel.pwd();
                    channel.cd(relPath);
                }
            }
            catch (SftpException ex)
            {
                // VFS-210: seems not to be a directory
View Full Code Here

Examples of com.jcraft.jsch.ChannelSftp.cd()

            {
                try
                {
                    if (relPath != null)
                    {
                        channel.cd(workingDirectory);
                    }
                }
                catch (SftpException xe)
                {
                    throw new FileSystemException("vfs.provider.sftp/change-work-directory-back.error",
View Full Code Here

Examples of com.jcraft.jsch.ChannelSftp.cd()

                String workingDirectory = getRootName().getPath();
                if (workingDirectory != null && (userDirIsRoot == null || !userDirIsRoot.booleanValue()))
                {
                    try
                    {
                        channel.cd(workingDirectory);
                    }
                    catch (SftpException e)
                    {
                        throw new FileSystemException("vfs.provider.sftp/change-work-directory.error",
                            workingDirectory);
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.