hudson.plugins.jacoco
Class JacocoReportDir

java.lang.Object
  extended by hudson.plugins.jacoco.JacocoReportDir

public class JacocoReportDir
extends Object

Encapsulates the directory structure in $JENKINS_HOME where we store jacoco related files.

Author:
Kohsuke Kawaguchi

Constructor Summary
JacocoReportDir(hudson.model.AbstractBuild<?,?> build)
           
 
Method Summary
 void addExecFiles(Iterable<hudson.FilePath> execFiles)
           
 File getClassesDir()
          Where we store *.class files, honoring package names as directories.
 List<File> getExecFiles()
          Lists up existing jacoco.exec files.
 File getExecFilesDir()
          Root directory that stores jacoco.exec files.
 File getSourcesDir()
          Where we store *.java files, honoring package names as directories.
 ExecutionFileLoader parse(String[] includes, String[] excludes)
          Parses the saved "jacoco.exec" files into an ExecutionFileLoader.
 void saveClassesFrom(hudson.FilePath dir)
           
 void saveSourcesFrom(hudson.FilePath dir)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JacocoReportDir

public JacocoReportDir(hudson.model.AbstractBuild<?,?> build)
Method Detail

getClassesDir

public File getClassesDir()
Where we store *.class files, honoring package names as directories.


saveClassesFrom

public void saveClassesFrom(hudson.FilePath dir)
                     throws IOException,
                            InterruptedException
Throws:
IOException
InterruptedException

getSourcesDir

public File getSourcesDir()
Where we store *.java files, honoring package names as directories.


saveSourcesFrom

public void saveSourcesFrom(hudson.FilePath dir)
                     throws IOException,
                            InterruptedException
Throws:
IOException
InterruptedException

getExecFilesDir

public File getExecFilesDir()
Root directory that stores jacoco.exec files. Each exec file is stored in its own directory.

See Also:
getExecFiles()

getExecFiles

public List<File> getExecFiles()
Lists up existing jacoco.exec files.


addExecFiles

public void addExecFiles(Iterable<hudson.FilePath> execFiles)
                  throws IOException,
                         InterruptedException
Throws:
IOException
InterruptedException

parse

public ExecutionFileLoader parse(String[] includes,
                                 String[] excludes)
                          throws IOException
Parses the saved "jacoco.exec" files into an ExecutionFileLoader.

Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2014 Hudson. All Rights Reserved.