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(String basedir,
String workingDirectory) |
static String |
getCommonBasedir(List<MavenProject> reactorProjects) |
static String |
getCommonBasedir(List<MavenProject> reactorProjects,
String separator) |
static File |
getReleasePom(MavenProject project) |
static MavenProject |
getRootProject(List<MavenProject> reactorProjects) |
static File |
getStandardPom(MavenProject project) |
static String |
interpolate(String value,
Model model) |
static boolean |
isSymlink(File file) |
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
IOExceptionpublic 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
ReleaseExecutionExceptionpublic static String getCommonBasedir(List<MavenProject> reactorProjects) throws IOException
IOExceptionpublic static String getCommonBasedir(List<MavenProject> reactorProjects, String separator) throws IOException
IOExceptionpublic static int getBaseWorkingDirectoryParentCount(String basedir, String workingDirectory)
public static boolean isSymlink(File file) throws IOException
IOExceptionpublic static String interpolate(String value, Model model) throws ReleaseExecutionException
ReleaseExecutionExceptionCopyright © 2002–2015 The Apache Software Foundation. All rights reserved.