public class IpLogGenerator extends Object
Constructor and Description |
---|
IpLogGenerator()
Create an empty generator.
|
Modifier and Type | Method and Description |
---|---|
void |
scan(Repository repo,
RevCommit startCommit,
String version)
Scan a Git repository's history to compute the changes within it.
|
void |
setCharacterEncoding(String encodingName)
Set the character encoding used to write the output file.
|
void |
writeTo(OutputStream out)
Dump the scanned information into an XML file.
|
public void setCharacterEncoding(String encodingName)
encodingName
- the character set encoding name.public void scan(Repository repo, RevCommit startCommit, String version) throws IOException, ConfigInvalidException
repo
- the repository to scan.startCommit
- commit the IP log is needed for.version
- symbolic label for the version.IOException
- the repository cannot be read.ConfigInvalidException
- the .eclipse_iplog
file present at the top level of
startId
is not a valid configuration file.public void writeTo(OutputStream out) throws IOException
out
- the file stream to write to. The caller is responsible for
closing the stream upon completion.IOException
- the stream cannot be written.Copyright © 2012. All Rights Reserved.