groovy
  1. groovy
  2. GROOVY-3045

JVM properties are not correctly used under Linux

    Details

    • Testcase included:
      yes
    • Number of attachments :
      0

      Description

      While trying to use x4juli with groovy I recognize that the second JVM property is not used as expected.

      To reproduce the problem you can try the following script with Ubuntu (maybe also applicable with other Linux versions):

      groovy -Djava.foo=test -Djava.bar -e "println System.getProperty('java.foo'); println System.getProperty('java.bar');"

      Script will end with
      Caught: java.io.FileNotFoundException: /export/home/marcel/java.bar (/export/home/marcel/java.bar)

      I tested this also with Windows Vista where it works as expected.

        Activity

        Hide
        Paul King added a comment -

        Can you provide output from:

        groovy --version
        echo $JAVA_HOME
        echo $GROOVY_HOME
        uname -a
        

        I have seen this error myself but can't remember which versions I was using at the time. Just trying this with 1.5.6 on Ubuntu 8.04 I can't reproduce.

        Show
        Paul King added a comment - Can you provide output from: groovy --version echo $JAVA_HOME echo $GROOVY_HOME uname -a I have seen this error myself but can't remember which versions I was using at the time. Just trying this with 1.5.6 on Ubuntu 8.04 I can't reproduce.
        Hide
        Marcel Szalbach added a comment -

        Hi here the system informations:
        groovy --version
        Groovy Version: 1.5.6 JVM: 10.0-b23

        echo $JAVA_HOME
        /opt2/JavaCentral/linux/jdk1.6.0_07

        echo $GROOVY_HOME
        /opt2/JavaCentral/groovy-1.5.6

        uname -a
        Linux 2.6.22-15-generic #1 SMP Wed Aug 20 18:39:13 UTC 2008 i686 GNU/Linux

        Now I have tested this on different OS with the same environment settings and currently I can say it works under Ubuntu 6.06.1 LTS and SunOS 5.10 but not with Ubuntu 7.10 and Ubuntu 8.04.

        Show
        Marcel Szalbach added a comment - Hi here the system informations: groovy --version Groovy Version: 1.5.6 JVM: 10.0-b23 echo $JAVA_HOME /opt2/JavaCentral/linux/jdk1.6.0_07 echo $GROOVY_HOME /opt2/JavaCentral/groovy-1.5.6 uname -a Linux 2.6.22-15-generic #1 SMP Wed Aug 20 18:39:13 UTC 2008 i686 GNU/Linux Now I have tested this on different OS with the same environment settings and currently I can say it works under Ubuntu 6.06.1 LTS and SunOS 5.10 but not with Ubuntu 7.10 and Ubuntu 8.04.
        Hide
        blackdrag blackdrag added a comment -

        looks like that is fixed

        Show
        blackdrag blackdrag added a comment - looks like that is fixed

          People

          • Assignee:
            blackdrag blackdrag
            Reporter:
            Marcel Szalbach
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: