[Mono-list] Exec task in xbuild not working at all

vladatlshift vlad at lshift.net
Tue Jul 28 06:49:41 EDT 2009


Hi list,

I've been trying out xbuild for a while and everything seems great except
for the Exec task, which doesn't seem to work for me at all.

For example, the following simple .proj file:

<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <Target Name="Build">
        <Exec Command="echo Hello world!" />
    </Target>
</Project>


when run with xbuild, it outputs:

vlad at mrforgetful:~/w/test$ xbuild test.proj 
XBuild Engine Version 0.1
Mono, Version 2.0.1.0
Copyright (C) Marek Sieradzki 2005. All rights reserved.

Build started 27/07/2009 18:20:54.
__________________________________________________
Project "/home/vlad/w/test/test.proj" (Build target(s)):

Target Build:
		Tool echo Hello world! execution started with arguments:  
System.ComponentModel.Win32Exception: ApplicationName='echo Hello world!',
CommandLine=' ', CurrentDirectory=''
  at System.Diagnostics.Process.Start_noshell
(System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process
process) [0x00000] 
  at System.Diagnostics.Process.Start_common
(System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process
process) [0x00000] 
  at System.Diagnostics.Process.Start () [0x00000] 
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start
()
  at Microsoft.Build.Utilities.ToolTask.RealExecute (System.String filename,
System.String arguments) [0x00000] 
  at Microsoft.Build.Utilities.ToolTask.ExecuteTool (System.String
pathToTool, System.String responseFileCommands, System.String
commandLineCommands) [0x00000] 
  at Microsoft.Build.Tasks.Exec.ExecuteTool (System.String pathToTool,
System.String responseFileCommands, System.String commandLineCommands)
[0x00000] 
  at Microsoft.Build.Utilities.ToolTask.Execute () [0x00000] 
  at Microsoft.Build.BuildEngine.TaskEngine.Execute () [0x00000] 
  at Microsoft.Build.BuildEngine.BuildTask.Execute () [0x00000] 

Build succeeded.
	 0 Warning(s)
	 1 Error(s)

Time Elapsed 00:00:00.0622170



Any idea what the problem could be? Am I doing something wrong?


Thanks,
Vlad.


PS. This works on Windows/msbuild.
-- 
View this message in context: http://www.nabble.com/Exec-task-in-xbuild-not-working-at-all-tp24685078p24685078.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list