anchor.diff:  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).
  
positive.code: 
  prepare_rebar_script() ->
      {ok, _} = file:copy(?REBAR_SCRIPT, ?TMP_DIR ++ "rebar"),
      [] = os:cmd("chmod u+x " ++ ?TMP_DIR ++ "rebar").
  
  rebar() ->
      rebar([]).
  
  rebar(Args) when is_list(Args) ->
      Out = os:cmd("./rebar " ++ Args), 
      %?debugMsg("**** Begin"), ?debugMsg(Out), ?debugMsg("**** End"),
      Out.
  
  
negative.code:         {unix, _} ->
              os:cmd("rm -rf " ++ ?TMP_DIR ++ " 2>/dev/null");
          {win32, _} ->
              os:cmd("rmdir /S /Q " ++ filename:nativename(?TMP_DIR))
      end.
  
  %% ====================================================================
  