From: Daniel Berger Date: 2006-11-30T00:55:08+09:00 Subject: Re: Should rake remove t.name on failed tasks? Josef Wolf wrote: > Hello! > > With rake, I often find myself doing something like that: > > file "custom.iso" => "custom.dir" do |t| > begin > sh "mkisofs -r -V My Install CD' -cache-inodes" + > " -J -l -b isolinux/isolinux.bin" + > " -c isolinux/boot.cat -no-emul-boot" + > " -boot-load-size 4 -boot-info-table" + > " -o #{t.name} #{custom.dir}" > > rescue > sh "rm #{t.name}" > raise > > end > end > > to avoid a broken target lying around. > > I wonder whether I am missing something here. Shouldn't rake remove t.name? That seems a reasonable request. Jim, is there any downside to this? Regards, Dan