Re: [nant-dev] Unable to build NAnt 0.85 on Linux
Giuseppe, I can't reproduce this on my gentoo box right here but I think its a bug in Mono, as it was reported by others too ... The following code apparently results in an ArgumentException : using System.Globalization; class Test { static void Main() { CultureInfo.GetCultures(CultureTypes.AllCultures); } } Can you check wheter you have ICU support enabled in Mono ? Gert - Original Message - From: Giuseppe Greco [EMAIL PROTECTED] To: NAnt Developers [EMAIL PROTECTED] Sent: Saturday, December 13, 2003 5:26 PM Subject: [nant-dev] Unable to build NAnt 0.85 on Linux Hi all, I'm not able to build the last version of NAnt from CVS. Here below are the error messages: BUILD FAILED INTERNAL ERROR System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --- System.TypeInitializationException: An exception was thrown by the type initializer for NAnt.DotNet.Tasks.CompilerBase --- System.ArgumentException: An invalid argument was specified. in (unmanaged) /usr/local/lib/libmono.so.0(mono_raise_exception+0x1b) [0x4007e6a7] in (unmanaged) /usr/local/lib/libmono.so.0 [0x400a5db9] in 0x00084 System.Globalization.CultureInfo:Construct (int,string,bool) in 0x00084 System.Globalization.CultureInfo:.ctor (int,bool) in 0x00012 System.Globalization.CultureInfo:.ctor (int) in 0x001a3 System.Globalization.CultureInfo:GetCultures (System.Globalization.CultureTypes) in 0x000ba NAnt.DotNet.Tasks.CompilerBase:.cctor () --- End of inner exception stack trace --- in (unmanaged) NAnt.DotNet.Tasks.CompilerBase:.ctor () in 0x0003d NAnt.DotNet.Tasks.CscTask:.ctor () in (unmanaged) /usr/local/lib/libmono.so.0 [0x40045f4f] in (unmanaged) /usr/local/lib/libmono.so.0(mono_runtime_invoke+0x23) [0x4007c69b] in (unmanaged) /usr/local/lib/libmono.so.0(mono_runtime_invoke_array+0xb6) [0x4007d2ae] in (unmanaged) /usr/local/lib/libmono.so.0 [0x40082a98] in 0x0009c System.Reflection.MonoCMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],Sys tem.Globalization.CultureInfo) --- End of inner exception stack trace --- in 0x00103 System.Reflection.MonoCMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],Sys tem.Globalization.CultureInfo) in 0x00022 System.Reflection.MonoCMethod:Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Glo balization.CultureInfo) in 0x00256 System.Activator:CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[ ],System.Globalization.CultureInfo,object[]) in 0x00050 System.Reflection.Assembly:CreateInstance (string,bool,System.Reflection.BindingFlags,System.Reflection.Binder,object[ ],System.Globalization.CultureInfo,object[]) in 0x00060 NAnt.Core.TaskBuilder:CreateTask () in 0x00111 NAnt.Core.TypeFactory:CreateTask (System.Xml.XmlNode,NAnt.Core.Project) in 0x00017 NAnt.Core.Project:CreateTask (System.Xml.XmlNode,NAnt.Core.Target) in 0x00287 NAnt.Core.Target:Execute () in 0x000d8 NAnt.Core.Project:Execute (string,bool) in 0x0030d NAnt.Core.Project:Execute () in 0x00173 NAnt.Core.Project:Run () I'm running NAnt on RH Linux 9 with the last version of Mono from CVS. Thanks, Gius_. -- Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] Unable to build NAnt 0.85 on Linux
OK, after having installed ICU the whole works again... Thanks, Gius_. On Sat, 2003-12-13 at 17:32, Gert Driesen wrote: Giuseppe, I can't reproduce this on my gentoo box right here but I think its a bug in Mono, as it was reported by others too ... The following code apparently results in an ArgumentException : using System.Globalization; class Test { static void Main() { CultureInfo.GetCultures(CultureTypes.AllCultures); } } Can you check wheter you have ICU support enabled in Mono ? Gert - Original Message - From: Giuseppe Greco [EMAIL PROTECTED] To: NAnt Developers [EMAIL PROTECTED] Sent: Saturday, December 13, 2003 5:26 PM Subject: [nant-dev] Unable to build NAnt 0.85 on Linux Hi all, I'm not able to build the last version of NAnt from CVS. Here below are the error messages: BUILD FAILED INTERNAL ERROR System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --- System.TypeInitializationException: An exception was thrown by the type initializer for NAnt.DotNet.Tasks.CompilerBase --- System.ArgumentException: An invalid argument was specified. in (unmanaged) /usr/local/lib/libmono.so.0(mono_raise_exception+0x1b) [0x4007e6a7] in (unmanaged) /usr/local/lib/libmono.so.0 [0x400a5db9] in 0x00084 System.Globalization.CultureInfo:Construct (int,string,bool) in 0x00084 System.Globalization.CultureInfo:.ctor (int,bool) in 0x00012 System.Globalization.CultureInfo:.ctor (int) in 0x001a3 System.Globalization.CultureInfo:GetCultures (System.Globalization.CultureTypes) in 0x000ba NAnt.DotNet.Tasks.CompilerBase:.cctor () --- End of inner exception stack trace --- in (unmanaged) NAnt.DotNet.Tasks.CompilerBase:.ctor () in 0x0003d NAnt.DotNet.Tasks.CscTask:.ctor () in (unmanaged) /usr/local/lib/libmono.so.0 [0x40045f4f] in (unmanaged) /usr/local/lib/libmono.so.0(mono_runtime_invoke+0x23) [0x4007c69b] in (unmanaged) /usr/local/lib/libmono.so.0(mono_runtime_invoke_array+0xb6) [0x4007d2ae] in (unmanaged) /usr/local/lib/libmono.so.0 [0x40082a98] in 0x0009c System.Reflection.MonoCMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],Sys tem.Globalization.CultureInfo) --- End of inner exception stack trace --- in 0x00103 System.Reflection.MonoCMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],Sys tem.Globalization.CultureInfo) in 0x00022 System.Reflection.MonoCMethod:Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Glo balization.CultureInfo) in 0x00256 System.Activator:CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[ ],System.Globalization.CultureInfo,object[]) in 0x00050 System.Reflection.Assembly:CreateInstance (string,bool,System.Reflection.BindingFlags,System.Reflection.Binder,object[ ],System.Globalization.CultureInfo,object[]) in 0x00060 NAnt.Core.TaskBuilder:CreateTask () in 0x00111 NAnt.Core.TypeFactory:CreateTask (System.Xml.XmlNode,NAnt.Core.Project) in 0x00017 NAnt.Core.Project:CreateTask (System.Xml.XmlNode,NAnt.Core.Target) in 0x00287 NAnt.Core.Target:Execute () in 0x000d8 NAnt.Core.Project:Execute (string,bool) in 0x0030d NAnt.Core.Project:Execute () in 0x00173 NAnt.Core.Project:Run () I'm running NAnt on RH Linux 9 with the last version of Mono from CVS. Thanks, Gius_. -- Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers -- Giuseppe Greco ::agamura:: phone: +41 (0)91 604 67 65 mobile: +41 (0)76 390 60 32 email: [EMAIL PROTECTED] web:www.agamura.com --- This SF.net
[nant-dev] Property and function names
Hi! Quick Summary: This message discusses changes that are going to be made to NAnt, which may break your build files in future releases. Before we make it, we'd like to hear your opinion on the subject As you may know, there's an ongoing effort to implement expression evaluator for NAnt. We'll be supporting expressions in all places where property expansion is supported now. We'll use the same tag: ${...} for both property expansion and embedded expressions. Recently, we've discussed various naming conventions for properties and functions. I'd like to present you with the results, expecting to hear your opinion. Please let us know if the proposed changes to naming conventions would break any of your existing build scripts. Scroll to the end of this message for instruction for downloading a test release of NAnt with expression evaluator. Jarek PROPERTY NAMES: === rationale Currently, NAnt imposes no restrictions on property names. Basically any string can be a property name: [EMAIL PROTECTED](*[EMAIL PROTECTED], 12345 or even +,-,*,/. This may cause problems with expression evaluator, so we've decided to formalize the naming conventions. /rationale definition A valid property name is a sequence of the following characters: letters 'A' through 'Z' (uppercase or lowercase) digits '0' through '9' '_'(underscore) '.' (dot) '-' (dash or minus) The property name must start with a letter or an underscore and must end with a letter, underscore or digit. /definition examples The following would be legal property names: propertyname property.name.with.dots property-name-with-dashes property.name-with.both-dots.and-dashes __property__ property1 property1.0 property2.0.0 _property-2-1__ property-1-name_ property-1.0-name The following property names would be ILLEGAL: [EMAIL PROTECTED]@$!@ (contains illegal characters) .a (starts with a dot) -a (starts with a dash) 1a (starts with a digit) a.aaa.a.a.a.a- (ends with a dash) a.aaa.a.a.a.a. (ends with a dot) /examples FUNCTION NAMES: === rationale We need to formally define function names so that they are clean, readable, maintainable and allow for future expansion. We've decided to follow XPath style of naming functions. Additionally we've introduced the concept of prefixes (namespaces) so that similar functions can be groupped by category. /rationale definition Names of all functions available in expression evaluator will have the following form: prefix::function-name-with-dashes-to-separate-words() The prefix is a sequence of the following characters: letters (a-z - lowercase only) digits (0-9) The prefix must start with a letter. function-name-with-dashes-to-separate-words is a sequence of the following characters: letters (a-z - lowercase only) digits '0' through '9' '-' (dash) Function name must start with a letter and must not end with a dash. Prefix and function name are separated by a double colon operator ::. /definition examples The following function names are LEGAL: string::starts-with() cvs::get-file-revision() nant::property-exists() file::exists() directory::exists() office2000::get-msword-path() linux::is-kernel-2-6() The following would be ILLEGAL function names: ::() (prefix must be lowercase) 1::bbb() (prefix must not start with a digit) ::BBB-() (function name must not end with a dash) ::0123aaaBBB() (function name must not start with a digit) ::-()(function name must not start with a dash) linux::is-kernel-2.6() (contains disallowed character) linux::is-kernel-2_6() (contains disallowed character) /examples HOW TO GET IT: == There's a test release of NAnt with expression evaluator support available at: http://jaak.sav.net/nant-ee/nant-ee-test4.zip (built with .NET 1.1) The code is in CVS in branch EE-patches so you may try to compile. You are encouraged to try to use it on your build files to see if they don't break. The ZIP contains preliminary user documentation for functions (doc/help/functions.html), so you can see what is going to be available. There's a command line option to disable expression evaluator. Use it if you have problems and send us the bug report. If you like screenshots and VIM is your favourite editor, look at the upcoming feature: http://jaak.sav.net/nant-ee/vim-screenshot.gif --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
[nant-dev] SUBMISSION: Path Task
(This is a resend. I didn't see it come across the list the first time I sent it. My apologies if it comes through twice) Hi All, Attached is a zip file containing a task called path. This task extracts path information from a given partial (or complete) path name and optionally expands it to a fully-qualified path, using either the current working directory or the Project's base directory as the root, and places in a designated property. I looked through the list of tasks and didn't see anything that did something like this (and we needed it) so after implementing it in a script task, I decided to code it up as a full-fledged task and submit it in the hope that it will be useful to others. I wrote it is as being in the Nant.Core namespace because that is where copy and mkdir are (and we seem to always be manipulating paths in our build files) but if the project's admins prefer that it be a somewhere else in NAnt or submitted to NAntContrib instead that is fine by me (I didn't cross post, but I will send it to that list if you like). The task is accompanied by 12 tests, and is fully documented. Best, Bill William E. Caputo ThoughtWorks, Inc. http://www.williamcaputo.com idia ktesis, koine chresis Hi All, Attached is a zip file containing a task called path. This task extracts path information from a given partial (or complete) path name and optionally expands it to a fully-qualified path, using either the current working directory or the Project's base directory as the root, and places in a designated property. I looked through the list of tasks and didn't see anything that did something like this (and we needed it) so after implementing it in a script task, I decided to code it up as a full-fledged task and submit it in the hope that it will be useful to others. I wrote it is as being in the Nant.Core namespace because that is where copy and mkdir are (and we seem to always be manipulating paths in our build files) but if the project's admins prefer that it be a somewhere else in NAnt or submitted to NAntContrib instead that is fine by me (I didn't cross post, but I will send it to that list if you like). The task is accompanied by 12 tests, and is fully documented. Best, Bill William E. Caputo ThoughtWorks, Inc. http://www.williamcaputo.com idia ktesis, koine chresis PathTask.zip Description: Zip archive
Re: [nant-dev] Mono and NAnt
Kevin, Do you have mono built with the ICU stuff ? That was the cause of the previous issue. Ian Kevin Jones wrote: I'm trying to build NAnt using .Mono on Linux. I've got the latest CVS snapshot of NAnt and version .29 of Mono. I'm getting the following exception in the make nant step System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --- System.TypeInitializationException: An exception was thrown by the type initializer for NAnt.DotNet.Tasks.CompilerBase --- System.ArgumentException: An invalid argument was specified. This looks similar to this: http://www.mail-archive.com/[EMAIL PROTECTED]/msg02651.html. I wondered if anybody else had seen this and/or knows how to fix it? I can post the full stack trace if necessary, Thanks, Kevin Jones --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] SUBMISSION: Path Task
This looks good William. However I'm thinking that the new function support will be easier to use to do this kind of stuff. the following path related functions will be included: path.changeextension path.combine path.getdirectoryname path.getextension path.getfilename path.getfilenamewithoutextension path.getfullpath path.getpathroot path.gettempfilename path.gettemppath path.hasextension path.ispathrooted Ian William E Caputo wrote: (This is a resend. I didn't see it come across the list the first time I sent it. My apologies if it comes through twice) Hi All, Attached is a zip file containing a task called path. This task extracts path information from a given partial (or complete) path name and optionally expands it to a fully-qualified path, using either the current working directory or the Project's base directory as the root, and places in a designated property. I looked through the list of tasks and didn't see anything that did something like this (and we needed it) so after implementing it in a script task, I decided to code it up as a full-fledged task and submit it in the hope that it will be useful to others. I wrote it is as being in the Nant.Core namespace because that is where copy and mkdir are (and we seem to always be manipulating paths in our build files) but if the project's admins prefer that it be a somewhere else in NAnt or submitted to NAntContrib instead that is fine by me (I didn't cross post, but I will send it to that list if you like). The task is accompanied by 12 tests, and is fully documented. Best, Bill William E. Caputo ThoughtWorks, Inc. http://www.williamcaputo.com idia ktesis, koine chresis Hi All, Attached is a zip file containing a task called path. This task extracts path information from a given partial (or complete) path name and optionally expands it to a fully-qualified path, using either the current working directory or the Project's base directory as the root, and places in a designated property. I looked through the list of tasks and didn't see anything that did something like this (and we needed it) so after implementing it in a script task, I decided to code it up as a full-fledged task and submit it in the hope that it will be useful to others. I wrote it is as being in the Nant.Core namespace because that is where copy and mkdir are (and we seem to always be manipulating paths in our build files) but if the project's admins prefer that it be a somewhere else in NAnt or submitted to NAntContrib instead that is fine by me (I didn't cross post, but I will send it to that list if you like). The task is accompanied by 12 tests, and is fully documented. Best, Bill William E. Caputo ThoughtWorks, Inc. http://www.williamcaputo.com idia ktesis, koine chresis -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
Re: [nant-dev] SUBMISSION: Path Task
Ian MacLean: This looks good William. However I'm thinking that the new function support will be easier to use to do this kind of stuff. Sounds good -- and I agree it will be easier to use that way. Looking forward to seeing that in the next version! :-) Best, Bill William E. Caputo ThoughtWorks, Inc. http://www.williamcaputo.com idia ktesis, koine chresis Ian MacLean [EMAIL PROTECTED] 12/13/2003 10:38 PM To: William E Caputo [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject:Re: [nant-dev] SUBMISSION: Path Task This looks good William. However I'm thinking that the new function support will be easier to use to do this kind of stuff. the following path related functions will be included: path.changeextension path.combine path.getdirectoryname path.getextension path.getfilename path.getfilenamewithoutextension path.getfullpath path.getpathroot path.gettempfilename path.gettemppath path.hasextension path.ispathrooted Ian William E Caputo wrote: (This is a resend. I didn't see it come across the list the first time I sent it. My apologies if it comes through twice) Hi All, Attached is a zip file containing a task called path. This task extracts path information from a given partial (or complete) path name and optionally expands it to a fully-qualified path, using either the current working directory or the Project's base directory as the root, and places in a designated property. I looked through the list of tasks and didn't see anything that did something like this (and we needed it) so after implementing it in a script task, I decided to code it up as a full-fledged task and submit it in the hope that it will be useful to others. I wrote it is as being in the Nant.Core namespace because that is where copy and mkdir are (and we seem to always be manipulating paths in our build files) but if the project's admins prefer that it be a somewhere else in NAnt or submitted to NAntContrib instead that is fine by me (I didn't cross post, but I will send it to that list if you like). The task is accompanied by 12 tests, and is fully documented. Best, Bill William E. Caputo ThoughtWorks, Inc. http://www.williamcaputo.com idia ktesis, koine chresis Hi All, Attached is a zip file containing a task called path. This task extracts path information from a given partial (or complete) path name and optionally expands it to a fully-qualified path, using either the current working directory or the Project's base directory as the root, and places in a designated property. I looked through the list of tasks and didn't see anything that did something like this (and we needed it) so after implementing it in a script task, I decided to code it up as a full-fledged task and submit it in the hope that it will be useful to others. I wrote it is as being in the Nant.Core namespace because that is where copy and mkdir are (and we seem to always be manipulating paths in our build files) but if the project's admins prefer that it be a somewhere else in NAnt or submitted to NAntContrib instead that is fine by me (I didn't cross post, but I will send it to that list if you like). The task is accompanied by 12 tests, and is fully documented. Best, Bill William E. Caputo ThoughtWorks, Inc. http://www.williamcaputo.com idia ktesis, koine chresis -- Ian MacLean, Developer, ActiveState, a division of Sophos http://www.ActiveState.com --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers