SonarQube Runner
  1. SonarQube Runner
  2. SONARUNNER-27

Log the value of the system property "sun.arch.data.model" at start-up

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Indeed this property value is used by Obeo parsers. See http://www.oracle.com/technetwork/java/hotspotfaq-138619.html#64bit_detection.

      We expect to get the following log :

      Runner configuration file: .....
      Project configuration file: NONE
      Runner version: 1.4-SNAPSHOT
      Java version: 1.6.0_31, vendor: Apple Inc.
      OS name: "Mac OS X", version: "10.6.8"
      Arch: "x86_64", sun.arch.data.model: "64"
      Server: http://localhost:9000
      

        Activity

        Hide
        Evgeny Mandrikov added a comment -

        Wow, this property is specific to Oracle JVM, what about others? FYI for IMB JVM property is "com.ibm.vm.bitmode".

        Show
        Evgeny Mandrikov added a comment - Wow, this property is specific to Oracle JVM, what about others? FYI for IMB JVM property is "com.ibm.vm.bitmode".
        Hide
        Evgeny Mandrikov added a comment -

        Moreover according to change in r5849: in case if property not specified, we will print "null", which is IMO not user-friendly.

        Show
        Evgeny Mandrikov added a comment - Moreover according to change in r5849: in case if property not specified, we will print "null", which is IMO not user-friendly.
        Hide
        Fabrice Bellingard added a comment -

        Well, we can't spit all the system properties in the log - even in Debug mode, as this would be too long. If Obeo guys need this property, then we can provide them with it. I've made a modification to show this property only when Debug mode is activated.

        Show
        Fabrice Bellingard added a comment - Well, we can't spit all the system properties in the log - even in Debug mode, as this would be too long. If Obeo guys need this property, then we can provide them with it. I've made a modification to show this property only when Debug mode is activated.
        Hide
        Evgeny Mandrikov added a comment -

        Then maybe instead of patching sonar-runner, we could provide dedicated plugin for Obeo guys, which will just print value of property during analysis startup?

        Show
        Evgeny Mandrikov added a comment - Then maybe instead of patching sonar-runner, we could provide dedicated plugin for Obeo guys, which will just print value of property during analysis startup?
        Hide
        Freddy Mallet added a comment -

        Manually tested !

        @Fabrice and @Evgeny, Obeo guys don't need anything, the request comes from the support team

        Show
        Freddy Mallet added a comment - Manually tested ! @Fabrice and @Evgeny, Obeo guys don't need anything, the request comes from the support team
        Hide
        Evgeny Mandrikov added a comment -

        @Freddy, anyway as I know all methods to detect bitmode is specific to JVM implementation.

        Show
        Evgeny Mandrikov added a comment - @Freddy, anyway as I know all methods to detect bitmode is specific to JVM implementation.

          People

          • Assignee:
            Fabrice Bellingard
            Reporter:
            Freddy Mallet
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: