org.apache.maven.jelly.tags.maven
Class MakeRelativePathTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by org.apache.maven.jelly.tags.BaseTagSupport
          extended by org.apache.maven.jelly.tags.maven.MakeRelativePathTag
All Implemented Interfaces:
org.apache.commons.jelly.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

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
MakeRelativePathTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.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.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

MakeRelativePathTag

public MakeRelativePathTag()
Method Detail

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(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.MissingAttributeException,
                  org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException


Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.