From 697cfcc2afe411bb132325da958e055cfcad5d2b Mon Sep 17 00:00:00 2001 From: NoName11234 <47484268+NoName11234@users.noreply.github.com> Date: Sun, 11 Feb 2024 14:37:05 +0100 Subject: [PATCH] changed Writer to NullWriter --- src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java b/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java index 16e794716..3c7f71a19 100644 --- a/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java +++ b/src/main/java/de/dhbwstuttgart/core/JavaTXCompiler.java @@ -88,8 +88,9 @@ 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.write("test"); + //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 contextPath = Lists.newArrayList(new File(System.getProperty("user.dir")));