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

Rob Cernich (JIRA) jira-events at lists.jboss.org
Tue Jan 31 20:07:48 EST 2012


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

Rob Cernich commented on JBIDE-10763:
-------------------------------------

The following is a link to a plugin xml that can be used as an example.

https://github.com/rcernich/tools/blob/project_examples/eclipse/plugins/org.switchyard.tools.examples/plugin.xml

The main problem I have is during development testing.  If the file needs to be modified, I have to nuke the workspace (or the cache in .metadata) to see the changes.

I would assume updates would be problematic as the plugin url does not contain any version information (i.e. the system would continue using the file from the original plugin).

Let me know if you need anything else.

Rob
                
> 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