Skip to content

Commit

Permalink
Upgrade commons-exec from 1.3 to 1.4.0 (fixes #9, yay!)
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Mar 27, 2024
1 parent 8736144 commit 124ddf8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-exec</artifactId>
<version>1.3</version>
<version>1.4.0</version>
</dependency>
<dependency>
<!-- Just for its CircularFifoQueue... -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.function.Function;
import org.apache.commons.exec.DefaultExecutor;

@SuppressWarnings("deprecation") // TODO https://github.com/vorburger/ch.vorburger.exec/issues/189
class ExtendedDefaultExecutor extends DefaultExecutor {

private Function<Integer, Boolean> exitValueChecker;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/ch/vorburger/exec/ManagedProcess.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ public class ManagedProcess implements ManagedProcessState {
* @param stdErrs StandardError from the console
* @param listener A <tt>ManagedProcessListener</tt> which is notified when process completes or fails
*/
@SuppressWarnings("deprecation") // TODO https://github.com/vorburger/ch.vorburger.exec/issues/189
ManagedProcess(CommandLine commandLine, File directory, Map<String, String> environment,
InputStream input, boolean destroyOnShutdown, int consoleBufferMaxLines,
OutputStreamLogDispatcher outputStreamLogDispatcher,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class StopCheckExecuteWatchdog extends ExecuteWatchdog {
* the timeout for the process in milliseconds. It must be
* greater than 0 or 'INFINITE_TIMEOUT'
*/
@SuppressWarnings("deprecation") // TODO https://github.com/vorburger/ch.vorburger.exec/issues/189
public StopCheckExecuteWatchdog(long timeout) {
super(timeout);
}
Expand Down

0 comments on commit 124ddf8

Please sign in to comment.