Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uaaltools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
universAAL
uaaltools
Commits
c1f24c80
Commit
c1f24c80
authored
13 years ago
by
Konstantinos Giannoutakis
Browse files
Options
Downloads
Patches
Plain Diff
redirect output to default console
parent
a60a72db
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build/org.universaal.tools.buildPlugin/src/org/universaal/tools/buildserviceapplication/StartupClass.java
+16
-1
16 additions, 1 deletion
...niversaal/tools/buildserviceapplication/StartupClass.java
with
16 additions
and
1 deletion
build/org.universaal.tools.buildPlugin/src/org/universaal/tools/buildserviceapplication/StartupClass.java
+
16
−
1
View file @
c1f24c80
...
...
@@ -4,9 +4,13 @@ import java.io.File;
import
java.io.FileOutputStream
;
import
java.io.InputStream
;
import
java.io.OutputStream
;
import
java.io.PrintStream
;
import
org.eclipse.core.resources.ResourcesPlugin
;
import
org.eclipse.ui.IStartup
;
import
org.eclipse.ui.console.ConsolePlugin
;
import
org.eclipse.ui.console.IConsole
;
import
org.eclipse.ui.console.MessageConsole
;
import
org.eclipse.ui.console.MessageConsoleStream
;
public
class
StartupClass
implements
IStartup
{
...
...
@@ -34,5 +38,16 @@ public class StartupClass implements IStartup {
ex
.
printStackTrace
();
}
}
//redirect output to default console
MessageConsole
console
=
new
MessageConsole
(
"My Console"
,
null
);
console
.
activate
();
ConsolePlugin
.
getDefault
().
getConsoleManager
().
addConsoles
(
new
IConsole
[]{
console
});
MessageConsoleStream
stream
=
console
.
newMessageStream
();
System
.
setOut
(
new
PrintStream
(
stream
));
System
.
setErr
(
new
PrintStream
(
stream
));
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment