-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade melange 01 2018 (eclipse-gemoc/gemoc-studio#48)
Update to latest melange and fix test suites * [Releng] Change Melange update site to 2018-01-19 build * use new location of nebula update site * update fsm sample with latest melange * wipeout workspace befor building * try to get more log on test failure * makes manifest changer more robust contributes to #25 and diverse-project/melange#105 * studio in using oxygen.2 * improve jenkins file - keep only one artefact per branch* - set periodic pipeline check * tee stdout and stderr to for the standard output and to console see #49 * add helper.setTargetPlatform in test that fail randomly * add launch conf in order to ease test devs * disable concurrent builds
- Loading branch information
Showing
3 changed files
with
134 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
...ain/java/org/eclipse/gemoc/commons/eclipse/messagingsystem/ui/helper/TeeOutputStream.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2018 Inria and others. | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
* | ||
* Contributors: | ||
* Inria - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.gemoc.commons.eclipse.messagingsystem.ui.helper; | ||
|
||
import java.io.IOException; | ||
import java.io.OutputStream; | ||
|
||
public final class TeeOutputStream extends OutputStream { | ||
|
||
private final OutputStream out; | ||
private final OutputStream tee; | ||
|
||
public TeeOutputStream(OutputStream out, OutputStream tee) { | ||
if (out == null) | ||
throw new NullPointerException(); | ||
else if (tee == null) | ||
throw new NullPointerException(); | ||
|
||
this.out = out; | ||
this.tee = tee; | ||
} | ||
|
||
@Override | ||
public void write(int b) throws IOException { | ||
out.write(b); | ||
tee.write(b); | ||
} | ||
|
||
@Override | ||
public void write(byte[] b) throws IOException { | ||
out.write(b); | ||
tee.write(b); | ||
} | ||
|
||
@Override | ||
public void write(byte[] b, int off, int len) throws IOException { | ||
out.write(b, off, len); | ||
tee.write(b, off, len); | ||
} | ||
|
||
@Override | ||
public void flush() throws IOException { | ||
out.flush(); | ||
tee.flush(); | ||
} | ||
|
||
@Override | ||
public void close() throws IOException { | ||
out.close(); | ||
tee.close(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters