Package aQute.bnd.make.coverage
Class CoverageResource
- java.lang.Object
-
- aQute.bnd.osgi.WriteResource
-
- aQute.bnd.make.coverage.CoverageResource
-
- All Implemented Interfaces:
Resource
,java.io.Closeable
,java.lang.AutoCloseable
public class CoverageResource extends WriteResource
Creates an XML Coverage report. This class can be used as a resource so the report is created only when the JAR is written.
-
-
Constructor Summary
Constructors Constructor Description CoverageResource(java.util.Collection<Clazz> testsuite, java.util.Collection<Clazz> service)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
lastModified()
static aQute.lib.tag.Tag
toTag(java.util.Map<Clazz.MethodDef,java.util.List<Clazz.MethodDef>> catalog)
void
write(java.io.OutputStream out)
-
Methods inherited from class aQute.bnd.osgi.WriteResource
buffer, close, getExtra, openInputStream, setExtra, size
-
-
-
-
Method Detail
-
lastModified
public long lastModified()
- Specified by:
lastModified
in interfaceResource
- Specified by:
lastModified
in classWriteResource
-
write
public void write(java.io.OutputStream out) throws java.io.IOException
- Specified by:
write
in interfaceResource
- Specified by:
write
in classWriteResource
- Throws:
java.io.IOException
-
toTag
public static aQute.lib.tag.Tag toTag(java.util.Map<Clazz.MethodDef,java.util.List<Clazz.MethodDef>> catalog)
-
-