Class XmlFileMacro
java.lang.Object
org.jenkinsci.plugins.tokenmacro.TokenMacro
org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacro
org.jenkinsci.plugins.tokenmacro.WorkspaceDependentMacro
org.jenkinsci.plugins.tokenmacro.impl.XmlFileMacro
- All Implemented Interfaces:
- ExtensionPoint
Expands to a xml value(s) from a xml file relative to the workspace root.
 If xpath evaluates to more than one value then a semicolon separted string is returned.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacroDataBoundTokenMacro.ParameterNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFieldsFields inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacroescapeHtml
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanacceptsMacroName(String macroName) Returns true if this object can evaluate the macro of the given name.evaluate(AbstractBuild<?, ?> context, TaskListener listener, String macroName) hudson.remoting.Callable<String,IOException> getCallable(Run<?, ?> run, String root, TaskListener listener) Methods inherited from class org.jenkinsci.plugins.tokenmacro.WorkspaceDependentMacroevaluateMethods inherited from class org.jenkinsci.plugins.tokenmacro.DataBoundTokenMacroevaluate, evaluate, handlesHtmlEscapeInternally, hasNestedContentMethods inherited from class org.jenkinsci.plugins.tokenmacro.TokenMacroall, expand, expand, expand, expand, expandAll, expandAll, expandAll, expandAll, getAutoCompleteList, getPreviousRun, getWorkspace
- 
Field Details- 
LOGGER
- 
file
- 
xpath
 
- 
- 
Constructor Details- 
XmlFileMacropublic XmlFileMacro()
 
- 
- 
Method Details- 
acceptsMacroNameDescription copied from class:TokenMacroReturns true if this object can evaluate the macro of the given name.- Overrides:
- acceptsMacroNamein class- WorkspaceDependentMacro
- Parameters:
- macroName- By convention we encourage all caps name.
- Returns:
- true
      ... to claim the macro of the given name and have TokenMacro.evaluate(AbstractBuild, TaskListener, String, Map, ListMultimap)called.
 
- 
getAcceptedMacroNames- Overrides:
- getAcceptedMacroNamesin class- TokenMacro
 
- 
evaluatepublic String evaluate(AbstractBuild<?, ?> context, TaskListener listener, String macroName) throws MacroEvaluationException, IOException, InterruptedException- Overrides:
- evaluatein class- WorkspaceDependentMacro
- Throws:
- MacroEvaluationException
- IOException
- InterruptedException
 
- 
getCallablepublic hudson.remoting.Callable<String,IOException> getCallable(Run<?, ?> run, String root, TaskListener listener) - Specified by:
- getCallablein class- WorkspaceDependentMacro
 
 
-