maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <Joerg.Schai...@Elsag-Solutions.com>
Subject RE: Problem dynamically excluding some tests
Date Fri, 03 Dec 2004 09:55:15 GMT
Corey Scott wrote on Friday, December 03, 2004 8:25 AM:
[snip]
> Extract from my maven.xml:
> <preGoal name="test">
> <!-- Exclude MsAccess (ODBC) tests from Non-Windows runs -->   
> 	<j:choose> <j:when
> 	test="${systemScope['os.name'].startsWith('Windows')}">
> 	<ant:echo>Including MsAccess(ODBC) Tests</ant:echo> <ant:property
> name="test.extra.excludes" value="**/*MsAccess*.java"/>
> 	</j:when>
> 	<j:otherwise>
> 	<ant:echo>Excluding MsAccess(ODBC) Tests</ant:echo>
> 	<ant:property name="test.extra.excludes"
> value="FaKecLaSs.java"/>
> 	</j:otherwise>
> </j:choose>
> </preGoal>

These are not ant properties. Set them for the JellyContext. Use j:set (assuming you have
bound J to jelly:core).

- Jörg

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


Mime
View raw message