execute(form.format(arguments), "Start Apache: ");
}
- public void execute(String command, String consoleMessage) {
+ public static String execute(String command, String consoleMessage) {
// MessageDialog.openInformation(activeWindow.getShell(), "Exec command: ", command);
try {
PHPConsole.write(consoleMessage+command+"\n");
// gets the input stream to have the post-compile-time information
InputStream stream = p.getInputStream();
- // and get the string from it
- String compilerOutput = PHPConsole.getStringFromStream(stream);
+ // get the string from Stream
+ String consoleOutput = PHPConsole.getStringFromStream(stream);
// prints out the information
- PHPConsole.write(compilerOutput);
-
- // parse the buffer to find the errors and create markers
- // createMarkers(compilerOutput, fileToCompile);
+ PHPConsole.write(consoleOutput);
+ return consoleOutput;
} catch (IOException e) {
- // @todo should throw the exception again
+
System.err.println("Problem");
e.printStackTrace();
-// } catch (CoreException e) {
-// e.printStackTrace();
-// // @todo do something here !
+
}
+ return "";
}
public void selectionChanged(IAction action, ISelection selection) {