Package org.sonar.api.batch.scm

Examples of org.sonar.api.batch.scm.BlameLine.date()


          String author = StringUtils.trimToNull(fields[1]);
          BlameLine blameLine = new BlameLine().revision(revision).author(author);
          String dateStr = StringUtils.trimToNull(fields[2]);
          // Will throw an exception, when date is not in format "yyyy-MM-dd"
          if (dateStr != null) {
            blameLine.date(DateUtils.parseDate(dateStr));
          }
          blame.add(blameLine);
        }
      }
      result.blameResult(inputFile, blame);
View Full Code Here


      BlameLine oldLine = commitInfo.get(revision);

      if (oldLine != null) {
        // restore the commit info
        author = oldLine.author();
        time = oldLine.date();
      }

      expectRevisionLine = false;
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.