org.apache.maven.jelly.tags.maven
Class MakeRelativePathTag
java.lang.Object
org.apache.commons.jelly.TagSupport
org.apache.maven.jelly.tags.BaseTagSupport
org.apache.maven.jelly.tags.maven.MakeRelativePathTag
- All Implemented Interfaces:
- Tag
- public class MakeRelativePathTag
- extends BaseTagSupport
Jelly tag to convert an absolute path into a relative path by removing the basedir.
- Author:
- Brett Porter brett@apache.org
Method Summary |
void |
doTag(XMLOutput output)
|
void |
setBasedir(java.io.File basedir)
Set the base directory. |
void |
setPath(java.lang.String path)
Set the path. |
void |
setSeparator(java.lang.String separator)
Set the path separator to use. |
void |
setVar(java.lang.String var)
Set the result variable. |
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 |
MakeRelativePathTag
public MakeRelativePathTag()
setBasedir
public void setBasedir(java.io.File basedir)
- Set the base directory.
- Parameters:
basedir
- the base directory.
setPath
public void setPath(java.lang.String path)
- Set the path. This has to be absolute under basedir.
- Parameters:
path
- the path.
setSeparator
public void setSeparator(java.lang.String separator)
- Set the path separator to use.
- Parameters:
separator
- the separator.
setVar
public void setVar(java.lang.String var)
- Set the result variable. Returns path if path is not absolute under basedir.
- Parameters:
var
- the result variable name.
doTag
public void doTag(XMLOutput output)
throws MissingAttributeException,
JellyTagException
- Throws:
MissingAttributeException
JellyTagException
Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.