[
https://issues.jboss.org/browse/JBIDE-10763?page=com.atlassian.jira.plugi...
]
Snjezana Peco commented on JBIDE-10763:
---------------------------------------
JBoss Tools/JBDS doesn't have any project example provided by a plugin. Could you
provide us with any test case?
When would such project examples be refreshed? When updating the plugin including them or
...?
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
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