protected void consumeStreams(final Exec exec) {
		if (page != null) {
			page.getWorkbenchWindow().getShell().getDisplay().asyncExec(new Runnable() {

				@Override
				public void run() {
					try {
						GruntConsoleView view = (GruntConsoleView) page.showView(
								GruntConsoleView.VIEW_ID, task, IWorkbenchPage.VIEW_ACTIVATE);
						view.setInputStream(exec.getProcess().getInputStream());
						view.setErrorStream(exec.getProcess().getErrorStream());
						view.setViewTitle("Grunt: " + task);
					} catch (PartInitException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}

			});
		}
	}