@@ -27,7 +27,8 @@ public static ExecResult exec(String command, boolean isRedirectToOut) throws Ex
27
27
return exec (command , isRedirectToOut , null );
28
28
}
29
29
30
- public static ExecResult exec (String command , boolean isRedirectToOut , Map <String ,String > additionalEnvMap )
30
+ public static ExecResult exec (
31
+ String command , boolean isRedirectToOut , Map <String , String > additionalEnvMap )
31
32
throws Exception {
32
33
33
34
Process p = null ;
@@ -77,16 +78,17 @@ public static ExecResult exec(String command, boolean isRedirectToOut, Map<Strin
77
78
78
79
/**
79
80
* Generate a string array of name=value items, one for each env map entry.
81
+ *
80
82
* @return
81
83
*/
82
- private static String [] generateNameValueArrayFromMap (Map <String , String > map ) {
84
+ private static String [] generateNameValueArrayFromMap (Map <String , String > map ) {
83
85
int mapSize = map .size ();
84
- String [] strArrary = new String [mapSize ];
86
+ String [] strArray = new String [mapSize ];
85
87
int i = 0 ;
86
- for (Map .Entry <String ,String > entry : map .entrySet ()) {
87
- strArrary [i ++] = entry .getKey () + "=" + entry .getValue ();
88
+ for (Map .Entry <String , String > entry : map .entrySet ()) {
89
+ strArray [i ++] = entry .getKey () + "=" + entry .getValue ();
88
90
}
89
- return strArrary ;
91
+ return strArray ;
90
92
}
91
93
92
94
private static String read (InputStream is ) throws Exception {
0 commit comments