ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jay <ji...@nitelife.co.uk>
Subject Repeated setting of sysproperties in junit
Date Thu, 01 May 2008 14:45:25 GMT

Hi, I'm fairly new to Ant and would appreciate some advice:

I have targets in a number of build files that all set the same group of
system properties for different junit tests. The values set will always be
the same as the system properties are set from ant properties loaded from a
properties file.

Obviously I don't really want to copy-and-paste identical blocks into each
target like:
<property file="foo.properties">
<sysproperty key="sprop" key="${antprop.from.file}>
<sysproperty key="sprop2" key="${antprop2.from.file}>
...

I can't create a seperate target and use antcall as this isn't supported
inside the junit tag. Equally well it doesn't seem to support macros created
using macrodef.

Any suggestions?

Thanks a lot.

J.
-- 
View this message in context: http://www.nabble.com/Repeated-setting-of-sysproperties-in-junit-tp16993279p16993279.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message