|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.jelly.TagSupport
org.apache.maven.jelly.tags.BaseTagSupport
org.apache.maven.jelly.tags.maven.RootRelativePathTag
Converts an absolute path into a path relative to a root dir. For example, if the root dir is "c:/apps/myproject" and the absolute path is "c:/apps/myproject/path/subproject2" then the computed relative path is "../..".
Field Summary |
---|
Fields inherited from class org.apache.commons.jelly.TagSupport |
---|
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
---|---|
RootRelativePathTag()
|
Method Summary | |
---|---|
java.lang.String |
computePath()
|
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
void |
setPath(java.lang.String path)
Set the path. |
void |
setRootdir(java.io.File rootdir)
Set the root directory. |
void |
setVar(java.lang.String var)
Set the result variable. |
Methods inherited from class org.apache.maven.jelly.tags.BaseTagSupport |
---|
checkAttribute, getMavenContext |
Methods inherited from class org.apache.commons.jelly.TagSupport |
---|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RootRelativePathTag()
Method Detail |
public void setRootdir(java.io.File rootdir)
rootdir
- the root directorypublic void setPath(java.lang.String path)
path
- the path.public void setVar(java.lang.String var)
var
- the result variable name.public void doTag(org.apache.commons.jelly.XMLOutput output) throws org.apache.commons.jelly.MissingAttributeException, org.apache.commons.jelly.JellyTagException
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException
Tag.doTag(XMLOutput)
public java.lang.String computePath() throws java.io.IOException
java.io.IOException
- on error
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |