Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.5
-
None
-
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.