[
https://issues.jboss.org/browse/JBIDE-10763?page=com.atlassian.jira.plugi...
]
Snjezana Peco resolved JBIDE-10763.
-----------------------------------
Fix Version/s: 3.3.0.Beta1
Resolution: Done
Such project examples files aren't being cached because they are local files.
Project examples cache logic is faulty
--------------------------------------
Key: JBIDE-10763
URL:
https://issues.jboss.org/browse/JBIDE-10763
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: project-examples
Affects Versions: 3.3.0.M5
Reporter: Rob Cernich
Assignee: Snjezana Peco
Fix For: 3.3.0.Beta1
Project examples files that are provided by plugins using a plugin URL (e.g.
platform:/plugin/plugin.id/...) fail to be refreshed. The only workaround is to delete
the cached file from the workspace's .metadata.
The following logic in ProjectUtils.getProjectExamplesFile() is incorrect:
{code:java}
if (urlModified == 0) {
if (file.exists()) {
return file;
}
}
{code}
as '0' is the same as IRemoteFileInfo.NO_LAST_MODIFIED. If urlModified ==
IRemoteFileInfo.NO_LAST_MODIFIED, the file should always be updated.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira