Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-1196

remove bundle cache when running mvn clean

    Details

    • Story Points:
      0.5
    • Sprint:
      B - Summer 2018, Summer 2018 Part 2

      Description

      The OSGi container caches bundles in version-specific folders in a user's hidden .igb directory. This directory resides in the user's HOME directory under Linux & MacOS and somewhere else under Windows.

      When a developer runs "mvn clean", the clean process should delete the bundle cache for the version of IGB being built.

      Currently, developer must do this manually.

      Note: This issue requires understanding maven configuration. It would be a good issue for a beginner to learn maven and how to run/test IGB.

        Attachments

          Activity

          ann.loraine Ann Loraine created issue -
          ann.loraine Ann Loraine made changes -
          Field Original Value New Value
          Rank Ranked higher
          ann.loraine Ann Loraine made changes -
          Rank Ranked higher
          ann.loraine Ann Loraine made changes -
          Assignee Ann Loraine [ aloraine ]
          ann.loraine Ann Loraine made changes -
          Story Points 2 1
          ann.loraine Ann Loraine made changes -
          Assignee Kiran Korey [ kkorey ]
          ann.loraine Ann Loraine made changes -
          Sprint B - Summer 2018 [ 48 ]
          ann.loraine Ann Loraine made changes -
          Rank Ranked lower
          ann.loraine Ann Loraine made changes -
          Story Points 1 0.5
          Hide
          kkorey Kiran Korey (Inactive) added a comment -

          Analysis:
          mvn install: Does not copy the bundles into users HOME directory, it compiles the classes and puts it in the target folder in project directory.
          mvn clean: Deletes the target folder and files inside it.

          Show
          kkorey Kiran Korey (Inactive) added a comment - Analysis: mvn install: Does not copy the bundles into users HOME directory, it compiles the classes and puts it in the target folder in project directory. mvn clean: Deletes the target folder and files inside it.
          kkorey Kiran Korey (Inactive) made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          kkorey Kiran Korey (Inactive) added a comment -

          Configured to delete bundles directory from project directory and users local cache directory.
          (Tested in Windows and Linux)

          Need a review for the branch

          https://bitbucket.org/kkorey/kkorey-igb/branch/IGBF-1196-Cache-Clean

          Thanks

          Show
          kkorey Kiran Korey (Inactive) added a comment - Configured to delete bundles directory from project directory and users local cache directory. (Tested in Windows and Linux) Need a review for the branch https://bitbucket.org/kkorey/kkorey-igb/branch/IGBF-1196-Cache-Clean Thanks
          kkorey Kiran Korey (Inactive) made changes -
          Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
          Hide
          ann.loraine Ann Loraine added a comment -

          Please make this change:

          Don't delete the entire bundles directory. Install, delete the sub-directory for this version.

          Thanks.

          Show
          ann.loraine Ann Loraine added a comment - Please make this change: Don't delete the entire bundles directory. Install, delete the sub-directory for this version. Thanks.
          Hide
          kkorey Kiran Korey (Inactive) added a comment -

          Above mentioned change has been made and is available in the following commit.

          https://bitbucket.org/kkorey/kkorey-igb/commits/382db550a7b0774576de1e7240eb037222600005?at=IGBF-1196-Cache-Clean

          Show
          kkorey Kiran Korey (Inactive) added a comment - Above mentioned change has been made and is available in the following commit. https://bitbucket.org/kkorey/kkorey-igb/commits/382db550a7b0774576de1e7240eb037222600005?at=IGBF-1196-Cache-Clean
          Hide
          kkorey Kiran Korey (Inactive) added a comment -

          Note: This issue has not been tested in mac.

          Show
          kkorey Kiran Korey (Inactive) added a comment - Note : This issue has not been tested in mac.
          Hide
          ann.loraine Ann Loraine added a comment -

          Please test on Mac and Linux & then do pull request if both are fine.

          Show
          ann.loraine Ann Loraine added a comment - Please test on Mac and Linux & then do pull request if both are fine.
          Hide
          kkorey Kiran Korey (Inactive) added a comment -

          Works fine on mac as well.

          Show
          kkorey Kiran Korey (Inactive) added a comment - Works fine on mac as well.
          kkorey Kiran Korey (Inactive) made changes -
          Status Needs 1st Level Review [ 10005 ] Pull Request Submitted [ 10101 ]
          ann.loraine Ann Loraine made changes -
          Status Pull Request Submitted [ 10101 ] Needs Testing [ 10002 ]
          Hide
          ann.loraine Ann Loraine added a comment -

          This feature deletes IGB OSGi bundle cache during maven clean lifecycle and goal.

          Test in (1) IDE (Netbeans) and (2) command line maven.

          Steps to test:

          • run IGB 9.0.1
          • observe IGB OSGi container creates v9.0.1-bundle-cache directory in ("dot igb") .igb/bundles directory.

          Note: To determine location of "dot igb" directory on a system, choose Help > About in IGB. Look for a sentence like "Application data and OSGi bundle cache are stored in ..."

          • execute "mvn clean" command in (1) IDE (Netbeans) and (2) command line maven.
          • observe that .igb/bundles/v9.0.1-bundle-cache is deleted but .igb/bundles and any other version specific bundle caches
          Show
          ann.loraine Ann Loraine added a comment - This feature deletes IGB OSGi bundle cache during maven clean lifecycle and goal. Test in (1) IDE (Netbeans) and (2) command line maven. Steps to test: run IGB 9.0.1 observe IGB OSGi container creates v9.0.1-bundle-cache directory in ("dot igb") .igb/bundles directory. Note: To determine location of "dot igb" directory on a system, choose Help > About in IGB. Look for a sentence like "Application data and OSGi bundle cache are stored in ..." execute "mvn clean" command in (1) IDE (Netbeans) and (2) command line maven. observe that .igb/bundles/v9.0.1-bundle-cache is deleted but .igb/bundles and any other version specific bundle caches
          Hide
          ann.loraine Ann Loraine added a comment - - edited

          (Note upon assigning to Sneha for testing.)

          Please test today or next week (Tuesday).
          Also, review: https://www.tutorialspoint.com/maven/maven_build_life_cycle.htm

          Show
          ann.loraine Ann Loraine added a comment - - edited (Note upon assigning to Sneha for testing.) Please test today or next week (Tuesday). Also, review: https://www.tutorialspoint.com/maven/maven_build_life_cycle.htm
          ann.loraine Ann Loraine made changes -
          Assignee Kiran Korey [ kkorey ] Sneha Ramesh Watharkar [ jdaly ]
          Hide
          sneha Sneha Ramesh Watharkar (Inactive) added a comment - - edited

          Worked in Net beans and command prompt too.

          Show
          sneha Sneha Ramesh Watharkar (Inactive) added a comment - - edited Worked in Net beans and command prompt too.
          Hide
          sneha Sneha Ramesh Watharkar (Inactive) added a comment -

          mvn clean worked as expected.
          I was wondering if we build it again then should we not see cache bundles in Roaming/bundles folder?
          I cannot see it after i clean and build again!.
          correct me if i am wrong. Kiran Korey

          Show
          sneha Sneha Ramesh Watharkar (Inactive) added a comment - mvn clean worked as expected. I was wondering if we build it again then should we not see cache bundles in Roaming/bundles folder? I cannot see it after i clean and build again!. correct me if i am wrong. Kiran Korey
          Hide
          kkorey Kiran Korey (Inactive) added a comment -

          The bundles get cached in Roaming/bundles only when you start IGB.
          Build does not cache it, rather creates bundles only in the project directory.

          Show
          kkorey Kiran Korey (Inactive) added a comment - The bundles get cached in Roaming/bundles only when you start IGB. Build does not cache it, rather creates bundles only in the project directory.
          sneha Sneha Ramesh Watharkar (Inactive) made changes -
          Assignee Sneha Ramesh Watharkar [ jdaly ] Kiran Korey [ kkorey ]
          Hide
          sneha Sneha Ramesh Watharkar (Inactive) added a comment -

          Tested and works fine!
          Assigning back to Kiran Korey

          Show
          sneha Sneha Ramesh Watharkar (Inactive) added a comment - Tested and works fine! Assigning back to Kiran Korey
          kkorey Kiran Korey (Inactive) made changes -
          Assignee Kiran Korey [ kkorey ]
          ann.loraine Ann Loraine made changes -
          Fix Version/s 9.0.2 [ 10600 ]
          ieclabau Ivory Blakley (Inactive) made changes -
          Resolution Done [ 10000 ]
          Status Needs Testing [ 10002 ] Closed [ 6 ]
          ieclabau Ivory Blakley (Inactive) made changes -
          Resolution Done [ 10000 ]
          Status Closed [ 6 ] Needs Testing [ 10002 ]
          sneha Sneha Ramesh Watharkar (Inactive) made changes -
          Assignee Sneha Ramesh Watharkar [ jdaly ]
          Hide
          ann.loraine Ann Loraine added a comment -

          When describing what you did regarding testing, indicate that you tested on mac, windows, unix or some subset of these.

          None of the comments above mention if this has been tested on Linux.

          Show
          ann.loraine Ann Loraine added a comment - When describing what you did regarding testing, indicate that you tested on mac, windows, unix or some subset of these. None of the comments above mention if this has been tested on Linux.
          ann.loraine Ann Loraine made changes -
          Rank Ranked higher
          ann.loraine Ann Loraine made changes -
          Sprint B - Summer 2018 [ 48 ] B - Summer 2018, Summer 2018 Part 2 [ 48, 49 ]
          ann.loraine Ann Loraine made changes -
          Rank Ranked higher
          ann.loraine Ann Loraine made changes -
          Resolution Done [ 10000 ]
          Status Needs Testing [ 10002 ] Closed [ 6 ]
          ann.loraine Ann Loraine made changes -
          Workflow Loraine Lab Workflow [ 17875 ] Fall 2019 Workflow Update [ 19827 ]
          ann.loraine Ann Loraine made changes -
          Workflow Fall 2019 Workflow Update [ 19827 ] Revised Fall 2019 Workflow Update [ 21946 ]

            People

            • Assignee:
              sneha Sneha Ramesh Watharkar (Inactive)
              Reporter:
              ann.loraine Ann Loraine
            • Votes:
              0 Vote for this issue
              Watchers:
              Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: