D
DaZoner
I've read the rake docs online and I've got a very simple rakefile to work.
Now I'd like to make it more complex and I can't figure out how to do it.
Can anyone let me know if what I want to do is possible and how to do it?
Why doesn't the following rakefile print "Making ..."?
task :default => [:build]
task :build do
print "In build\n"
file "newzip.zip" do |t|
print "Making ",t.name,"\n"
end
end
Also I'd like to give the filetask prereq's saying only do this step if the
file is out of date with *.rb and data/*.dat. Can I do this? Does it look
like this?
file "zipfile.zip" => ["*.rb","data/*.dat"] do |t|
end
Thanks for your help.
Now I'd like to make it more complex and I can't figure out how to do it.
Can anyone let me know if what I want to do is possible and how to do it?
Why doesn't the following rakefile print "Making ..."?
task :default => [:build]
task :build do
print "In build\n"
file "newzip.zip" do |t|
print "Making ",t.name,"\n"
end
end
Also I'd like to give the filetask prereq's saying only do this step if the
file is out of date with *.rb and data/*.dat. Can I do this? Does it look
like this?
file "zipfile.zip" => ["*.rb","data/*.dat"] do |t|
end
Thanks for your help.