[ 
https://issues.apache.org/jira/browse/NPANDAY-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022674#comment-13022674
 ] 

Lars Corneliussen commented on NPANDAY-414:
-------------------------------------------

Hm,

looks like we added nunit-console2 just for Mono in order to support both 1.1 
and 2.0.

At least that is what I see from this code:

{code:title=plugins\maven-test-plugin\src\main\java\npanday\plugin\test\TesterMojo.java}
    private String getExecutableFor( VendorInfo vendorInfo )
    {
        String exe;
        if ( nunitCommand == null )
        {
            // nunit-console-x86 is included since 2.4.2 (August 2007, 
http://www.nunit.org/index.php?p=releaseNotes&r=2.4.3)
            exe = "nunit-console" + (forceX86 ? "-x86" : "");

            if ( vendorInfo != null )
            {
                Vendor vendor = vendorInfo.getVendor();
                String frameworkVersion = vendorInfo.getFrameworkVersion();
                if ( "MONO".equals( vendor.getVendorName() ) )
                {
                    if ( frameworkVersion == null || 
!frameworkVersion.startsWith( "1.1" ) )
                    {
                        exe = "nunit-console2";
                    }
                }
            }
        }
        else
        {
            exe = nunitCommand;
        }
        return !( nunitHome == null || nunitHome.equals( "" ) ) ? nunitHome + 
File.separator + "bin" + File.separator
            + exe : exe;
    }
{code}

Is that plainly wrong?

> Executable name nunit-console2 not found on Linux
> -------------------------------------------------
>
>                 Key: NPANDAY-414
>                 URL: https://issues.apache.org/jira/browse/NPANDAY-414
>             Project: NPanday
>          Issue Type: Bug
>          Components: Maven Plugins
>    Affects Versions: 1.3.1-incubating
>         Environment: $ mvn -v
> Apache Maven 2.2.1 (rdebian-4)
> Java version: 1.6.0_24
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.24/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.35-28-generic" arch: "amd64" Family: "unix"
>            Reporter: John R. Fallows
>
> When npanday-test-plugin is constructing the command line to execute unit 
> tests with the NUnit console, it uses the executable name "nunit-console2".
> On Ubuntu 10.10, the nunit-console 2.4.7 package ships with 
> /usr/bin/nunit-console but no executable named nunit-console2, resulting in 
> the following build error.
> {code}
> [INFO] 
> [INFO] /bin/sh: nunit-console2: not found
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to