ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12024] - [PATCH] Enable junit to inherit Ant properties as system properties
Date Mon, 12 May 2003 14:10:13 GMT
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 bodewig@apache.org  2003-05-12 14:10 -------
<propertyset> is now a nested element of the <ant> task variations and as
<syspropertyset> for <java> and <junit>.

There is currently no way to specify "all Ant properties" AFAICS, but to pass
all properties that match a certain pattern to your testcases with a prefix of
"ant" would look like this:

<junit ...>
  <syspropertyset>
    <propertyref regexp="${pattern}"/>
    <mapper type="glob" from="*" to "ant*"/>
  </syspropertyset>
</junit>

this is a rather complex example and there are simpler selections mechanisms than
regular expressions.

Leaving the report open to remind me that docs are still missing.

Mime
View raw message