public class MavenJellyContext
extends org.apache.commons.jelly.JellyContext
JellyContext.
This class simply provides hooks for accessing the jelly
run-time execution. Typical idiom simply includes adding
poor-man's-aspects (PMAs) to a JellyContext
an explicitly invoking the super-class implementation
of a given method.
| Constructor and Description |
|---|
MavenJellyContext()
Construct.
|
MavenJellyContext(MavenJellyContext parent)
Construct.
|
MavenJellyContext(java.net.URL rootContext)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.commons.jelly.JellyContext |
createChildContext()
Create a context with this as the parent
|
void |
display()
Display all maven variables
|
org.apache.tools.ant.Project |
getAntProject()
Get the ant project.
|
java.lang.Boolean |
getBoolean(java.lang.String key)
Convert a
String property to a
Boolean based on its contents. |
java.lang.Boolean |
getDebugOn()
Get the debug flag.
|
java.lang.Boolean |
getEmacsModeOn()
Get the emacs mode flag.
|
java.lang.String |
getMavenHome()
Get MavenSession home.
|
java.lang.String |
getMavenHomeLocal()
Get local maven home.
|
java.lang.Boolean |
getMavenJarOverride()
Get the flag indicating the use of the JAR overriding facility.
|
java.lang.String |
getMavenJarOverride(java.lang.String id)
Get the maven jar override value for a particular dependency.
|
java.lang.String |
getMavenRepoLocal()
Get the location of the local maven repository.
|
java.util.List |
getMavenRepoRemote()
Get the mavenRepoRemote attribute.
|
MavenSession |
getMavenSession()
Get the mavenSession attribute.
|
java.lang.Boolean |
getOnline()
Get the online flag.
|
java.lang.String |
getPluginsDir()
Get plugins location.
|
Project |
getProject()
Get the maven project.
|
java.lang.String |
getProxyHost()
Get the proxy host.
|
java.lang.String |
getProxyPassword()
Get the proxy password.
|
java.lang.String |
getProxyPort()
Get the proxy port.
|
java.lang.String |
getProxyUserName()
Get the proxy user name.
|
java.lang.Boolean |
getRemoteRepositoryEnabled()
Set flag indicating if the remote repository is enabled for use.
|
org.apache.commons.jelly.TagLibrary |
getTagLibrary(java.lang.String uri)
Retrieve a registered
TagLibrary by namespace URI. |
java.lang.String |
getUnpackedPluginsDir()
Get unpacked plugins location.
|
java.lang.String |
getUserPluginsDir()
Get user plugins location.
|
java.lang.Object |
getVariable(java.lang.String name)
Retrieve a variable.
|
WerkzProject |
getWerkzProject()
retrieve the werkz project object
|
org.apache.commons.jelly.XMLOutput |
getXMLOutput()
Get the jelly output sink.
|
void |
registerTagLibrary(java.lang.String namespaceURI,
java.lang.String className)
Register a new tag library.
|
void |
registerTagLibrary(java.lang.String uri,
org.apache.commons.jelly.TagLibrary taglib)
Register a new tag library.
|
void |
resolveRelativePaths(java.io.File basedir) |
void |
setAntProject(org.apache.tools.ant.Project antProject)
Set the ant project.
|
void |
setDebugOn(java.lang.Boolean debug)
Set the debug flag.
|
void |
setEmacsModeOn(java.lang.Boolean emacsModeOn)
Set the emacs mode flag.
|
void |
setMavenJarOverride(java.lang.Boolean mavenJarOverride)
Set the flag indicating the use of the JAR overriding facility.
|
void |
setMavenRepoLocal(java.lang.String mavenRepoLocal)
Set the location of the local maven repository.
|
void |
setMavenRepoRemotes(java.util.List mavenRepoRemote) |
void |
setMavenSession(MavenSession mavenSession)
Set the mavenSession attribute.
|
void |
setOnline(java.lang.Boolean online)
Set the online flag.
|
void |
setParent(org.apache.commons.jelly.JellyContext context) |
void |
setProject(Project project)
Set the maven project.
|
void |
setProxyHost(java.lang.String proxyHost)
Set the proxy host.
|
void |
setProxyPassword(java.lang.String proxyPassword)
Set the proxy password.
|
void |
setProxyPort(java.lang.String proxyPort)
Set the proxy port.
|
void |
setProxyUserName(java.lang.String proxyUserName)
Set the proxy user name.
|
void |
setRemoteRepositoryEnabled(java.lang.Boolean remoteRepositoryEnabled)
Set flag indicating if the remote repository is enabled for use.
|
void |
setWerkzProject(WerkzProject werkzProject)
retrieve the werkz project object
|
void |
setXMLOutput(org.apache.commons.jelly.XMLOutput xmlOutput)
Set the jelly output sink.
|
clear, clearVariables, compileScript, compileScript, compileScript, createRelativeURL, createXMLParser, findVariable, getClassLoader, getCurrentURL, getJellyContextURL, getJellyContextURL, getParent, getResource, getResourceAsStream, getRootURL, getScope, getUseContextClassLoader, getVariable, getVariableNames, getVariables, getXMLParser, isExport, isExportLibraries, isInherit, isTagLibraryRegistered, newJellyContext, newJellyContext, removeVariable, removeVariable, runScript, runScript, runScript, runScript, runScript, runScript, runScript, runScript, setClassLoader, setCurrentURL, setExport, setExportLibraries, setInherit, setRootURL, setUseContextClassLoader, setVariable, setVariable, setVariablespublic MavenJellyContext()
public MavenJellyContext(java.net.URL rootContext)
rootContext - The root context.public MavenJellyContext(MavenJellyContext parent)
parent - Parent MavenJellyContextprotected org.apache.commons.jelly.JellyContext createChildContext()
createChildContext in class org.apache.commons.jelly.JellyContextpublic void registerTagLibrary(java.lang.String uri,
org.apache.commons.jelly.TagLibrary taglib)
This implementation calls the superclass
implementation after determining that there
is no other tag-lib registered for the
given uri.
registerTagLibrary in class org.apache.commons.jelly.JellyContexturi - Namespace URI to index the taglib.taglib - The tag-lib to register.public void registerTagLibrary(java.lang.String namespaceURI,
java.lang.String className)
This implementation calls the superclass
implementation after determining that there
is no other tag-lib registered for the
given namespaceURI.
registerTagLibrary in class org.apache.commons.jelly.JellyContextnamespaceURI - Namespace URI to index the taglib.className - The class name of the tag-lib to register.public org.apache.commons.jelly.TagLibrary getTagLibrary(java.lang.String uri)
TagLibrary by namespace URI.getTagLibrary in class org.apache.commons.jelly.JellyContexturi - The namespace URI of the tag-library.null if none matches.public java.lang.Object getVariable(java.lang.String name)
getVariable in class org.apache.commons.jelly.JellyContextname - The name of the variable.null.public java.lang.Boolean getBoolean(java.lang.String key)
String property to a
Boolean based on its contents. It would be nice
if Jelly would deal with this automatically.key - The property key to lookup and convert.Boolean.FALSE.public void setMavenSession(MavenSession mavenSession)
mavenSession - the session for the contextpublic MavenSession getMavenSession()
public void setMavenRepoRemotes(java.util.List mavenRepoRemote)
public java.util.List getMavenRepoRemote()
public void setMavenRepoLocal(java.lang.String mavenRepoLocal)
mavenRepoLocal - The local repository.public java.lang.String getMavenRepoLocal()
public void setXMLOutput(org.apache.commons.jelly.XMLOutput xmlOutput)
xmlOutput - The jelly output sink.public org.apache.commons.jelly.XMLOutput getXMLOutput()
public void setOnline(java.lang.Boolean online)
online - The online flag.public java.lang.Boolean getOnline()
public void setProject(Project project)
project - The maven project.public Project getProject()
public void setProxyHost(java.lang.String proxyHost)
proxyHost - The proxy host.public java.lang.String getProxyHost()
public void setProxyPort(java.lang.String proxyPort)
proxyPort - The proxy port.public java.lang.String getProxyPort()
public void setProxyUserName(java.lang.String proxyUserName)
proxyUserName - The user name setting for the proxy.public java.lang.String getProxyUserName()
public void setProxyPassword(java.lang.String proxyPassword)
proxyPassword - The proxy password.public java.lang.String getProxyPassword()
public void setDebugOn(java.lang.Boolean debug)
debug - The debug flag.public java.lang.Boolean getDebugOn()
public void setEmacsModeOn(java.lang.Boolean emacsModeOn)
emacsModeOn - The emacs mode flag.public java.lang.Boolean getEmacsModeOn()
public void setRemoteRepositoryEnabled(java.lang.Boolean remoteRepositoryEnabled)
remoteRepositoryEnabled - Remote repository usage flag.public java.lang.Boolean getRemoteRepositoryEnabled()
public void setMavenJarOverride(java.lang.Boolean mavenJarOverride)
mavenJarOverride - MavenSession jar override flag.public java.lang.Boolean getMavenJarOverride()
public java.lang.String getMavenJarOverride(java.lang.String id)
id - Id of the project to override.public java.lang.String getMavenHome()
public void setWerkzProject(WerkzProject werkzProject)
werkzProject - Werkz Projectpublic WerkzProject getWerkzProject()
Werkz Projectpublic void setAntProject(org.apache.tools.ant.Project antProject)
antProject - The proxy password.public org.apache.tools.ant.Project getAntProject()
public void display()
public java.lang.String getMavenHomeLocal()
public java.lang.String getPluginsDir()
public java.lang.String getUserPluginsDir()
public java.lang.String getUnpackedPluginsDir()
public void setParent(org.apache.commons.jelly.JellyContext context)
setParent in class org.apache.commons.jelly.JellyContextJellyContext.setParent(JellyContext)public void resolveRelativePaths(java.io.File basedir)
Copyright © 2001-2013 Apache Software Foundation. All Rights Reserved.