[
https://issues.apache.org/jira/browse/NPANDAY-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13027793#comment-13027793
]
John R. Fallows commented on NPANDAY-414:
-----------------------------------------
It seems that some earlier distributions had distinguished the 2.0 Mono runtime
from the 1.1 Mono runtime by having both nunit-console and nunit-console2
executables on the path, presumably for backwards compatibility.
However, the Mono distribution for Ubuntu 10.10+ currently uses the 2.0 Mono
runtime for nunit-console executable, and nunit-console2 does not exist.
Therefore, the current convention breaks the build when nunit-console2 cannot
be found.
The contents of nunit-console are as follows:
{code}
$ which nunit-console
/usr/bin/nunit-console
$ cat /usr/bin/nunit-console
#!/bin/sh
exec /usr/bin/cli /usr/lib/nunit/nunit-console.exe "$@"
$ ls -l /usr/bin/cli
lrwxrwxrwx 1 root root 21 2010-02-22 00:03 /usr/bin/cli -> /etc/alternatives/cli
$ ls -l /etc/alternatives/cli
lrwxrwxrwx 1 root root 13 2010-02-22 00:03 /etc/alternatives/cli ->
/usr/bin/mono
{code}
It looks as though an attempt was made to retain some degree of backwards
compatibility for direct references to nunit-console2.exe, as shown by the
contents of /usr/lib/nunit.
{code}
$ ls -l /usr/lib/nunit
lrwxrwxrwx 1 root root 17 2011-04-19 16:34 nunit-console2.exe ->
nunit-console.exe
-rwxr-xr-x 1 root root 4096 2010-01-29 00:59 nunit-console.exe
-rw-r--r-- 1 root root 3736 2010-01-29 00:59 nunit-console.exe.config
-rw-r--r-- 1 root root 19456 2010-01-29 00:59 nunit-console-runner.dll
{code}
> 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