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

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

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
Confusion about template location   Message List  
Reply | Forward Message #13 of 94 |
I'm somewhat confused about my template location. I took an existing
directory that I clone when starting a new project and added a
megg.xml file to it. If I put that directory underneath the templates
directory and create a new megg.jar I can reference the directory by
name (jmjava) and get it to create me a new copy (myjmjava). However,
if I take a downloaded copy of megg (e.g. megg-0.1.3.jar) and put my
directory beside it and type "java -jar megg-0.1.3.jar" it won't find
that template.

According to your email about templates it seemed like that should
work so I stepped through the code and found it a little confusing on
its template searching. When I entered in jmjava it called a function
that got a list of all files for that directory and returned it
(public List fetchTemplates(String path, String templateDirectory))
and then the function that called it (public boolean generate(Map
projectDetails)) sees that a non-zero list of templates was returned
and it looks for the megg.xml file. BUT, the file it looks for is
templates/jmjava/megg.xml (see line 291 of Megg.java) rather than
jmjava/megg.xml so naturally it doesn't find it. So, is the code
screwing up in some way or am I doing something wrong in my placement
of my files.

I have other questions with regard to future features and how certain
things are done now but I'll ask them later.

Thanks,
John Munsch




Sun Jul 25, 2004 6:48 pm

Muir_Woods
Offline Offline
Send Email Send Email

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

I'm somewhat confused about my template location. I took an existing directory that I clone when starting a new project and added a megg.xml file to it. If I...
Muir_Woods
Offline Send Email
Jul 25, 2004
6:49 pm
Advanced

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