public class JellyUtils
extends java.lang.Object
| Constructor and Description |
|---|
JellyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
compareContexts(MavenJellyContext ctx1,
MavenJellyContext ctx2)
Debugging function to show the differences between two Jelly contexts.
|
static org.apache.commons.jelly.Script |
compileScript(java.io.File scriptFile,
org.apache.commons.jelly.JellyContext context)
Compile a jelly script.
|
static org.apache.commons.jelly.Script |
compileScript(java.io.InputStream scriptInputStream,
org.apache.commons.jelly.JellyContext context)
Compile a jelly script.
|
static org.apache.commons.jelly.Script |
compileScript(java.io.InputStream scriptInputStream,
java.lang.String systemId,
org.apache.commons.jelly.JellyContext context)
Compile a jelly script.
|
static org.apache.commons.jelly.Script |
compileScript(java.io.InputStream scriptInputStream,
java.lang.String systemId,
org.apache.commons.jelly.JellyContext context,
java.lang.String encoding)
Compile a jelly script.
|
static org.apache.commons.jelly.expression.Expression |
decomposeExpression(java.lang.String text,
org.apache.commons.jelly.JellyContext context)
Recursively evaluate a string representation of a jelly expression.
|
static void |
populateVariables(org.apache.commons.jelly.JellyContext destContext,
org.apache.commons.jelly.JellyContext sourceContext)
Populate a context with variables, including parent variables if inheritance is enabled.
|
static void |
runScript(java.io.File scriptFile,
java.net.URL rootUrl,
org.apache.commons.jelly.JellyContext context,
org.apache.commons.jelly.XMLOutput output)
Run a jelly script.
|
static void |
runScript(java.io.InputStream scriptInputStream,
java.lang.String systemId,
java.net.URL rootUrl,
org.apache.commons.jelly.JellyContext context,
org.apache.commons.jelly.XMLOutput output)
Run a jelly script.
|
static void |
runScript(java.io.InputStream scriptInputStream,
java.net.URL rootUrl,
org.apache.commons.jelly.JellyContext context,
org.apache.commons.jelly.XMLOutput output)
Run a jelly script.
|
public static void runScript(java.io.InputStream scriptInputStream,
java.net.URL rootUrl,
org.apache.commons.jelly.JellyContext context,
org.apache.commons.jelly.XMLOutput output)
throws java.lang.Exception
scriptInputStream - Script input stream.rootUrl - Root explicit context of the script.context - Jelly context.output - Output sink.java.lang.Exception - If an error occurs while locating, compiling or
executing the script.public static void runScript(java.io.InputStream scriptInputStream,
java.lang.String systemId,
java.net.URL rootUrl,
org.apache.commons.jelly.JellyContext context,
org.apache.commons.jelly.XMLOutput output)
throws java.lang.Exception
scriptInputStream - Script input stream.systemId - the system identifier to help resolve relative URLsrootUrl - Root explicit context of the script.context - Jelly context.output - Output sink.java.lang.Exception - If an error occurs while locating, compiling or
executing the script.public static void runScript(java.io.File scriptFile,
java.net.URL rootUrl,
org.apache.commons.jelly.JellyContext context,
org.apache.commons.jelly.XMLOutput output)
throws java.lang.Exception
scriptFile - Location of the script to run.rootUrl - Root explicit context of the script.context - Jelly context.output - Output sink.java.lang.Exception - If an error occurs while locating, compiling or
executing the script.public static org.apache.commons.jelly.Script compileScript(java.io.File scriptFile,
org.apache.commons.jelly.JellyContext context)
throws java.lang.Exception
scriptFile - Location of the script to run.context - Jelly context.java.lang.Exception - If an error occurs while locating or compiling the
script.public static org.apache.commons.jelly.Script compileScript(java.io.InputStream scriptInputStream,
org.apache.commons.jelly.JellyContext context)
throws java.lang.Exception
scriptInputStream - Script input stream.context - Jelly context.java.lang.Exception - If an error occurs while locating or compiling the
script.public static org.apache.commons.jelly.Script compileScript(java.io.InputStream scriptInputStream,
java.lang.String systemId,
org.apache.commons.jelly.JellyContext context)
throws java.lang.Exception
scriptInputStream - Script input stream.systemId - the system identifier to help resolve relative URLscontext - Jelly context.java.lang.Exception - If an error occurs while locating or compiling the
script.public static org.apache.commons.jelly.Script compileScript(java.io.InputStream scriptInputStream,
java.lang.String systemId,
org.apache.commons.jelly.JellyContext context,
java.lang.String encoding)
throws java.lang.Exception
scriptInputStream - Script input stream.systemId - the system identifier to help resolve relative URLscontext - Jelly context.encoding - To use when reading XML.java.lang.Exception - If an error occurs while locating or compiling the
script.public static org.apache.commons.jelly.expression.Expression decomposeExpression(java.lang.String text,
org.apache.commons.jelly.JellyContext context)
text - String representation of the a Jelly expression.context - The Jelly context to compute the expression against.public static void compareContexts(MavenJellyContext ctx1, MavenJellyContext ctx2)
ctx1 - first contextctx2 - second contextpublic static void populateVariables(org.apache.commons.jelly.JellyContext destContext,
org.apache.commons.jelly.JellyContext sourceContext)
destContext - the destination contextsourceContext - the source contextCopyright © 2001-2013 Apache Software Foundation. All Rights Reserved.