Futher to what Dan suggested, I had a similar problem with executing
tests that used ODBC (which i didnt want to run on my unix box) for
this reason I used the following code in my maven.xml. I know it isnt
exactly what you are after but it should lead you in the right
direction. It is also probably not the most elegant solution but it
works for me.
Regards,
-Corey
Code fragment from maven.xml
<preGoal name="build:start">
<!-- 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>
<j:set var="test.extra.excludes" value="**/*MsAccess*.java"/>
</j:when>
<j:otherwise>
<ant:echo>Excluding MsAccess(ODBC) Tests</ant:echo>
<j:set var="test.extra.excludes" value="**/*MsAccess*.java"/>
</j:otherwise>
</j:choose>
</preGoal>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]