Skip to content

Commit ec213a6

Browse files
committed
Minor fixes
1 parent 6b6e62d commit ec213a6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

e2e-tests/src/main/java/dev/streamx/cli/StreamxTerminalCommandProducer.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package dev.streamx.cli;
22

33
import java.io.File;
4+
import java.nio.file.Path;
45
import java.util.regex.Pattern;
56
import java.util.stream.Stream;
67

@@ -39,7 +40,10 @@ private String findStreamxJar() {
3940
.filter(File::exists)
4041
.map(File::listFiles)
4142
.flatMap(Stream::of)
42-
.map(File::getAbsolutePath)
43+
.map(File::toPath)
44+
.map(Path::toAbsolutePath)
45+
.map(Path::normalize)
46+
.map(Path::toString)
4347
.filter(p -> pattern.matcher(p.replace("\\", "/")).matches())
4448
.findFirst()
4549
.orElseThrow(() -> new RuntimeException("Could not find streamx Jar"));

e2e-tests/src/main/java/dev/streamx/cli/test/tools/terminal/OsTerminalCommandRunner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ public OsTerminalCommandRunner() {
2525
}
2626

2727
public ShellProcess run(String command) {
28-
logger.info("Running terminal command: " + command);
2928
ProcessBuilder processBuilder = osCommand.create(command);
3029
try {
3130
ShellProcess shellProcess = ShellProcess.run(processBuilder);
3231
logger.info("Terminal command: '" + command + "' started");
3332
processes.add(shellProcess);
3433
return shellProcess;
3534
} catch (IOException e) {
35+
logger.info("Error running terminal command: " + command);
3636
throw new RuntimeException(e);
3737
}
3838
}

e2e-tests/src/test/java/dev/streamx/cli/StreamxCliPublicationIT.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import java.nio.file.Path;
1515
import java.time.Duration;
1616
import org.eclipse.microprofile.config.inject.ConfigProperty;
17-
import org.jetbrains.annotations.NotNull;
1817
import org.junit.jupiter.api.BeforeAll;
1918
import org.junit.jupiter.api.Test;
2019
import org.junit.jupiter.api.TestInstance;

0 commit comments

Comments
 (0)