[ 
http://jira.codehaus.org/browse/MANT-6?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Bentmann closed MANT-6.
--------------------------------

         Assignee: Benjamin Bentmann
       Resolution: Won't Fix
    Fix Version/s: 2.1

bq. IMO, it's better to fail than to not run the tests.
That might have been a good choice for the initial design of the plugin. 
Introducing this behavior now would cause unexpected build failures for 
existing users so we should stick with the simple warning.

Nevertheless, one can always make the build fail by customizing the 
{{build.xml}}. I extended the site docs in 
[r640016|http://svn.apache.org/viewvc?view=rev&revision=640016] to provide a 
copy&paste snippet for this.

> "test" targets should fail if junit.jar not present
> ---------------------------------------------------
>
>                 Key: MANT-6
>                 URL: http://jira.codehaus.org/browse/MANT-6
>             Project: Maven 2.x Ant Plugin
>          Issue Type: Improvement
>            Reporter: Matt Raible
>            Assignee: Benjamin Bentmann
>             Fix For: 2.1
>
>
> IMO, it's better to fail than to not run the tests.
>         <available classname="junit.framework.TestCase" 
> property="junit.present"/>
>         <fail unless="junit.present" message="Please copy 
> web/WEB-INF/lib/junit.jar into ${env.ANT_HOME}/lib"/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to