public class LocalScmMetadataUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FILENAME
The name of the metadata file
|
protected ScmLogger |
logger |
Constructor and Description |
---|
LocalScmMetadataUtils(ScmLogger logger) |
Modifier and Type | Method and Description |
---|---|
LocalScmMetadata |
buildMetadata(File repository)
Builds LocalScmMetadata based on contents of repository
|
LocalScmMetadata |
readMetadata(File dir)
Reads metadata file from given directory.
|
void |
writeMetadata(File destinationDir,
LocalScmMetadata metadata)
Writes metadata file
|
public static final String FILENAME
public LocalScmMetadataUtils(ScmLogger logger)
public LocalScmMetadata buildMetadata(File repository) throws IOException
repository
- IOException
- if anypublic void writeMetadata(File destinationDir, LocalScmMetadata metadata) throws IOException
destinationDir
- metadata
- IOException
- if anypublic LocalScmMetadata readMetadata(File dir)
dir
- The directory that should contain the metadata fileCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.