Package org.jnode.shell.io

Examples of org.jnode.shell.io.CommandIOMarker


        try {
            for (PipelineStage stage : stages) {
                for (CommandIOHolder holder : stage.holders) {
                    CommandIO io = holder.getIO();
                    if (io instanceof CommandIOMarker) {
                        CommandIOMarker marker = (CommandIOMarker) io;
                        String name = marker.getName();

                        if (name.startsWith("PIPE-")) {
                            holder.setIO(
                                    (marker.getDirection() == CommandIO.DIRECTION_OUT ?
                                            getOutPipeIO(name) : getInPipeIO(name)),
                                            true);
                        }
                    }
                }
View Full Code Here


        stage.command = commandNode;
        stage.holders = context.getHolders();
        if (i > 0) {
            String pipeName = "PIPE-" + stages[i - 1].stageName;
            stages[i - 1].holders[Command.STD_OUT].setIO(
                    new CommandIOMarker(pipeName, CommandIO.DIRECTION_OUT), true);
            stage.holders[Command.STD_IN].setIO(
                    new CommandIOMarker(pipeName, CommandIO.DIRECTION_IN), true);
        }
        stage.context = context;
        stage.nestedPipeline = commandNode.buildPipeline(context);
        context.evaluateRedirections(commandNode.getRedirects(), stage.holders);
    }
View Full Code Here

TOP

Related Classes of org.jnode.shell.io.CommandIOMarker

Copyright © 2018 www.massapicom. 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.