From: Roeland Moors Date: 2004-08-26T06:22:33+09:00 Subject: Re: rake prepare gem On Thu, Aug 26, 2004 at 12:53:29AM +0900, Jim Weirich wrote: > > Roeland Moors said: > > I'm using rake to create a gem, but I have some questions. > > Great! > > > Before creating a gem in Rake i would like to copy some files to > > a different directory and then create the package. > > > > I tried something like this: > > > > task :gem => [:prepare_gem] > > > > task :prepare_gem do > > # do stuff here > > gem_task.gem_spec.files = files.to_a > > end > > > > But the problem is that the prepare_gem is executed AFTER the gem > > task. Is this normal? > > Actually, yes. First the explain why, and then the fix ... > [snip] Thanks a lot for the detailed information. -- Roeland