Hi again,
I found two more thinks:
1/ "csc @temp-path\commands.txt" do not start propertly, when temp-path is
in "x:\documents and settings" becouse of spaces in path
2/ when extra output files are copied and source and dest is in same path -
source is deleted! (I change smthing in /doc stuff, but this is general)
Regards,
Martin
--- E:\src\nant\distrib\NAnt.VSNet\Project.cs Fri Jul 25 10:07:28 2003
+++ E:\src\nant\src\NAnt.VSNet\Project.cs Fri Aug 22 12:16:06 2003
@@ -313,11 +322,11 @@
Log(Level.Verbose, _nanttask.LogPrefix + "Starting
compiler...");
ProcessStartInfo psi = null;
if ( _ps.Type == ProjectType.CSharp ) {
- psi = new ProcessStartInfo( Path.Combine(
_nanttask.Project.CurrentFramework.FrameworkDirectory.FullName, "csc.exe" ),
"@" + strTempFile );
+ psi = new ProcessStartInfo( Path.Combine(
_nanttask.Project.CurrentFramework.FrameworkDirectory.FullName, "csc.exe" ),
"@\"" + strTempFile + "\"" );
}
if ( _ps.Type == ProjectType.VBNet ) {
- psi = new ProcessStartInfo( Path.Combine(
_nanttask.Project.CurrentFramework.FrameworkDirectory.FullName, "vbc.exe" ),
"@" + strTempFile );
+ psi = new ProcessStartInfo( Path.Combine(
_nanttask.Project.CurrentFramework.FrameworkDirectory.FullName, "vbc.exe" ),
"@\"" + strTempFile + "\"" );
}
psi.UseShellExecute = false;
@@ -374,6 +383,8 @@
else {
string strOutFile = cs.OutputPath + @"\" + fi.Name;
+ if ( strOutFile == fi.FullName ) continue;
+
if ( File.Exists( strOutFile ) ) {
File.SetAttributes( strOutFile,
FileAttributes.Normal );
File.Delete( strOutFile );
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers