Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-2200

Unable to fully remove addon in Windows

    XMLWordPrintable

Details

    • Hide

      Create a UICommand, return getMetadata() with .name("Test1");
      addon-build-and-install
      test with <ctrl>-4, you should see the new command with name "Test1"
      change getMetadata() to .name("Test2");
      addon-build-and-install
      test with <ctrl>-4

      addon is gone

      installed.xml still contains the addon

      class-file is updated

      stop and restart forge
      test with <ctrl>-4

      still missing

      stop and restart eclipse
      test with <ctrl>-4

      still missing

      stop eclipse
      remove subdirectory and modify installed.xml to remove the addon
      start eclipse
      addon-build-and-install
      test with <ctrl>-4

      addon is updated.

      Show
      Create a UICommand, return getMetadata() with .name("Test1"); addon-build-and-install test with <ctrl>-4, you should see the new command with name "Test1" change getMetadata() to .name("Test2"); addon-build-and-install test with <ctrl>-4 addon is gone installed.xml still contains the addon class-file is updated stop and restart forge test with <ctrl>-4 still missing stop and restart eclipse test with <ctrl>-4 still missing stop eclipse remove subdirectory and modify installed.xml to remove the addon start eclipse addon-build-and-install test with <ctrl>-4 addon is updated.

    Description

      as reported here: https://developer.jboss.org/thread/251850

      While developing addon's it is important to constantly redeploying the addon without changing the version number for each deploy. Currently this is not possible without closing/opening eclipse between each redeploy. After a while I found the following:

      When executing "addon-remove" in Eclipse Luna the specified addon gets removed in the installed.xml file in the user's .forge directory.

      The corresponding class-files in .forge directory however are still there and cannot be deleted under windows which is an indicator of an open file pointer.

      When stopping forge console the directory still cannot be deleted. One have to close eclipse in order to delete the directory.

      I assume that this is the cause of not being able to update the addon without exiting eclipse.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mikes2221 Michael Schwartz (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: