blob: 833057a446e99341b81f23b8e0964f1001b5144b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package org.yocto.sdk.remotetools.wizards.bsp;
/**
* BSPThread that processes the output of "yocto-bsp list karch"
* @author ioana.grigoropol
*
*/
public class KernelArchGetter extends BSPThread{
public KernelArchGetter(String command) {
super(command);
}
@Override
protected String[] processLine(String line) {
if (line.contains(":"))
return new String[]{SUCCESS, ""};
line = line.replaceAll("^\\s+", "");
line = line.replaceAll("\\s+$", "");
return new String[]{SUCCESS, line};
}
}
|