Tuesday, September 06, 2005

Rake execution

I found a cool feature of rake recently:
"... no matter where you invoke it, rake always executes in the directory where the Rakefile is found. This keeps your path names consistent without depending on the current directory..." - Jim Weirich
Given the directory structure /trunk/src/project/build the rakefile will likely live in the /trunk directory. Because of the above quoted feature you can run rake in /trunk, /trunk/src, /trunk/src/project, or any child directory of trunk.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.