01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.process;
05:
06: import java.io.BufferedReader;
07: import java.io.InputStreamReader;
08:
09: /**
10: * A simple program for the {@link LinkedJavaProcessTest}that simply echoes a single line of input.
11: */
12: public class LinkedJavaProcessTestMain2 {
13:
14: public static void main(String[] args) throws Exception {
15: BufferedReader reader = new BufferedReader(
16: new InputStreamReader(System.in));
17: String line = reader.readLine();
18: System.out.println("DATA: out: <" + line + ">");
19: System.err.println("DATA: err: <" + line + ">");
20: }
21:
22: }
|