Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-10763

Project examples cache logic is faulty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.Beta1
    • 3.3.0.M5
    • project-examples
    • None

      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:

      if (urlModified == 0) {
          if (file.exists()) {
              return file;
          }
      }
      

      as '0' is the same as IRemoteFileInfo.NO_LAST_MODIFIED. If urlModified == IRemoteFileInfo.NO_LAST_MODIFIED, the file should always be updated.

            snjeza_jira Snjezana Peco (Inactive)
            rcernich1 Rob Cernich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: