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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12024

[PATCH] Enable junit to inherit Ant properties as system properties





------- Additional Comments From [EMAIL PROTECTED]  2003-04-02 17:46 -------
My own solution was to define a new PropertySet data type (called 
<syspropertyset> inside <junit> to be consistent) that allows you to easily 
pass down a bunch or a few Ant properties, possibly renaming them allow the 
way. To use it, I simply extended <java> and <junit>, and called my version 
<javax> and <junitx>. (No point for me in figthing for something to make it to 
Ant when I can use it myself, when the Ant community doesn't care that much 
about the feature I want).

Here's a snippet of one of my scripts. --DD

    <junitx ...>
      ...
      <syspropertyset>
        <propertyref prefix="testall." />
        <propertyref prefix="runtime-" />
        <mapper type="regexp" from="runtime-(.*)" to="\1" />
      </syspropertyset>
    </junitx>

Reply via email to