DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27728>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27728

System Property not set when passed in as <jvmarg>

           Summary: System Property not set when passed in as <jvmarg>
           Product: Cactus
           Version: 1.5
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Framework
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to