You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by "Vincent Massol (JIRA)" <ca...@jakarta.apache.org> on 2005/01/27 22:17:37 UTC

[jira] Updated: (CACTUS-99) System Property not set when passed in as

     [ http://issues.apache.org/jira/browse/CACTUS-99?page=history ]

Vincent Massol updated CACTUS-99:
---------------------------------

    Fix Version:     (was: 1.7)

> System Property not set when passed in as <jvmarg>
> --------------------------------------------------
>
>          Key: CACTUS-99
>          URL: http://issues.apache.org/jira/browse/CACTUS-99
>      Project: Cactus
>         Type: Bug
>   Components: Framework
>     Versions: 1.5
>  Environment: Operating System: Windows XP
> Platform: PC
>     Reporter: Aaron

>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org