org.apache.maven.resource.loader

Class ProjectResourceLoader

public class ProjectResourceLoader extends ResourceLoader

Resource Loader for external projects
Method Summary
longgetLastModified(Resource resource)
InputStreamgetResourceStream(String templateName)
Get an InputStream so that the Runtime can build a template with it.
voidinit(ExtendedProperties configuration)
booleanisSourceModified(Resource resource)
How to keep track of all the modified times across the paths.

Method Detail

getLastModified

public long getLastModified(Resource resource)

getResourceStream

public InputStream getResourceStream(String templateName)
Get an InputStream so that the Runtime can build a template with it.

Parameters: name name of template to get

Returns: InputStream containing the template

Throws: ResourceNotFoundException if template not found in the file template path.

init

public void init(ExtendedProperties configuration)

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.
Copyright © {inceptionYear}-2007 null. All Rights Reserved.