Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1246

add a version checker for karaf start script

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.2, 4.0.0.M3
    • Component/s: karaf-core
    • Labels:
      None

      Description

      Since the upcoming 3.0 release of Karaf is designed to consume JRE6 as minimum version we should make it possible to give a user who's still using JRE5 a proper message.

      This issue is similar to SM-2135 (which also has a possible solution attached)

        Activity

        Hide
        jbonofre Jean-Baptiste Onofré added a comment -

        My bad, version check is another Jira.

        Show
        jbonofre Jean-Baptiste Onofré added a comment - My bad, version check is another Jira.
        Hide
        jbonofre Jean-Baptiste Onofré added a comment -

        In addition of argument to start script, I would add a status script.

        I will tackle the windows script update.

        Show
        jbonofre Jean-Baptiste Onofré added a comment - In addition of argument to start script, I would add a status script. I will tackle the windows script update.
        Hide
        achim_nierbeck Achim Nierbeck added a comment -

        thanks for contributing, applied the patch.
        Now we still need something similar for Windows ...
        anyone out there

        Show
        achim_nierbeck Achim Nierbeck added a comment - thanks for contributing, applied the patch. Now we still need something similar for Windows ... anyone out there
        Hide
        nick.smith@techopfinance.com Nick Smith added a comment - - edited

        This java version check fails on our Solaris 11 or Redhat 5.7 (2.6.18-274.el5xen) boxes.

        For some reason the '\d' in the egrep pattern doesn't match the digit but replacing when replaced with [0-9] the check works fine.

        I've attached the patch.

        Regards

        Show
        nick.smith@techopfinance.com Nick Smith added a comment - - edited This java version check fails on our Solaris 11 or Redhat 5.7 (2.6.18-274.el5xen) boxes. For some reason the '\d' in the egrep pattern doesn't match the digit but replacing when replaced with [0-9] the check works fine. I've attached the patch. Regards
        Hide
        achim_nierbeck Achim Nierbeck added a comment -

        Added a check for the unix "world"

        One with better windows scripting skills needs to do the same for windows.

        Author: anierbeck
        Date: Wed May 22 08:23:41 2013
        New Revision: 1485112

        URL: http://svn.apache.org/r1485112

        Show
        achim_nierbeck Achim Nierbeck added a comment - Added a check for the unix "world" One with better windows scripting skills needs to do the same for windows. Author: anierbeck Date: Wed May 22 08:23:41 2013 New Revision: 1485112 URL: http://svn.apache.org/r1485112
        Hide
        chris@die-schneider.net Christian Schneider added a comment -

        I think we can move this to 3.0.1 as karaf works without it

        Show
        chris@die-schneider.net Christian Schneider added a comment - I think we can move this to 3.0.1 as karaf works without it

          People

          • Assignee:
            jbonofre Jean-Baptiste Onofré
            Reporter:
            pieber Andreas Pieber
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development