I think what you're looking for is the jelly useBean and invoke tags...
http://jakarta.apache.org/commons/jelly/tags.html
Steve
On Thu, 2005-03-02 at 11:39 +0000, HEAD-RAPSON, David wrote:
> Hi,
> I wonder if someone can help me. It's regarding a new maven plugin I'm
> writing.
>
> I'm using Maven and Jelly to execute a Java command as part of our build
> process. Following that I wish to execute an ant command, but I need an
> argument from the java. Ideally I'd like to know how to return a value from
> a call to a defined java class. I've written the java class and its being
> called correctly but I've no idea how to use the return value.
> Here's the method spec:
>
> public class Release {
> public String makeRelease() {}
> ...
> }
>
> And I'm using the following in my plugin.jelly to call it.
>
> <goal name="bupa:make-release">
>
> <j:jelly xmlns:j="jelly:core" xmlns:define="jelly:define"
> xmlns:release="releaseTagLib">
>
> <define:taglib uri="releaseTagLib">
> <define:jellybean name="rel" method="makeRelease"
> className="com.bupa.maven.plugin.release.Release"/>
> </define:taglib>
>
> <release:rel artifactId="${pom.artifactId}"
> currentVersion="${pom.currentVersion}" dependencies="${pom.dependencies}"
> pomExtension="${pom.extend}"/>
>
> </j:jelly>
>
> <!- I want to call the ant method here with an argument returned
> from the Java method-->
> </goal>
>
> Can anyone help at all?
>
> Thanks in advance
> Dave
>
>
>
>
> Visit http://www.bupa.com or call 0800 00 10 10 and find out what BUPA can do
> for you.
>
> BUPA, the health and care people
>
>
> BUPA House 15-19 Bloomsbury Way London WC1A 2BA
>
> Internet communications are not secure and therefore BUPA does
> not accept legal responsibility for the contents of this message. Any
> views or opinions presented are solely those of the author and do
> not necessarily represent those of BUPA.
>
>
> BUPA Insurance Limited, BUPA Health Assurance Limited, BUPA Insurance
> Services Limited and Goldsborough Estates Limited are authorised and
> regulated by the Financial Services Authority
>