Wonderful, thanks.

-----Original Message-----
From: Eivind Waaler [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 25, 2003 2:26 AM
To: [EMAIL PROTECTED]
Subject: RE: [Middlegen-user] Externalizing entity-cmp-20.vm


You could also specify a fileproducer element in the cmp plugin i think
(in build.xml):

<cmp20...
  <fileproducer
    id="entity-cmp-20"
    template="mycmp20.vm"
  />
...
</cmp20>

That way you can name and locate your new vm file whereever you want..

.eivind

On Wed, 24 Sep 2003, Rod Macpherson wrote:

> That sounds like it would work since it's convenient to plop resources

> in a package and let the class loader fetch the resource from the 
> classpath. Still no more convenient than rebuilding the 
> middlegen-entity.jar file, however. Aslak mentioned the 
> entity-cmp-20.vm could be externalized but I forgot how.
> 
> Thanks
> 
> -----Original Message-----
> From: Gregory Joseph [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 24, 2003 10:47 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [Middlegen-user] Externalizing entity-cmp-20.vm
> 
> 
> I haven't done this with middlegen, only with xdoclet, but I bet the 
> same hack will work: put your custom .vm file at the same directory 
> level as it is in the jar file. (org/middlegen/...i guess), and have 
> the root of this be in your classpath when you call middlegen. I 
> repeat, this is a hack :D
> 
> g
> 
> -----Original Message-----
> From: Rod Macpherson [mailto:[EMAIL PROTECTED]
> Sent: mercredi 24 septembre 2003 19:35
> To: [EMAIL PROTECTED]
> Subject: [Middlegen-user] Externalizing entity-cmp-20.vm
> 
> 
> We have been using middlegen for over a year now but every now and 
> then we have to tweak our velocity scripts. I replaced 
> entity-cmp-20.vm to generate a very custom set of EJBs but how do I 
> externalize that file so that we do not have to rebuild the middlegen 
> entity bean jar? This came up a year ago but the response has escaped 
> me.
> 
> TIA,
> 
> Rod
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf 
> _______________________________________________
> middlegen-user mailing list [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/middlegen-user
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf 
> _______________________________________________
> middlegen-user mailing list [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/middlegen-user
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf 
> _______________________________________________
> middlegen-user mailing list [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/middlegen-user
> 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Reply via email to