Skip to content

Commit f2df290

Browse files
committed
delete timeout and update version
1 parent e3d14bc commit f2df290

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group = "io.github.glorrian"
9-
version = "1.0"
9+
version = "1.0.1"
1010

1111
repositories {
1212
mavenCentral()

src/main/java/io/github/glorrian/cmakegradleplugin/CMakeExecutor.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ public void execute(List<String> cmdLine, final File workingDir,
5656
cmdLine = validateArgs(cmdLine);
5757
ProcessBuilder processBuilder = new ProcessBuilder(cmdLine);
5858
processBuilder.directory(workingDir);
59-
logger.debug(PREFIX + "Setup ProcessBuilder with \"{}\" command in {} directory", cmdLine, workingDir.getAbsolutePath());
59+
logger.debug("{}Setup ProcessBuilder with \"{}\" command in {} directory", PREFIX, cmdLine,
60+
workingDir.getAbsolutePath());
6061
try {
6162
Process process = processBuilder.start();
62-
logger.info(PREFIX + "Starting Process - {}", process);
63+
logger.info("{}Starting Process - {}", PREFIX, process);
6364
ExecutorService executorService = Executors.newFixedThreadPool(2);
6465
printStream(executorService, new StreamPrintService(process.getInputStream(), inputPrintAction));
6566
printStream(executorService, new StreamPrintService(process.getErrorStream(), errorPrintAction));
@@ -93,9 +94,9 @@ private void printStream(ExecutorService executorService, StreamPrintService pri
9394

9495
private void throwIfTimeOut(Future<?> future) {
9596
try {
96-
future.get(3, TimeUnit.SECONDS);
97-
} catch (ExecutionException | InterruptedException | TimeoutException e) {
98-
logger.warn(PREFIX + "Timed out waiting for input stream to be closed.");
97+
future.get();
98+
} catch (ExecutionException | InterruptedException e) {
99+
logger.warn("{}An exception occurred during the execution of the command", PREFIX, e);
99100
}
100101
}
101102

0 commit comments

Comments
 (0)