[ http://issues.apache.org/jira/browse/VELTOOLS-37?page=all ]
Tim Colson moved VELOCITY-238 to VELTOOLS-37:
---------------------------------------------
Project: VelocityTools (was: Velocity)
Key: VELTOOLS-37 (was: VELOCITY-238)
Component: (was: Tools)
Version: (was: 1.0-Release)
> WebappLoader caches files forever when cache = true
> ---------------------------------------------------
>
> Key: VELTOOLS-37
> URL: http://issues.apache.org/jira/browse/VELTOOLS-37
> Project: VelocityTools
> Type: Improvement
> Environment: Operating System: other
> Platform: Other
> Reporter: Bill Stilwell
> Priority: Minor
> Attachments: WebappLoader.diff
>
> This is when using the 1.1 tools beta.
> What I did:
> My velocity.properties has the following lines:
> webapp.resource.loader.cache = true
> webapp.resource.loader.modificationCheckInterval = 30
> What I expected:
> According to my reading of the documentation/code, this should result in files
> being checked for changes every 30 seconds.
> What happened:
> changes to velocity templates are never picked up by the servlet.
> I believe the problem lines of code in WebappLoader.java are these, but I'm
> not
> familiar enough at the moment with how the Resource classes work to suggest a
> patch:
> /**
> * Defaults to return false.
> */
> public boolean isSourceModified(Resource resource)
> {
> return false;
> }
> /**
> * Defaults to return 0
> */
> public long getLastModified(Resource resource)
> {
> return 0;
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]