org.apache.maven.plugin.resource.loader
Class ProjectResourceLoader
java.lang.Object
org.apache.velocity.runtime.resource.loader.ResourceLoader
org.apache.maven.plugin.resource.loader.ProjectResourceLoader
- public class ProjectResourceLoader
- extends ResourceLoader
Resource Loader for external projects.
- Version:
- $Id: ProjectResourceLoader.html 816584 2012-05-08 12:33:35Z hboutemy $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectResourceLoader
public ProjectResourceLoader()
init
public void init(ExtendedProperties configuration)
getResourceStream
public InputStream getResourceStream(String templateName)
throws ResourceNotFoundException
- Get an InputStream so that the Runtime can build a
template with it.
- Parameters:
templateName
- name of template to get
- Returns:
- InputStream containing the template
- Throws:
ResourceNotFoundException
- if template not found
in the file template path.
isSourceModified
public boolean isSourceModified(Resource resource)
- How to keep track of all the modified times
across the paths. Note that a file might have
appeared in a directory which is earlier in the
path; so we should search the path and see if
the file we find that way is the same as the one
that we have cached.
getLastModified
public long getLastModified(Resource resource)
Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.