Class LastReleasePomFileReader
java.lang.Object
com.exasol.projectkeeper.validators.changesfile.LastReleasePomFileReader
This class reads the pom file including its parent POMs of the latest previous release on the current branch.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LastReleasePomFileReader
public LastReleasePomFileReader()
-
-
Method Details
-
extractLatestReleasesPomFile
public Optional<Path> extractLatestReleasesPomFile(Path projectDirectory, Path relativePathToPom, String currentVersion, Path targetDirectory) Copypom.xmlfile from a given git release 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
-