Problems with #include. Is it a bug?

Help
vinicius
2006-02-14
2013-03-22
  • vinicius
    vinicius
    2006-02-14

    I'm trying to use the include directive to insert a content of another file in my template. I tried many possibilities unsuccessfully. I got a simple example from velocity site and it worked very well with Texen. I'd like to know if there is a work around to solve this problem.

    Thanks in advice.
    Vinicius

    -----------------------------
    test.vm content:

    #include("test.txt")

    -----------------------------
    test.txt content

    Only a simple test
    -----------------------------
    Error message

    [vpp:copy] [error] Cannot process content resource : org.apache.velocity.exception.ResourceNotFoundException: FileResourceLoader Error: cannot find resource test.txt
    [vpp:copy] [error] ResourceManager : unable to find resource 'test.txt' in any resource loader.
    [vpp:copy] [error] #include(): cannot find resource 'test.txt', called from template vpp at (3, 1)