Create directory using rake in windows
Posted
by intern
on Stack Overflow
See other posts from Stack Overflow
or by intern
Published on 2010-06-07T07:38:04Z
Indexed on
2010/06/07
7:42 UTC
Read the original article
Hit count: 213
We were trying to run fllowing code in rake file:
directory "tmp"
file "hello.tmp" => "tmp" do
sh "echo 'Hello' >> 'tmp/hello.tmp'"
end
We have taken this code from http://jasonseifer.com/2010/04/06/rake-tutorial
But, since we are working on windows commands like'sh','echo' wont work.. according to the explanation given for the above code, it should first create a directory 'tmp' and then create a file 'hello.tmp' which will have 'hello' as its text..
Firstly, how can we do this for windows?
and Secondly, a file with extension '.tmp' sounds quite wierd.. what does 'hello.tmp' specifies? Does it simply mean that 'hello.tmp' is a text file in 'tmp' directory?
© Stack Overflow or respective owner