// Path: jsptest-generic/jsptest-common/src/main/java/net/sf/jsptest/utils/IO.java
// public class IO {
// 
// 	public static byte[] readToByteArray(File file) throws IOException {
// 		return readToByteArray(new FileInputStream(file));
// 	}
// 
// 	public static byte[] readToByteArray(InputStream in) throws IOException {
// 		ByteArrayOutputStream out = new ByteArrayOutputStream();
// 		byte[] buffer = new byte[8096];
// 		int r = -1;
// 		while ((r = in.read(buffer)) != -1) {
// 			out.write(buffer, 0, r);
// 		}
// 		in.close();
// 		return out.toByteArray();
// 	}
// 
// 	public static void write(String what, File to) throws IOException {
// 		write(what, new FileWriter(to, false));
// 	}
// 
// 	public static void append(String what, File to) throws IOException {
// 		write(what, new FileWriter(to, true));
// 	}
// 
// 	private static void write(String what, FileWriter to) throws IOException {
// 		to.write(what);
// 		to.close();
// 	}
// 
// 	public static String readToString(File file) throws IOException {
// 		return new String(readToByteArray(file));
// 	}
// 
// 	public static String readToString(InputStream stream) throws IOException {
// 		return new String(readToByteArray(stream));
// 	}
// }


import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Method;
import net.sf.jsptest.utils.IO;
package net.sf.jsptest.compiler.java;



public class Java6Compiler extends CommandLineJavac {
	private static final String TMPDIR = System.getProperty("java.io.tmpdir");

	protected boolean execute(String[] arguments) throws IOException,
			InterruptedException {
		ByteArrayOutputStream output = new ByteArrayOutputStream();
		try {
			return executeWithReflection(arguments, output) == 0;
		} finally {
			File logFile = new File(TMPDIR, getClass().getName() + ".log");
// Path: jsptest-generic/jsptest-common/src/main/java/net/sf/jsptest/utils/IO.java
// public class IO {
// 
// 	public static byte[] readToByteArray(File file) throws IOException {
// 		return readToByteArray(new FileInputStream(file));
// 	}
// 
// 	public static byte[] readToByteArray(InputStream in) throws IOException {
// 		ByteArrayOutputStream out = new ByteArrayOutputStream();
// 		byte[] buffer = new byte[8096];
// 		int r = -1;
// 		while ((r = in.read(buffer)) != -1) {
// 			out.write(buffer, 0, r);
// 		}
// 		in.close();
// 		return out.toByteArray();
// 	}
// 
// 	public static void write(String what, File to) throws IOException {
// 		write(what, new FileWriter(to, false));
// 	}
// 
// 	public static void append(String what, File to) throws IOException {
// 		write(what, new FileWriter(to, true));
// 	}
// 
// 	private static void write(String what, FileWriter to) throws IOException {
// 		to.write(what);
// 		to.close();
// 	}
// 
// 	public static String readToString(File file) throws IOException {
// 		return new String(readToByteArray(file));
// 	}
// 
// 	public static String readToString(InputStream stream) throws IOException {
// 		return new String(readToByteArray(stream));
// 	}
// }


// Path: jsptest-generic/jsptest-common/src/main/java/net/sf/jsptest/compiler/java/Java6Compiler.java
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Method;
import net.sf.jsptest.utils.IO;

package net.sf.jsptest.compiler.java;



public class Java6Compiler extends CommandLineJavac {
	private static final String TMPDIR = System.getProperty("java.io.tmpdir");

	protected boolean execute(String[] arguments) throws IOException,
			InterruptedException {
		ByteArrayOutputStream output = new ByteArrayOutputStream();
		try {
			return executeWithReflection(arguments, output) == 0;
		} finally {
			File logFile = new File(TMPDIR, getClass().getName() + ".log");
			IO.append(output.toString(), logFile);