public class ReleaseUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LS
The line separator to use.
|
static String |
POMv4 |
static String |
RELEASE_POMv4 |
Modifier and Type | Method and Description |
---|---|
static ReleaseDescriptor |
createBasedirAlignedReleaseDescriptor(ReleaseDescriptor releaseDescriptor,
List<org.apache.maven.project.MavenProject> reactorProjects) |
static int |
getBaseWorkingDirectoryParentCount(Path baseDirectory,
Path workingDirectory) |
static File |
getReleasePom(org.apache.maven.project.MavenProject project) |
static org.apache.maven.project.MavenProject |
getRootProject(List<org.apache.maven.project.MavenProject> reactorProjects) |
static File |
getStandardPom(org.apache.maven.project.MavenProject project) |
static String |
interpolate(String value,
org.apache.maven.model.Model model) |
static String |
normalizeLineEndings(String text,
String separator)
Normalizes the line separators in the specified string.
|
static String |
readXmlFile(File file)
Gets the string contents of the specified XML file.
|
static String |
readXmlFile(File file,
String ls) |
static String |
realignScmUrl(int parentLevels,
String url) |
public static final String RELEASE_POMv4
public static final String POMv4
public static final String LS
public static org.apache.maven.project.MavenProject getRootProject(List<org.apache.maven.project.MavenProject> reactorProjects)
public static File getStandardPom(org.apache.maven.project.MavenProject project)
public static File getReleasePom(org.apache.maven.project.MavenProject project)
public static String readXmlFile(File file) throws IOException
file
- The path to the XML file to read in, must not be null
.IOException
- If the file could not be opened/read.public static String readXmlFile(File file, String ls) throws IOException
IOException
public static String normalizeLineEndings(String text, String separator)
text
- The string to normalize, may be null
.separator
- The line separator to use for normalization, typically "\n" or "\r\n", must not be
null
.null
if the string was null
.public static ReleaseDescriptor createBasedirAlignedReleaseDescriptor(ReleaseDescriptor releaseDescriptor, List<org.apache.maven.project.MavenProject> reactorProjects) throws ReleaseExecutionException
ReleaseExecutionException
public static int getBaseWorkingDirectoryParentCount(Path baseDirectory, Path workingDirectory)
public static String interpolate(String value, org.apache.maven.model.Model model) throws ReleaseExecutionException
ReleaseExecutionException
Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.