Hi,

With the help of karthik I got this to work again, the
1.0 templates use the import this way:

<j:import
uri="org/xdoclet/plugin/hibernate/Class.jelly"
inherit="true"/>

while the 1.0.2 use the import as the following:

<j:import uri="/Class.jelly" inherit="true"/>

So instead of putting the Class.jelly under
org\xdoclet\plugin\hibernate in classpath, I need to
put it under \, and I need to change all imports in
the Class.jelly to the old 1.0 ways so that it can
import the jelly's from the jar (otherwise I would be
forced to put every imported jelly under the same
path).

So in the end everything works out fine, although it
would be great if someone can offer some insights on
how the import works and the reason for the change of
import uri.

Thanks

--- "Diogo Quintela (EF)" <[EMAIL PROTECTED]>
wrote:

> Hi Jim,
>       You should insert into the xdoclet classpath (the
> classpath for the
> task) but don't forget to drop into the same package
> (sometimes ex,
> /Classes.jelly) is used, but that refers to same
> package as calling script.
> 
> It should work this way.
> 
> Regards
> Diogo
> 
> -----------------------------------
> Diogo Bacelar Quintela
> EF - Tecnologias de Informação, Lda.
> Av. António Serpa, 26 - 4&#65533;Dto.
> 1050-027 Lisboa, Portugal
> Tel: (+351) 217 827 800
> Fax: (+351) 217 827 830
> Email: [EMAIL PROTECTED]
> PGP: 0xF51A5AB9 
> > -----Original Message-----
> > From: Jim JXR [mailto:[EMAIL PROTECTED]
> > Sent: segunda-feira, 21 de Novembro de 2005 3:58
> > To: [email protected]
> > Subject: [xdoclet-user] How to override a jelly
> template in the jar?
> > 
> > Hi,
> > 
> > I'm looking for a way to substitute the packaged
> jelly
> > template in a plugin jar with my own version,
> without
> > having to rebuild the jar file itself. I need to
> do
> > this for hibernate plugin so that I can generate
> id
> > column names in the following format:
> <table_name>_id
> > 
> > When I'm using version 1.0, I can just put a
> > Class.jelly on the front of the build classpath in
> Ant
> > (something like <path><pathelement location="my
> > Class.jelly"/><fileset>xdoclet2's
> > jars</fileset></path>), and the plugin would pick
> that
> > up and use it instead of the one inside the jar.
> But
> > with 1.0.2, this doesn't seem to work anymore. Is
> > there a standard way to do what I intended to do?
> > 
> > Thanks
> > 
> > 
> > 
> > 
> > __________________________________
> > Yahoo! Mail - PC Magazine Editors' Choice 2005
> > http://mail.yahoo.com
> 



                
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

Reply via email to