File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
test/src/com/rabbitmq/tools Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 20
20
import com .rabbitmq .client .impl .NetworkConnection ;
21
21
22
22
import java .io .BufferedReader ;
23
+ import java .io .File ;
23
24
import java .io .IOException ;
24
25
import java .io .InputStream ;
25
26
import java .io .InputStreamReader ;
@@ -101,7 +102,11 @@ public static Process rabbitmqctlIgnoreErrors(String command) throws IOException
101
102
}
102
103
103
104
public static Process invokeMakeTarget (String command ) throws IOException {
104
- return executeCommand ("cd " + rabbitmqTestDir () + "; " + makeCommand () + " " + command );
105
+ File rabbitmqctl = new File (rabbitmqctlCommand ());
106
+ return executeCommand (makeCommand () +
107
+ " -C \' " + rabbitmqTestDir () + "\' " +
108
+ " RABBITMQCTL=\' " + rabbitmqctl .getAbsolutePath () + "\' " +
109
+ " " + command );
105
110
}
106
111
107
112
private static String makeCommand ()
You can’t perform that action at this time.
0 commit comments