public class LocalScmMetadataUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FILENAME
The name of the metadata file
|
Constructor and Description |
---|
LocalScmMetadataUtils() |
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()
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 filenull
in case of problemsCopyright © 2003–2024 The Apache Software Foundation. All rights reserved.