anchor.diff:  
   prepare_rebar_script() ->
       {ok, _} = file:copy(?REBAR_SCRIPT, ?TMP_DIR ++ "rebar"),
  -    [] = os:cmd("chmod u+x " ++ ?TMP_DIR ++ "rebar").
  +    case os:type() of
  +        {unix, _} ->
  +            [] = os:cmd("chmod u+x " ++ ?TMP_DIR ++ "rebar");
  +        {win32, _} ->
  +            {ok, _} = file:copy(?REBAR_SCRIPT ++ ".bat",
  +                                ?TMP_DIR ++ "rebar.bat")
  +    end.
   
   rebar() ->
       rebar([]).
   
   rebar(Args) when is_list(Args) ->
  -    Out = os:cmd("./rebar " ++ Args), 
  +    Out = os:cmd(filename:nativename("./rebar") ++ " " ++ Args),
       %?debugMsg("**** Begin"), ?debugMsg(Out), ?debugMsg("**** End"),
       Out.
   
  
positive.code: 
  assert_rebar_runs() ->
      prepare_rebar_script(),
      ?assert(string:str(os:cmd("./" ++ ?TMP_DIR ++ "rebar"), "Usage: rebar") =/= 0).
  
  basic_setup_test_() ->
      {"Create a simple project with a 'test' directory, a test, and a module",
  
negative.code: setup_basic_project() ->
      setup_environment(),
      rebar("create-app appid=myapp"),
      file:make_dir("ebin"),
      file:make_dir("test"),
      file:write_file("test/myapp_mymod_tests.erl", ?myapp_mymod_tests),
      file:write_file("src/myapp_mymod.erl", ?myapp_mymod).
  