Sometimes during local test runs I want to be able to override predefined 
properties, in a flexible manner.

Example: During a command line functional test run (tests/build.xml), I want to 
send the test output to stdout and also I want my entire build to fail if at 
least one test fails.

This is simple to achieve if I set junit.formatter.usefile=false and 
junit.haltonfailure=true. However, this values come predefined (through a 
series of imports, the values that take precedence are those from 
jboss-head/tools/etc/buildmagic/task.properties) and they can only be 
overridden on command line using -Dpropname=value

Is there an already existing way to specify these overrides, short of listing 
them on the command line?

If it isn't, a possibility would be to list them in a local build.properties 
file and the build script to generate -D flags based on its content. The 
properties will be overridden only when the build is initiated by the build.sh 
script.

I changed JBossMessaging tests/build.sh to behave this way. If you think it is 
an useful mechanism, we could integrate it in the generic build

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859969#3859969

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859969


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to