service messages lib updated

This commit is contained in:
Roman Chernyatchik
2011-04-29 15:45:51 +04:00
parent eb57fe5fc8
commit 82c7e89ac7
4 changed files with 5 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -215,7 +215,8 @@ public class OutputToGeneralTestEventsConverter implements ProcessOutputConsumer
protected boolean processServiceMessages(final String text,
final Key outputType,
final ServiceMessageVisitor visitor) throws ParseException {
final ServiceMessage message = ServiceMessage.parse(text);
// service message parser expects line like "##teamcity[ .... ]" without whitespaces in the end.
final ServiceMessage message = ServiceMessage.parse(text.trim());
if (message != null) {
message.visit(visitor);
}
@@ -421,6 +422,9 @@ public class OutputToGeneralTestEventsConverter implements ProcessOutputConsumer
}
public void visitTestStarted(@NotNull final TestStarted testStarted) {
// TODO
// final String locationUrl = testStarted.getLocationHint();
final String locationUrl = testStarted.getAttributes().get(ATTR_KEY_LOCATION_URL);
fireOnTestStarted(testStarted.getTestName(), locationUrl);
}