Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. public void decorate(Resource resource, DecoratorContext context) {
  2. if(Qualifiers.isFile(resource)){
  3. Measure m=context.getMeasure(CoreMetrics.NCLOC);
  4. LOG.info("Decorator File NCLOC: "+m.getValue()); //Prints the number of lines in the current file.
  5. }
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement