File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
test-framework/common/src/main/java/io/quarkus/test/common Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,7 @@ public void start() throws Exception {
59
59
args .add (path );
60
60
args .add ("-Dquarkus.http.port=" + port );
61
61
args .add ("-Dtest.url=" + TestHTTPResourceManager .getUri ());
62
- //args.add("-Dquarkus.log.file.path=target/quarkus.log");
63
- PropertyTestUtil .setLogFileProperty ();
62
+ args .add ("-Dquarkus.log.file.path=" + PropertyTestUtil .getLogFileLocation ());
64
63
65
64
System .out .println ("Executing " + args );
66
65
Original file line number Diff line number Diff line change 22
22
public class PropertyTestUtil {
23
23
24
24
public static void setLogFileProperty () {
25
+ System .setProperty ("quarkus.log.file.path" , getLogFileLocation ());
26
+ }
27
+
28
+ public static String getLogFileLocation () {
25
29
if (Files .isDirectory (Paths .get ("build" ))) {
26
- System . setProperty ( "quarkus.log.file.path" , "build" + File .separator + "quarkus.log" ) ;
27
- } else
28
- System . setProperty ( "quarkus.log.file.path" , " target" + File .separator + "quarkus.log" ) ;
30
+ return "build" + File .separator + "quarkus.log" ;
31
+ }
32
+ return " target" + File .separator + "quarkus.log" ;
29
33
}
30
34
}
You can’t perform that action at this time.
0 commit comments