A program filename has '.' chars (for example: aspose.obfuscator),
ExecTask will consider it has directory part in filename, ExecTask
will add basedir as prefix.
Actually the aspose.obfuscator.exe is in path directory. Maybe below
codes will handle this correctly:

// ExecTask.cs
...
       public override string ProgramFileName {
            get {
                if (Path.IsPathRooted(FileName)) {
                    return FileName;
                } else if (_baseDirectory == null) {
                    // check if spefified program contains directory information
                    // directory if program contains directory information
                    if
(!StringUtils.IsNullOrEmpty(Path.GetDirectoryName(FileName))) {
                        // resolve program to full path relative to
project's base
                        // directory if program contains directory information
                                                string fullPath = 
Path.GetFullPath(Path.Combine(Project.BaseDirectory, 
                            FileName));
                                                if (File.Exists(fullPath))
                                                        return fullPath;
                                                return FileName;
                    } else {
                        // just use the filename to scan the directories on the 
                        // PATH
                        return FileName;
                    }
                } else {
                    return
Path.GetFullPath(Path.Combine(BaseDirectory.FullName,
                        FileName));
                }
            }
        }


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to