1 package org.apache.continuum.utils.shell;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.shared.release.ReleaseResult;
23
24 import java.io.File;
25 import java.util.Map;
26
27
28
29
30
31 public interface ShellCommandHelper
32 {
33 String ROLE = ShellCommandHelper.class.getName();
34
35 ExecutionResult executeShellCommand( File workingDirectory, String executable, String arguments, File output,
36 long idCommand, Map<String, String> environments )
37 throws Exception;
38
39 ExecutionResult executeShellCommand( File workingDirectory, String executable, String[] arguments, File output,
40 long idCommand, Map<String, String> environments )
41 throws Exception;
42
43 boolean isRunning( long idCommand );
44
45 void killProcess( long idCommand );
46
47 void executeGoals( File workingDirectory, String executable, String goals, boolean interactive, String arguments,
48 ReleaseResult relResult, Map<String, String> environments )
49 throws Exception;
50
51 void executeGoals( File workingDirectory, String executable, String goals, boolean interactive, String[] arguments,
52 ReleaseResult relResult, Map<String, String> environments )
53 throws Exception;
54 }