|
52 | 52 | import org.eclipse.core.runtime.jobs.IJobChangeEvent; |
53 | 53 | import org.eclipse.core.runtime.jobs.Job; |
54 | 54 | import org.eclipse.core.runtime.jobs.JobChangeAdapter; |
| 55 | +import org.eclipse.debug.ui.IDebugUIConstants; |
| 56 | +import org.eclipse.debug.ui.console.ConsoleColorProvider; |
55 | 57 | import org.eclipse.jface.dialogs.MessageDialog; |
56 | 58 | import org.eclipse.jface.window.Window; |
57 | 59 | import org.eclipse.swt.widgets.Shell; |
@@ -134,23 +136,28 @@ private void launchDeployJob(IProject project, Credential credential) |
134 | 136 | AnalyticsPingManager.getInstance().sendPing( |
135 | 137 | AnalyticsEvents.APP_ENGINE_DEPLOY, AnalyticsEvents.APP_ENGINE_DEPLOY_STANDARD, null); |
136 | 138 |
|
| 139 | + IPath workDirectory = createWorkDirectory(); |
137 | 140 | DeployPreferences deployPreferences = new DeployPreferences(project); |
| 141 | + DefaultDeployConfiguration deployConfiguration = toDeployConfiguration(deployPreferences); |
| 142 | + boolean includeOptionalConfigurationFiles = |
| 143 | + deployPreferences.isIncludeOptionalConfigurationFiles(); |
| 144 | + |
138 | 145 | DeployConsole messageConsole = |
139 | 146 | MessageConsoleUtilities.createConsole(getConsoleName(deployPreferences.getProjectId()), |
140 | 147 | new DeployConsole.Factory()); |
141 | 148 | IConsoleManager consoleManager = ConsolePlugin.getDefault().getConsoleManager(); |
142 | 149 | consoleManager.showConsoleView(messageConsole); |
143 | | - |
144 | | - IPath workDirectory = createWorkDirectory(); |
| 150 | + ConsoleColorProvider colorProvider = new ConsoleColorProvider(); |
145 | 151 | MessageConsoleStream outputStream = messageConsole.newMessageStream(); |
146 | | - DefaultDeployConfiguration deployConfiguration = toDeployConfiguration(deployPreferences); |
147 | | - boolean includeOptionalConfigurationFiles = |
148 | | - deployPreferences.isIncludeOptionalConfigurationFiles(); |
| 152 | + MessageConsoleStream errorStream = messageConsole.newMessageStream(); |
| 153 | + outputStream.setColor(colorProvider.getColor(IDebugUIConstants.ID_STANDARD_OUTPUT_STREAM)); |
| 154 | + errorStream.setColor(colorProvider.getColor(IDebugUIConstants.ID_STANDARD_ERROR_STREAM)); |
| 155 | + |
149 | 156 | StagingDelegate stagingDelegate = getStagingDelegate(project); |
150 | 157 |
|
151 | 158 | DeployJob deploy = new DeployJob(project, credential, workDirectory, |
152 | 159 | new MessageConsoleWriterOutputLineListener(outputStream), |
153 | | - new MessageConsoleWriterOutputLineListener(outputStream), |
| 160 | + new MessageConsoleWriterOutputLineListener(errorStream), |
154 | 161 | deployConfiguration, includeOptionalConfigurationFiles, stagingDelegate); |
155 | 162 | messageConsole.setJob(deploy); |
156 | 163 | deploy.addJobChangeListener(new JobChangeAdapter() { |
|
0 commit comments