From: Jim Boooo Date: 2008-10-23T20:33:15+09:00 Subject: Re: Rake Rule name problem ok I changed the previous script to this ---------------------------------------------------------------- task :default do @name = "do some stuff here to get path and name" go_task = task :go => ["{#name}.c"] go_task.invoke end rule '.c' => ['.xml'] do |t| p t.name p t.source end rule '.xml' do #create the xml file in here end ------------------------------------------------------------------- This now works a treat, Patrick was largely right about the names of tasks getting assigned before the variable was getting a value. The solution was to programatticaly create the task inside my default task. Many thanks for the help, Jim. -- Posted via http://www.ruby-forum.com/.