@Override protected void eol(byte[] b, int len) throws IOException { String line = charset.decode(ByteBuffer.wrap(b, 0, len)).toString(); // trim off CR/LF from the end line = trimEOL(line); if (seenEmptyLine && endsWith(line,':') && line.indexOf(' ')<0) // put the annotation new AntTargetNote().encodeTo(out); if (line.equals("BUILD SUCCESSFUL") || line.equals("BUILD FAILED")) new AntOutcomeNote().encodeTo(out); seenEmptyLine = line.length()==0; out.write(b,0,len); }
AntConsoleAnnotator aca = new AntConsoleAnnotator(listener.getLogger(),build.getCharset()); int r; try { r = launcher.launch().cmds(args).envs(env).stdout(aca).pwd(buildFilePath.getParent()).join(); } finally { aca.forceEol();
@Override protected void eol(byte[] b, int len) throws IOException { String line = charset.decode(ByteBuffer.wrap(b, 0, len)).toString(); // trim off CR/LF from the end line = trimEOL(line); if (seenEmptyLine && endsWith(line,':') && line.indexOf(' ')<0) // put the annotation new AntTargetNote().encodeTo(out); if (line.equals("BUILD SUCCESSFUL") || line.equals("BUILD FAILED")) new AntOutcomeNote().encodeTo(out); seenEmptyLine = line.length()==0; out.write(b,0,len); }
AntConsoleAnnotator aca = new AntConsoleAnnotator(listener.getLogger(),build.getCharset()); int r; try { r = launcher.launch().cmds(args).envs(env).stdout(aca).pwd(buildFilePath.getParent()).join(); } finally { aca.forceEol();
@Override protected void eol(byte[] b, int len) throws IOException { String line = charset.decode(ByteBuffer.wrap(b, 0, len)).toString(); // trim off CR/LF from the end line = trimEOL(line); if (seenEmptyLine && endsWith(line,':') && line.indexOf(' ')<0) // put the annotation new AntTargetNote().encodeTo(out); if (line.equals("BUILD SUCCESSFUL") || line.equals("BUILD FAILED")) new AntOutcomeNote().encodeTo(out); seenEmptyLine = line.length()==0; out.write(b,0,len); }
AntConsoleAnnotator aca = new AntConsoleAnnotator(listener.getLogger(),build.getCharset()); int r; try { r = launcher.launch().cmds(args).envs(env).stdout(aca).pwd(buildFilePath.getParent()).join(); } finally { aca.forceEol();
@Override protected void eol(byte[] b, int len) throws IOException { String line = charset.decode(ByteBuffer.wrap(b, 0, len)).toString(); // trim off CR/LF from the end line = trimEOL(line); if (seenEmptyLine && endsWith(line, ':') && line.indexOf(' ') < 0) // put the annotation { new AntTargetNote().encodeTo(out); } if (line.equals("BUILD SUCCESSFUL") || line.equals("BUILD FAILED")) { new AntOutcomeNote().encodeTo(out); } seenEmptyLine = line.length() == 0; out.write(b, 0, len); }
AntConsoleAnnotator aca = new AntConsoleAnnotator(listener.getLogger(), build.getCharset()); int r; try { r = launcher.launch().cmds(args).envs(env).stdout(aca).pwd(buildFilePath.getParent()).join(); } finally { aca.forceEol();