I'll look into fixing this issue ASAP.

Gert

----- Original Message ----- 
From: "Giscard Biamby" <[EMAIL PROTECTED]>
To: "Bonio Lopez" <[EMAIL PROTECTED]>; <nant-users@lists.sourceforge.net>
Sent: Wednesday, July 05, 2006 3:23 PM
Subject: Re: [NAnt-users] Function call failed (IMHO bug)


I would have designed it to return false instead of
throwing an exception. I can think of two options:

1. Check the file extension before trying to call
is-assembly()


2. Switch to using inline C# code in your nant script for
whatever that part of your script is doing, and use a
try-catch around the call to IsAssembly().

--- Bonio Lopez <[EMAIL PROTECTED]> wrote:

>             Function call failed.
>             Expression:
> ${file::is-assembly("somefile.msi")}
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>                 Could not load file or assembly
> 'somefile.msi' or one of its
> dependencies. Daten mit diesem Typ werden nicht unterstü
> tzt. (Exception from HRESULT: 0x8007065E)
>
> Transaltion of a error message is "files with this
> extention are not
> supported". I would expect the file::is-assembly to
> return false instead of
> throwing exception.
> Any ideas about workaround?
> Thanks,
> Boni
>
>
>
> Using Tomcat but need to do more? Need to support web
> services, security?
> Get stuff done quickly with pre-integrated technology to
> make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based
> on Apache Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
>


"Few are those who see with their own eyes and feel with their own 
hearts." -Albert Einstein

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job 
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to