maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Schaefer" <aschae...@SeeBeyond.com>
Subject RE: Adding my own Jelly Library to Maven
Date Sat, 04 Dec 2004 01:20:04 GMT
Hi Brett

Thanks for you support, it worked (ufff). So finally I could introduce
Jelly's getStatic() method into Maven 1.0/1.1 without breaking it (it
seemed that Jelly's current beta version does break the JavaDoc plugin).

Thanx

Andreas Schaefer
Senior Software Engineer
 
<a href="http://www.lajug.org/events.html#meeting">Upcoming Maven
Presentation @ LA-JUG 12/7/04</a>

-----Original Message-----
From: Brett Porter [mailto:brett@apache.org] 
Sent: Friday, December 03, 2004 3:13 PM
To: Maven Developers List
Subject: Re: Adding my own Jelly Library to Maven

You need something like this instead:

  xmlns:patch="jelly:jelly.patch.PatchTagLibrary"

- Brett

Andreas Schaefer wrote:

>Hi Geeks
> 
>I tried for quit a long time to add my very own jelly library into
Maven
>and still fail. Unfortunately I could not find the answer in Jelly or
>Maven so I was wondering if someone could give me a pointer where to
>look further.
> 
>My PatchTagLibrary class looks like this:
> 
>-----------------------------------------------
>package jelly.patch;
>import org.apache.commons.jelly.TagLibrary;
>public class PatchTagLibrary extends TagLibrary {
>    public PatchTagLibrary() {
>        registerTag("patch", jelly.patch.PatchTag.class);
>        registerTag("getStatic", jelly.patch.GetStaticTag.class);
>    }
>}
>-----------------------------------------------
> 
>-----------------------------------------------
><project default="test:test"
>         xmlns:patch="jelly:patch"
>         xmlns:j="jelly:core">
> 
>    <goal name="build-test-deployments">
>        
>        <patch:getStatic var="from.server.directory"
>className="com.stc.test.connector.common.Constants"
>field="FROM_SERVER_DIRECTORY"/> ...
>-----------------------------------------------
> 
>But I get this exception:
> 
>Underlying exception: java.lang.ClassNotFoundException: patch
>java.lang.ClassNotFoundException: patch
>        at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>        at
>org.apache.commons.jelly.parser.XMLParser.createTag(XMLParser.java:10
> 
>I would appreciate any help, thanx.
> 
>Andreas Schaefer
>Senior Software Engineer
> 
><a href="http://www.lajug.org/events.html#meeting">Upcoming Maven
>Presentation @ LA-JUG 12/7/04</a>
> 
> 
> 
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Mime
View raw message