Package org.apache.karaf.shell.commands.impl

Examples of org.apache.karaf.shell.commands.impl.GrepAction


        InputStream input = System.in;
        try {
            ByteArrayInputStream bais = new ByteArrayInputStream("1\n2\n3\n4\n5\n6\n7\n8\n9\n".getBytes());
            System.setIn(bais);

            GrepAction grep = new GrepAction();
            DefaultActionPreparator preparator = new DefaultActionPreparator();
            preparator.prepare(grep, null, Arrays.<Object>asList("-C", "100", "2"));
            grep.doExecute();
        } finally {
            System.setIn(input);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.karaf.shell.commands.impl.GrepAction

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.