OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 156 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 156 Rev 177
Line 55... Line 55...
55
         * Do nothing, which is dangerous as the process will hang until its output is read.
55
         * Do nothing, which is dangerous as the process will hang until its output is read.
56
         */
56
         */
57
        DO_NOTHING
57
        DO_NOTHING
58
    }
58
    }
59
 
59
 
-
 
60
    // Added to Java 9
-
 
61
    public static final Redirect DISCARD = Redirect.to(StreamUtils.NULL_FILE);
-
 
62
 
60
    static public final ProcessBuilder redirect(final ProcessBuilder pb) throws IOException {
63
    static public final ProcessBuilder redirect(final ProcessBuilder pb) throws IOException {
61
        return pb.redirectErrorStream(true).redirectOutput(Redirect.INHERIT);
64
        return pb.redirectErrorStream(true).redirectOutput(Redirect.INHERIT);
62
    }
65
    }
63
 
66
 
64
    static public final Process handle(final Process p, final Action action) throws IOException {
67
    static public final Process handle(final Process p, final Action action) throws IOException {