Package org.apache.velocity.runtime.resource.loader

Examples of org.apache.velocity.runtime.resource.loader.FileResourceLoader


       
        VelocityEngine engine = new VelocityEngine();
        engine.setProperty("resource.loader", "mojave");
        //TODO replace with MojaveResourceLoader
        // see org.apache.velocity.tools.view.servlet.WebappLoader
        engine.setProperty("mojave.resource.loader.instance", new FileResourceLoader());
        Vector<String> path = new Vector<String>();
        path.add("src/test/resources/standard/WEB-INF/vm");
        engine.setProperty("mojave.resource.loader.path", path);
        engine.init();
       
View Full Code Here


    public void setUp()
            throws Exception
    {

        ResourceLoader rl = new FileResourceLoader();

        // pass in an instance to Velocity
        Velocity.addProperty( "resource.loader", "testrl" );
        Velocity.setProperty( "testrl.resource.loader.instance", rl );
        Velocity.setProperty( "testrl.resource.loader.path", FILE_RESOURCE_LOADER_PATH );
View Full Code Here

    public void setUp()
            throws Exception
    {

        ResourceLoader rl = new FileResourceLoader();

        // pass in an instance to Velocity
        Velocity.addProperty( "resource.loader", "testrl" );
        Velocity.setProperty( "testrl.resource.loader.instance", rl );
        Velocity.setProperty( "testrl.resource.loader.path", FILE_RESOURCE_LOADER_PATH );
View Full Code Here

    public void setUp()
            throws Exception
    {

        ResourceLoader rl = new FileResourceLoader();

        // pass in an instance to Velocity
        Velocity.setProperty( "resource.loader", "testrl" );
        Velocity.setProperty( "testrl.resource.loader.instance", rl );
        Velocity.setProperty( "testrl.resource.loader.path", FILE_RESOURCE_LOADER_PATH );
View Full Code Here

TOP

Related Classes of org.apache.velocity.runtime.resource.loader.FileResourceLoader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.