The "if" attribute definitely seems to be malfunctioning. Here is my test build:
<project name="Test" default="test">
<target name="dependency">
<echo message="This is a dependency. You shouldn't see me
on Linux." />
</target>
<target name="test" depends="dependency" if="${platform::is-win32()}">
<echo message="Is Win32: ${platform::is-win32()}" />
</target>
</project>
The results of running this on Gentoo:
$nant test.build
<...snipped irrelevant messages...>
Target(s) specified: test
dependency:
[echo] This is a dependency. You shouldn't see me on Linux.
BUILD SUCCEEDED
Total time: 0.1 seconds.
On Thu, 02 Dec 2004 12:59:29 +0900, Ian MacLean <[EMAIL PROTECTED]> wrote:
> Interesting. Looking at the build file it should never build userdoc on
> linux
>
> <target name="install" depends="install-windows, install-linux" />
>
> <target name="install-windows" depends="userdoc"
> if="${platform::is-win32()}">
> ...
> <target name="install-linux" depends="build" if="${platform::is-unix()}">
>
> Could you run a small test build to verify that ${platform::is-win32()}
> is correctly returning false on your system ?
>
> The reason we skip it on linux is because mcs does not support the /doc
> argument which generates the xml used by ndoc. However a patch for this
> will soon be applied to mono svn so we'll build it then.
>
> That makes it even stranger that ndoc is taking so long when it doesn't
> have valid doc.xml to process - or maybe thats the reason. What does the
> final html doc look like ?
>
> Ian
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users