Class LastReleasePomFileReader
- java.lang.Object
-
- com.exasol.projectkeeper.validators.changesfile.LastReleasePomFileReader
-
public class LastReleasePomFileReader extends Object
This class reads the pom file of the latest previous release on the current branch.
-
-
Constructor Summary
Constructors Constructor Description LastReleasePomFileReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Path>extractLatestReleasesPomFile(Path projectDirectory, Path relativePathToPom, String currentVersion, Path targetDirectory)Copy pom.xml file from a give git tag to another directory.
-
-
-
Method Detail
-
extractLatestReleasesPomFile
public Optional<Path> extractLatestReleasesPomFile(Path projectDirectory, Path relativePathToPom, String currentVersion, Path targetDirectory)
Copy pom.xml file from a give git tag to another directory. If the pom file specifies a parent with relative path, this method extracts it too.- Parameters:
projectDirectory- projects root directoryrelativePathToPom- path to the pom file to extract (relative to theprojectDirectory)currentVersion- version (git tag) to read the file attargetDirectory- directory to write the files to- Returns:
trueif the specified pom file was found
-
-