Hi zimbatm
Thanks for your answer.
I did it this way, and it worked very well.
best regards emanuel
Am Dienstag, den 31.07.2007, 16:51 +0200 schrieb Jonas Pfenniger:
> Hi Emanuel,
>
> your problem (I think) is that you are relying on the execution order
> of your task's dependencies. Here is a snippet that should work :
>
> file "letter.txt" do
> #generate "letter.txt" somehow
> end
>
> task :ensure_hmms => "letter.txt" do
> (File.read('letter.txt').split("\n") - FileList['*.hmm']).each do |
> missing_hmm|
> sh :touch, missing_hmm
> end
> end
>
> task :combineFiles=>:ensure_hmms do
> #do something with the files
> end
>
> --
> Cheers,
> zimbatm
> _______________________________________________
> Rake-devel mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/rake-devel
_______________________________________________
Rake-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rake-devel