Search the web
Sign In
New User? Sign Up
megg
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Bug report: latest megg (from CVS head) doesn't pick up templates i   Message List  
Reply | Forward Message #25 of 94 |

[I posted this on the Megg page comments, which is probably not the
right place!]

There seems to be a bug in megg's template handler. I downloaded megg
from CVS (because I wanted to have a go at writing a template) and
tried to build and test it using "ant all". It failed the Unit test
"testGenerate" which attempts to find templates/java in the current
"working diectory" (I assume that's the classpath). Message is
"template 'templates/java' does not exist".

At first I thought that templates/java needed to be copied into the
build/classes directory before the test (which might actually be the
case) so I modified the build file slightly, but when that didn't work
I looked a little deeper.

It looks like inside the "templates" bit of the filename gets removed
when you look for a template in the "." directory. It appears that you
actually look for ./java rather than ./templates/java (but I could
have misinterpreted your code). Because you can get hold of the
templates using $HOME/.megg, existing jar files, and URLs maybe you
don't see this behaviour when you run the unit tests from your end.

Is this a bug?

Chris






Fri Apr 8, 2005 12:34 am

cpjobling
Offline Offline
Send Email Send Email

Forward
Message #25 of 94 |
Expand Messages Author Sort by Date

[I posted this on the Megg page comments, which is probably not the right place!] There seems to be a bug in megg's template handler. I downloaded megg from...
cpjobling
Offline Send Email
Apr 8, 2005
12:35 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help