Update for latest jelly tag signature
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112775 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4a88be83d1
commit
447af533c6
@ -55,6 +55,9 @@ package org.apache.maven.cactus;
|
||||
*
|
||||
* ====================================================================
|
||||
*/
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
|
||||
import org.apache.commons.jelly.JellyTagException;
|
||||
import org.apache.commons.jelly.TagSupport;
|
||||
import org.apache.commons.jelly.XMLOutput;
|
||||
import org.apache.commons.jelly.MissingAttributeException;
|
||||
@ -78,7 +81,7 @@ import org.apache.tools.ant.types.Reference;
|
||||
* execute.
|
||||
*
|
||||
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
|
||||
* @version $Id: CactusScannerTag.java,v 1.1 2003/01/24 03:44:39 jvanzyl Exp $
|
||||
* @version $Id: CactusScannerTag.java,v 1.2 2003/01/29 23:54:51 dion Exp $
|
||||
*/
|
||||
public class CactusScannerTag extends TagSupport implements TaskSource
|
||||
{
|
||||
@ -128,7 +131,7 @@ public class CactusScannerTag extends TagSupport implements TaskSource
|
||||
/**
|
||||
* @see TagSupport#doTag(XMLOutput)
|
||||
*/
|
||||
public void doTag(XMLOutput xmlOutput) throws Exception
|
||||
public void doTag(XMLOutput xmlOutput) throws JellyTagException
|
||||
{
|
||||
this.cactusScanner.setProject(AntTagLibrary.getProject(context));
|
||||
this.cactusScanner.clear();
|
||||
@ -172,9 +175,21 @@ public class CactusScannerTag extends TagSupport implements TaskSource
|
||||
/**
|
||||
* @see TaskSource#setTaskProperty(String, Object)
|
||||
*/
|
||||
public void setTaskProperty(String name, Object value) throws Exception
|
||||
public void setTaskProperty(String name, Object value) throws JellyTagException
|
||||
{
|
||||
BeanUtils.setProperty(this, name, value);
|
||||
try
|
||||
{
|
||||
BeanUtils.setProperty(this, name, value);
|
||||
}
|
||||
catch (IllegalAccessException anException)
|
||||
{
|
||||
throw new JellyTagException(anException);
|
||||
}
|
||||
catch (InvocationTargetException anException)
|
||||
{
|
||||
throw new JellyTagException(anException);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user