R
Raphael Bauduin
I'm testing rake. I found it promising, but I've got I problem with defining a rule.
I take the example of the website but get an error. Here is what I do:
rb@bidibule:~/test$ rake -V
rake, version 0.3.1
rb@bidibule:~/test$ cat rakefile
rule '.java' => [
proc { |tn| tn.sub(/\.class$/, '.java').sub(/^classes\//, 'src/') }
] do |t|
puts "source = #{t.source}"
end
rb@bidibule:~/test$ rake gf.java
(in /home/rb/test)
rake aborted!
Don't know how to rake gf.java
Shouldn't it print something like
source = gf
Hoping I didn't miss something obvious in the docs ;-)
Thanks.
Raph
I take the example of the website but get an error. Here is what I do:
rb@bidibule:~/test$ rake -V
rake, version 0.3.1
rb@bidibule:~/test$ cat rakefile
rule '.java' => [
proc { |tn| tn.sub(/\.class$/, '.java').sub(/^classes\//, 'src/') }
] do |t|
puts "source = #{t.source}"
end
rb@bidibule:~/test$ rake gf.java
(in /home/rb/test)
rake aborted!
Don't know how to rake gf.java
Shouldn't it print something like
source = gf
Hoping I didn't miss something obvious in the docs ;-)
Thanks.
Raph