Share

VPP - Velocity Preprocessor

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Problems with #include. Is it a bug?

You are viewing a single message from this topic. View all messages.

  1. 2006-02-14 21:14:25 UTC
    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)
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.