|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| LogSysExecute.java | 0% | 0% | 0% | 0% |
|
||||||||||||||
| 1 |
package nmp.file_utils;
|
|
| 2 |
|
|
| 3 |
import java.io.*;
|
|
| 4 |
import java.lang.reflect.*;
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
public class LogSysExecute |
|
| 8 |
{
|
|
| 9 | 0 |
public static void main( String[] args) { |
| 10 | 0 |
try {
|
| 11 | 0 |
String[] newargs = new String[args.length - 2];
|
| 12 | 0 |
for( int i = 2; i < args.length; i++) |
| 13 | 0 |
newargs[i-2] = args[i]; |
| 14 | 0 |
System.setOut( new PrintStream( new FileOutputStream( args[0]))); |
| 15 | 0 |
System.setErr( new PrintStream( new FileOutputStream( args[1]))); |
| 16 | 0 |
Runtime.getRuntime().exec( newargs); |
| 17 |
} catch( Throwable th) {
|
|
| 18 | 0 |
th.printStackTrace(); |
| 19 |
} |
|
| 20 |
} |
|
| 21 |
} |
|
| 22 |
|
|
||||||||||