Thanks, did that too :-) Regards
Nathan On 29/05/2009 22:38, "Nathan Bubna" <nbu...@gmail.com> wrote: > Hmm. I would consider asking the Maven user list. I'm not familiar > with how the configure/setup Velocity. > > On Fri, May 29, 2009 at 1:30 PM, Nathan Sowatskey <nsowa...@cisco.com> wrote: >> Hi >> >> This is a Maven site based on apt files. >> >> Regards >> >> Nathan >> >> >> On 29/05/2009 22:24, "Nathan Bubna" <nbu...@gmail.com> wrote: >> >>> How are you using Velocity? Are you using the singleton? A >>> VelocityEngine? Are you using a servlet or a framework that handles >>> Velocity for you? Is this a webapp? >>> >>> On Fri, May 29, 2009 at 11:26 AM, Nathan Sowatskey <nsowa...@cisco.com> >>> wrote: >>>> Hi all >>>> >>>> I am trying to use this feature: >>>> >>>> http://velocity.apache.org/engine/devel/user-guide.html#Include >>>> >>>> I have this directive in an index.apt.vm file that is in src/site/apt: >>>> >>>> #include("user_stories_table.txt") >>>> >>>> I also have the user_stories_table.txt file in the same directory. >>>> >>>> The #include does not find the file. I have tried moving the file to >>>> various >>>> other locations, still won't find it. I have tried renaming the file to .vm >>>> in the apt dir, won't find it, I have tried .... >>>> >>>> I have also tried creating a velocity.properties file with various loader >>>> properties in it. But I don't know where to put the velocity.properties >>>> file >>>> so it is picked up, nor am I sure what the root of the relative paths will >>>> be, so I can't be sure what the property value should be. >>>> >>>> The error is below. >>>> >>>> Any help will be greatly appreciated! >>>> >>>> Many thanks >>>> >>>> Nathan >>>> >>>> When I run mvn site, I get: >>>> >>>> [ERROR] Cannot process content resource >>>> [ERROR] java.lang.NullPointerException >>>> at java.io.Reader.<init>(Reader.java:61) >>>> at java.io.InputStreamReader.<init>(InputStreamReader.java:80) >>>> at >>>> org.apache.velocity.runtime.resource.ContentResource.process(ContentResourc>>>> e >>>> .java:62) >>>> at >>>> org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(Resou>>>> r >>>> ceManagerImpl.java:415) >>>> at >>>> org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(Resour>>>> c >>>> eManagerImpl.java:335) >>>> at >>>> org.apache.velocity.runtime.RuntimeInstance.getContent(RuntimeInstance.java>>>> : >>>> 1152) >>>> at >>>> org.apache.velocity.runtime.directive.Include.renderOutput(Include.java:225>>>> ) >>>> >>>> >>>> >>>> >>>> -- >>>> Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP - >>>> +34-638-083-675 >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org >>>> For additional commands, e-mail: user-h...@velocity.apache.org >>>> >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org >>> For additional commands, e-mail: user-h...@velocity.apache.org >>> >> >> -- >> Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP - >> +34-638-083-675 >> >> -- Nathan Sowatskey (nsowa...@cisco.com) - Technical Leader, NMTG XMP - +34-638-083-675 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org For additional commands, e-mail: user-h...@velocity.apache.org