This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>buildnumber-maven-plugin</artifactId> | |
<version>1.2</version> | |
<executions> | |
<execution> | |
<phase>validate</phase> | |
<goals> | |
<goal>create</goal> | |
</goals> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PipeTest { | |
public static void main(String[] args) throws java.io.IOException, java.lang.InterruptedException { | |
java.lang.Runtime rt = java.lang.Runtime.getRuntime(); | |
// Start three processes: ps ax | grep rbe | grep JavaVM | |
java.lang.Process p1 = rt.exec("ps ax"); | |
java.lang.Process p2 = rt.exec("grep rbe"); | |
java.lang.Process p3 = rt.exec("grep JavaVM"); | |
// Start piping | |
java.io.InputStream in = Piper.pipe(p1, p2, p3); |
NewerOlder