public class XmlUtils extends Object
| Constructor and Description |
|---|
XmlUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<Element> |
getChildrenElements(Element element,
String childElementName) |
static List<Element> |
getExecutionEvents(Element mavenSpyLogs,
String... expectedType) |
static List<Element> |
getExecutionEvents(Element mavenSpyLogs,
String pluginGroupId,
String pluginArtifactId,
String pluginGoal) |
static String |
getFileSeparatorOnRemote(hudson.FilePath filePath)
Return the File separator "/" or "\" that is effective on the remote agent.
|
static String |
getPathInWorkspace(String absoluteFilePath,
hudson.FilePath workspace) |
static String |
getProjectBuildDirectory(Element projectElt) |
static Element |
getUniqueChildElement(Element element,
String childElementName) |
static Element |
getUniqueChildElementOrNull(Element element,
String... childElementName) |
static String |
join(Iterable<String> elements,
String delimiter)
Concatenate the given
elements using the given delimiter to concatenate. |
static MavenSpyLogProcessor.MavenArtifact |
newMavenArtifact(Element artifactElt) |
static MavenSpyLogProcessor.PluginInvocation |
newPluginInvocation(Element pluginInvocationElt) |
static String |
toString(Node node) |
public static MavenSpyLogProcessor.MavenArtifact newMavenArtifact(Element artifactElt)
public static MavenSpyLogProcessor.PluginInvocation newPluginInvocation(Element pluginInvocationElt)
@Nonnull public static Element getUniqueChildElement(@Nonnull Element element, @Nonnull String childElementName)
@Nullable public static Element getUniqueChildElementOrNull(@Nonnull Element element, String... childElementName)
@Nonnull public static List<Element> getChildrenElements(@Nonnull Element element, @Nonnull String childElementName)
@Nonnull public static List<Element> getExecutionEvents(@Nonnull Element mavenSpyLogs, String... expectedType)
@Nonnull public static List<Element> getExecutionEvents(@Nonnull Element mavenSpyLogs, String pluginGroupId, String pluginArtifactId, String pluginGoal)
@Nonnull public static String getPathInWorkspace(@Nonnull String absoluteFilePath, @Nonnull hudson.FilePath workspace)
@Nonnull public static String getFileSeparatorOnRemote(@Nonnull hudson.FilePath filePath)
filePath - @Nullable public static String getProjectBuildDirectory(@Nonnull Element projectElt)
projectElt - project/build/@directory"Copyright © 2016–2017. All rights reserved.