Skip to content

Commit bd79176

Browse files
committed
add debug log
1 parent dc9a14b commit bd79176

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-ant/src/test/java/smoketest/ant/SampleAntApplicationIT.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ class SampleAntApplicationIT {
4040
void runJar() throws Exception {
4141
File libs = new File("build/ant/libs");
4242
String javaExecutable = findJavaExecutable();
43+
File javaFile = new File(javaExecutable);
44+
System.out.println("Using Java executable: " + javaExecutable);
45+
System.out.println("Java executable exists: " + javaFile.exists());
46+
System.out.println("Java executable canExecute: " + javaFile.canExecute());
47+
System.out.println("Java executable canRead: " + javaFile.canRead());
48+
System.out.println("java.home: " + System.getProperty("java.home"));
49+
System.out.println("Working directory: " + System.getProperty("user.dir"));
50+
System.out.println("Current directory files: " + java.util.Arrays.toString(new File(".").list()));
4351
ProcessBuilder processBuilder = new ProcessBuilder(javaExecutable, "-jar", "spring-boot-smoke-test-ant.jar");
4452
processBuilder.inheritIO();
4553
Process process = processBuilder.directory(libs).start();

0 commit comments

Comments
 (0)