From 0c0ac61a0262d1edd3c0de0b2510de6765f7af0c Mon Sep 17 00:00:00 2001 From: NoName11234 <47484268+NoName11234@users.noreply.github.com> Date: Tue, 26 Dec 2023 16:59:37 +0100 Subject: [PATCH] changed outputstream for debugging to NullOutputStream --- src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java b/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java index 16e79471..1c2184f5 100644 --- a/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java +++ b/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java @@ -88,7 +88,8 @@ public class JavaTXCompiler { this(sourceFiles, null); } public JavaTXCompiler(List sources, List contextPath) throws IOException, ClassNotFoundException { - statistics = new FileWriter(new File(System.getProperty("user.dir") + "/" + sources.get(0).getName() + "_"+ new Timestamp(System.currentTimeMillis()))); + //statistics = new FileWriter(new File(System.getProperty("user.dir") + "/" + sources.get(0).getName() + "_"+ new Timestamp(System.currentTimeMillis()))); + statistics = new OutputStreamWriter(new NullOutputStream()); statistics.write("test"); if(contextPath == null || contextPath.isEmpty()){ //When no contextPaths are given, the working directory is the sources root