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 java.io.File;
23 import java.util.Map;
24
25 import org.apache.continuum.utils.shell.ExecutionResult;
26 import org.apache.maven.shared.release.ReleaseResult;
27
28
29
30
31
32 public interface ShellCommandHelper
33 {
34 String ROLE = ShellCommandHelper.class.getName();
35
36 ExecutionResult executeShellCommand( File workingDirectory, String executable, String arguments, File output,
37 long idCommand, Map<String, String> environments )
38 throws Exception;
39
40 ExecutionResult executeShellCommand( File workingDirectory, String executable, String[] arguments, File output,
41 long idCommand, Map<String, String> environments )
42 throws Exception;
43
44 boolean isRunning( long idCommand );
45
46 void killProcess( long idCommand );
47
48 void executeGoals( File workingDirectory, String executable, String goals, boolean interactive, String arguments,
49 ReleaseResult relResult, Map<String, String> environments )
50 throws Exception;
51
52 void executeGoals( File workingDirectory, String executable, String goals, boolean interactive, String[] arguments,
53 ReleaseResult relResult, Map<String, String> environments )
54 throws Exception;
55 }