org.apache.maven.jelly.tags.maven
Class PomTag
java.lang.Object
org.apache.commons.jelly.TagSupport
org.apache.maven.jelly.tags.BaseTagSupport
org.apache.maven.jelly.tags.maven.PomTag
- All Implemented Interfaces:
- Tag
- public class PomTag
- extends BaseTagSupport
MavenSession Jelly tag that creates a POM instance.
By default, the inheritance in the POM isn't used.
You must use the attribute useInheritance to activate it.
- Version:
- $Id: PomTag.java 517014 2007-03-11 21:15:50Z ltheussl $
- Author:
- Jason van Zyl
Method Summary |
void |
doTag(XMLOutput output)
Perform functionality provided by the tag |
void |
setProjectDescriptor(java.io.File projectDescriptor)
Set MavenSession project descriptor. |
void |
setUseInheritance(boolean useInheritance)
Define if the pom must use the inheritance. |
void |
setVar(java.lang.String var)
Set var name for the POM. |
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 |
PomTag
public PomTag()
setProjectDescriptor
public void setProjectDescriptor(java.io.File projectDescriptor)
- Set MavenSession project descriptor.
- Parameters:
projectDescriptor
- the file name of the maven project descriptor
setVar
public void setVar(java.lang.String var)
- Set var name for the POM.
- Parameters:
var
- Variable name for the pom.
setUseInheritance
public void setUseInheritance(boolean useInheritance)
- Define if the pom must use the inheritance.
Setted to false by default to keep a backward compatibility.
- Parameters:
useInheritance
- true if the pom object must use the inheritance.
doTag
public void doTag(XMLOutput output)
throws MissingAttributeException,
JellyTagException
- Perform functionality provided by the tag
- Parameters:
output
- the place to write output
- Throws:
JellyTagException
- when the projectDescriptor attribute is missing, or
another error occurs
MissingAttributeException
Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.