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<MavenProject> reactorProjects) |
static int |
getBaseWorkingDirectoryParentCount(Path baseDirectory,
Path workingDirectory) |
static File |
getReleasePom(MavenProject project) |
static MavenProject |
getRootProject(List<MavenProject> reactorProjects) |
static File |
getStandardPom(MavenProject project) |
static String |
interpolate(String value,
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 MavenProject getRootProject(List<MavenProject> reactorProjects)
public static File getStandardPom(MavenProject project)
public static File getReleasePom(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<MavenProject> reactorProjects) throws ReleaseExecutionException
ReleaseExecutionException
public static int getBaseWorkingDirectoryParentCount(Path baseDirectory, Path workingDirectory)
public static String interpolate(String value, Model model) throws ReleaseExecutionException
ReleaseExecutionException
Copyright © 2002–2019 The Apache Software Foundation. All rights reserved.