Fixed, thanks for the heads up.
-g
On Dec 14, 2008, at 12:51 PM, Vasko Gjurovski wrote:
Vasko Gjurovski ??????:
Hi all,
I just downloaded the latest trunk from svn and tried to build it. It
failed on one of the tests with the folowing error:
-------------------------------------------------------------------------------
Test set: info.magnolia.module.ui.ModuleManagerWebUITest
-------------------------------------------------------------------------------
Tests run: 4, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 1.045
sec <<< FAILURE!
testListTasksTemplate(info.magnolia.module.ui.ModuleManagerWebUITest)
Time elapsed: 0.004 sec <<< ERROR!
info.magnolia.module.ModuleManagementException: Couldn't render
template: Template
/info/magnolia/module/ui/ModuleManagerWebUInull.listTasks.html not
found.
at
info
.magnolia
.module.ui.ModuleManagerWebUI.render(ModuleManagerWebUI.java:153)
at
info
.magnolia
.module
.ui
.ModuleManagerWebUITest.doTestTemplate(ModuleManagerWebUITest.java:
134)
at
info
.magnolia
.module
.ui
.ModuleManagerWebUITest
.testListTasksTemplate(ModuleManagerWebUITest.java:99)
Caused by: java.io.FileNotFoundException: Template
/info/magnolia/module/ui/ModuleManagerWebUInull.listTasks.html not
found.
at
freemarker.template.Configuration.getTemplate(Configuration.java:489)
at
freemarker.template.Configuration.getTemplate(Configuration.java:459)
at
info
.magnolia.freemarker.FreemarkerHelper.render(FreemarkerHelper.java:
119)
at
info
.magnolia.freemarker.FreemarkerHelper.render(FreemarkerHelper.java:
97)
at
info
.magnolia
.module.ui.ModuleManagerWebUI.render(ModuleManagerWebUI.java:149)
... 27 more
Thinking this might be an errour in the test class, i disabled the
tests and managed to build magnolia. But after running the
application, there it comes again. And this tim not in the test!
Anybody?
Regards,
Vasko
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
Ok... to answer my own question... here is the problem.. The
createTemplateName method from FreemarkerUtil.java had a bad
condition creating the template name:
it used to be:
classifier = (classifier != null) ?
StringUtils.capitalize(classifier) : null;
and it should be (I guess.. :) )
classifier = (classifier != null) ?
StringUtils.capitalize(classifier) : "";
It helped...
Cheers,
Vasko
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------