[Mono-list] NAnt & Mono

Giuseppe Greco giuseppe.greco@agamura.com
04 May 2003 13:28:24 +0200


Hi all,

I started using NAnt instead of make... and I'm building
all my Mono and non-Mono projects with it.

NAnt works excellently on Windows with .NET (even if I don't
use do develop on Windows), but there are some small problems
on Linux with Mono (of course, they will disappear as soon as
Mono becomes more mature)...

My development platform is based on RedHat Linux 8.0, and
I'm using the latest version of Mono from CVS (I checked it
out yesterday).

I've a build file which contains a target like this
(it works whit .NET on Windows):

<target name="build">
  ...
  <ifnot uptodatefile="${build.dir}/images/corplogo.xcf"
    comparefile="corplogo.xcf">
    <exec program="sh" commandline="xcftoall --gif corplogo.xcf"/>
  </ifnot>
  ...
</target>


When trying to execute the target above, I get the following
error messages:

INTERNAL ERROR
System.NotImplementedException: The requested feature is not yet
implemented
in (unmanaged) /usr/local/lib/libmono.so.0(mono_raise_exception+0x20)
[0x4008c82e]
in (unmanaged) /usr/local/lib/libmono.so.0 [0x40093b58]
in <0x0002e> 06 System.CurrentTimeZone:GetTimeZoneData
(int,long[]&,string[]&)
in <0x00143> 00 System.CurrentTimeZone:GetDaylightChanges (int)
in <0x00064> 00 System.TimeZone:IsDaylightSavingTime (System.DateTime)
in <0x00026> 00 System.CurrentTimeZone:GetUtcOffset (System.DateTime)
in <0x000b4> 00 System.DateTime:.ctor (bool,long)
in <0x00048> 00 System.DateTime:FromFileTime (long)
in <0x0002f> 00 System.IO.FileSystemInfo:get_LastWriteTime ()
in <0x00078> 08 System.IO.FileSystemInfo:get_LastWriteTime ()
in <0x002bd> 00 SourceForge.NAnt.Tasks.IfTask:get_ConditionsTrue ()
in <0x0000d> 00 SourceForge.NAnt.Tasks.IfNotTask:get_ConditionsTrue ()
in <0x00011> 00 SourceForge.NAnt.Tasks.IfTask:ExecuteTask ()
in <0x0016a> 00 SourceForge.NAnt.Task:Execute ()
in <0x00297> 00 SourceForge.NAnt.Task:Execute ()
in <0x00477> 00 SourceForge.NAnt.Target:Execute ()
in <0x000d4> 00 SourceForge.NAnt.Project:Execute (string)
in <0x00140> 00 SourceForge.NAnt.Project:Execute ()
in <0x0019a> 00 SourceForge.NAnt.Project:Run ()

Does anybody know from where comes this error? Does anybody
build projects with NAnt on Linux?

Just another point of discussion:
I think it would be great to include NAnt in the Mono
distribution as the 'official' build tool...
What do you think about that?

Thanks,

-- 
----------------------------------------
Giuseppe Greco

::agamura::

phone:  +41 (0)91 604 67 65
mobile: +41 (0)76 390 60 32
email:  giuseppe.greco@agamura.com
web:    www.agamura.com
----------------------------------------