Eclipse CDT clean fails on Windows: tries to run rm -rf -


i using juno cdt on windows 7. when try clean project using internal builder or make provided mingw, eclipse runs *x command rm -rf , clean operation fails.

log using external builder (mingw32-make) console:

18:08:07 **** clean-only build of configuration debug project threads_example **** mingw32-make clean  rm -rf  ./main.o  ./main.d  threads_example process_begin: createprocess(null, rm -rf ./main.o ./main.d threads_example, ...) failed. make (e=2): system cannot find file specified.  mingw32-make: [clean] error 2 (ignored) ' '  18:08:07 build finished (took 137ms) 

log using internal builder:

10:39:35 **** clean-only build of configuration debug project threads_example **** rm -rf threads_example main.o main.d  cannot run program "rm": launching failed  error: program "rm" not found in path path=[c:\cs_powerpc\bin;c:/program files (x86)/java/jre7/bin/client;c:/program files (x86)/java    /jre7/bin;c:/program files (x86)/java/jre7/lib/i386;c:\program files\common files\microsoft shared\microsoft online services;c:\program files (x86)\common files\microsoft shared\microsoft online services;c:\program files\common files\microsoft shared\windows live;c:\program files (x86)\common files\microsoft shared\windows live;c:\windows\system32;c:\windows;c:\windows\system32\wbem;c:\windows\system32\windowspowershell\v1.0\;c:\program files\intel\wifi\bin\;c:\program files\common files\intel\wirelesscommon\;c:\program files (x86)\windows live\shared;c:\program files (x86)\common files\roxio shared\oem\dllshared\;c:\program files (x86)\common files\roxio shared\oem\dllshared\;c:\program files (x86)\common files\roxio shared\oem\12.0\dllshared\;c:\program files (x86)\roxio\oem\audiocore\;c:\siriussdk\cs_i686\bin;c:\siriussdk\cs_powerpc\bin;c:\siriussdk\mingw\msys\1.0\bin;c:\mingw\bin;;c:\work\eclipse]   10:39:35 build finished (took 41ms)  10:39:35 **** clean-only build of configuration debug project threads_example ****  10:39:35 build finished (took 46ms) 

turns out there's attribute in .cproject file xml controls clean command.

look configuration tag, , set cleancommand attribute want. i've set rm -rf , used gnuutils support command on windows.
can change command whatever.

<configuration artifactextension="so" artifactname="myproject" ... cleancommand="rm -rf" ...> 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -