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