[jbosstools-issues] [JBoss JIRA] (JBIDE-10763) Project examples cache logic is faulty

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Tue Jan 31 17:37:48 EST 2012


    [ https://issues.jboss.org/browse/JBIDE-10763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663187#comment-12663187 ] 

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

        


More information about the jbosstools-issues mailing list