Benjamin, All ok now to cut a new release candidate?
Cheers, Francis On Sun, Apr 11, 2010 at 8:17 PM, Francis De Brabandere <[email protected]> wrote: > On Sat, Apr 10, 2010 at 12:55 AM, Benjamin Venditti > <[email protected]> wrote: > .... >> I got an error while testing the CodeGenApp directly. The error will only >> occur if "nestTables" or "nestViews" is enabled. I think the problem is, >> that we never set the template folder property of the config object to a >> default value. Here is a snippet of the error ... >> >> Writing >> C:\Users\Hermine7\Workspaces\workspace-emp\empire-db-trunk\empire-db-codegen\target\generated\dbsample\org\apache\empire\db\samples\dbsample\SampleDB.java >> at >> org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:300) >> ERROR [2010/04/10 00:31]: ResourceManager : unable to find resource >> '$templateFolder/Table.vm' in any resource loader. at >> org.apache.velocity.runtime.log.CommonsLogLogChute.log(CommonsLogLogChute.java:96) >> ERROR [2010/04/10 00:31]: #parse(): cannot find template >> '$templateFolder/Table.vm', called at templates/Database.vm[line 75, column >> 25] at >> org.apache.velocity.runtime.log.CommonsLogLogChute.log(CommonsLogLogChute.java:96) >> ERROR [2010/04/10 00:31]: Unable to find resource >> '$templateFolder/Table.vm' at >> org.apache.empire.db.codegen.CodeGenWriter.writeFile(CodeGenWriter.java:307) >> org.apache.velocity.exception.ResourceNotFoundException: Unable to >> find resource '$templateFolder/Table.vm' >> at >> org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java:483) >> at >> org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java:354) >> .... > > If templateFolder is not set we read the provided templates from the > classpath. If it is set it is used by velocity. I added a unit test to > test this behavior. Maybe you can try to reproduce the error in a unit > test? See CodeGenAppTest. Maybe you could send me your templates and > how you started the codegen? > > -- > http://www.somatik.be > Microsoft gives you windows, Linux gives you the whole house. > -- http://www.somatik.be Microsoft gives you windows, Linux gives you the whole house.
