ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hassan Mehmet <>
Subject ant dotnet csc task fails if (MS) file or directory name contains spaces
Date Tue, 16 Jan 2007 15:35:28 GMT

Hopefully this is also the forum for antlib projects :)

I have found a problem with the csc task in ant-dotnet-1.0.jar. If the file or 
directory contains spaces then the csc command fails on windows.

There seems to be a very simple fix which I have used locally and appears to 
work. I'm not sure what the procedure is for getting this into the repository 
so hopefully someone can pick it up.

In class 


protected void addFilesToCommand(...)

   // line 149 original: command.addArgument(file.toString());



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message