Uploaded image for project: 'Cactus'
  1. Cactus
  2. CACTUS-99

System Property not set when passed in as <jvmarg>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.5
    • None
    • Framework
    • None
    • Operating System: Windows XP
      Platform: PC
    • 27728

    Description

      Passing in a jvmarg as a nested element inside the cactus ant task i.e.:
      <cactus warfile= ...>
      <jvmarg value="-Dfoo=bar"/>
      ....
      </cactus>
      The Ant task passes it to the runtime:
      [cactus] Executing 'C:\j2sdk1.4.1_01\jre\bin\java.exe' with arguments:
      [cactus] '-Dfoo=bar'
      [cactus] '-Dcactus.filterRedirectorName=FilterRedirector'
      [cactus] '-Dcactus.servletRedirectorName=ServletRedirector'
      [cactus] '-Dcactus.contextURL=http://localhost:8081/prototype-test'

      But, a System.getProperty(foo); in a test that extends ServletTestCase returns
      null. I also notice that when enumerating through the system properties in my
      test case, both cactus.filterRedirectorName and cactus.servletRedirectorName
      no longer are set.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adb_80@yahoo.com Aaron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: