我们的需求:
1、在cookie文件中添加工程目录下的lib和bin到erlang系统的加载路径中去。
2、想要这个rakefile能自动编译我的erlang项目。
3、自动测试我的项目。
desc "Create project's cookie \'.erlang\' !"
task :create_cookie do |t|
unless File.exists?(".erlang")
puts "rebuild the cookie file \'.erlang\'!"
open(".erlang","w") do |f|
f.puts "io:format(\"Running Erlang ~n\")."
puts "add ./bin to paths"
f.puts "code:add_patha(\"./bin\")"
puts "add ./lib to paths"
f.puts "code:add_patha(\"./lib\")"
end
else
puts "The cookie is exists!!"
end
end
1、在cookie文件中添加工程目录下的lib和bin到erlang系统的加载路径中去。
2、想要这个rakefile能自动编译我的erlang项目。
3、自动测试我的项目。