T
thufir
I want to make run dependant on the compile and cat tasks, but don't seem
to have the syntax quite correct:
thufir@arrakis:~/foo$
thufir@arrakis:~/foo$ rake run
(in /home/thufir/foo)
rake aborted!
/home/thufir/foo/rakefile.rb:3: syntax error, unexpected ':', expecting
$end
task :run => :compile :cat do
^
(See full trace by running task with --trace)
thufir@arrakis:~/foo$
thufir@arrakis:~/foo$ cat rakefile.rb
task :run => :compile :cat do
system("java ArrayOfStrings")
end
task :cat do
system("cat ArrayOfStrings.java")
end
task :compile => :clean do
system("javac ArrayOfStrings.java")
end
task :clean do
FileUtils.rm_rf("*.class")
end
thufir@arrakis:~/foo$
thanks,
Thufir
to have the syntax quite correct:
thufir@arrakis:~/foo$
thufir@arrakis:~/foo$ rake run
(in /home/thufir/foo)
rake aborted!
/home/thufir/foo/rakefile.rb:3: syntax error, unexpected ':', expecting
$end
task :run => :compile :cat do
^
(See full trace by running task with --trace)
thufir@arrakis:~/foo$
thufir@arrakis:~/foo$ cat rakefile.rb
task :run => :compile :cat do
system("java ArrayOfStrings")
end
task :cat do
system("cat ArrayOfStrings.java")
end
task :compile => :clean do
system("javac ArrayOfStrings.java")
end
task :clean do
FileUtils.rm_rf("*.class")
end
thufir@arrakis:~/foo$
thanks,
Thufir