summaryrefslogtreecommitdiff
path: root/src/rebar_core.erl
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in comment (thanks Michael Santos)Tuncer Ayaz2012-04-161-1/+1
|
* Fix #197 by printing 'Entering/Leaving directory'Tuncer Ayaz2012-04-031-3/+19
|
* Make error message more descriptiveTuncer Ayaz2012-03-311-1/+3
|
* Fix loading of local plugins in sub directoriesTuncer Ayaz2012-02-031-13/+38
|
* Cache vsn info to avoid expensive vcs cmd callsYurii Rashkovskii2012-02-021-0/+3
|
* Check for .app.src firstTuncer Ayaz2012-01-131-2/+2
|
* Fix code clarity in dir type checkTuncer Ayaz2012-01-131-9/+5
|
* Fix rebar_core crash (reported-by: Jeremy Raymond)Tuncer Ayaz2011-12-181-17/+24
|
* Universally support apps=/skip_apps=Tuncer Ayaz2011-12-121-61/+94
|
* Add support for arch-specific hooksTuncer Ayaz2011-12-051-1/+10
| | | | | {pre_hooks, [{"linux", compile, "c_src/build_linux.sh"}]}. {post_hooks, [{"linux", compile, "c_src/build_linux.sh clean"}]}.
* Allow plugins to participate in pre and post processingTim Watson2011-10-201-8/+14
| | | | | | This patch modifies rebar_core to allow plugins to participate in the pre and post processing steps, giving plugin authors more flexibility and control.
* Fix config handling in root_dirTim Watson2011-10-051-1/+12
| | | | | Avoid overwriting custom config (passed with -C) when we are processing the base_dir in rebar_core.
* Fix missing plugin warningsTim Watson2011-09-201-1/+1
| | | | | | This patch fixes the warning logging when the number of missing plugins is greater than one. The current code only works by accident, when a single plugin is all that is missing.
* Search plugin sources in base_dir and plugin_dirTuncer Ayaz2011-08-291-3/+7
|
* Only compile relevant plugin sourcesTuncer Ayaz2011-08-291-1/+7
|
* Simplify check for empty listTuncer Ayaz2011-08-291-1/+1
|
* Load plugins dynamically from sourceTim Watson2011-08-291-5/+49
| | | | | | | | | This patch updates rebar_core to look for missing plugins (i.e. those that aren't found on the code path at runtime) in a configurable plugin directory, and dynamically compile and load them at runtime. By default, the directory "plugins" is searched, although this can be overriden by setting the plugin_dir in your rebar.config.
* Log a more descriptive messageTuncer Ayaz2011-08-231-1/+2
|
* Rename rebar_plugins to plugins for consistencyTuncer Ayaz2011-08-161-1/+1
|
* Do not warn if pre_/post_ cmd is not availableTuncer Ayaz2011-07-081-2/+9
|
* Add support for $HOME/.rebar/configTuncer Ayaz2011-07-061-5/+5
|
* Allow plugins to run before/after a rebar command.Tim Watson2011-05-231-1/+20
| | | | | | | | | | | | | | | | | | | This patch makes a small change in rebar_core that checks the list of valid plugins to see if any of them export a pre/post processing function for the current command. This logic is applied only to the plugins and allows plugin authors to hook into rebar's execution by using a naming convention that matches the one used for scripting hooks. Example: ```erlang -module(my_rebar_plugin). -export([pre_compile/2]). pre_compile(Config, AppFile) -> rebar_log:log(debug, "PRECOMPILE: ~p:~p~n", [AppFile, Config]), ok. ```
* Add support for command-specific env for hooksTuncer Ayaz2011-04-211-6/+14
|
* Simplify hook changes to rebar_coreTuncer Ayaz2011-03-121-11/+5
|
* Add pre and post script support for all commandsTim Watson2011-03-121-1/+17
| | | | | | | | | This change makes it possible to assign pre/post scripts to all rebar commands. This allows users fine grained control over when scripts and/or shell commands should be executed, where such extensions are absolutely needed. Several examples have been added to the rebar.config.sample file.
* Convert the entries in the code path to absolute pathsJuan Jose Comellas2011-02-261-0/+4
| | | | | | | Rebar will exit with {error,bad_directory} when trying to restore the code path after it has finished working on a subdirectory if there are invalid relative paths in it. The problem was seen when executing the last line of rebar_erlc_compiler:doterl_compile/3 (true = code:set_path(CurrPath)).
* Use erlang:function_exported/3Tuncer Ayaz2011-02-211-2/+2
|
* Clean up codeTuncer Ayaz2011-02-061-16/+24
|
* Clean up emacs file local variablesTuncer Ayaz2011-01-311-1/+1
|
* Move BUILD_TIME and VCS_INFO macrosTim Watson2011-01-291-8/+0
| | | | | | I have moved these macros from rebar_core.erl to rebar.erl in order to prevent eunit tests from failing (which they currently are).
* Fix circular dependencyTuncer Ayaz2011-01-271-39/+1
|
* Add support for abbreviated command namesKlas Johansson2011-01-241-11/+10
| | | | | | | | | | | | | | | | | | | This change makes it possible to type the beginning (the prefix) of a command name and rebar will guess the full name of the command, thereby saving the user precious keystrokes. As long as the prefix matches only one command, rebar runs that command, otherwise rebar prints a list of candidate command names. The "-" character is considered to be a word separator and the prefix matching is done per word. Example prefix matches: co ==> compile cl ==> clean create ==> create create-a ==> create-app c-a ==> create-app c-app ==> create-app
* Move command line handling funs into rebar.erlTuncer Ayaz2011-01-241-172/+3
|
* Simplify rebar_coreTuncer Ayaz2011-01-131-23/+17
|
* Fix typosTuncer Ayaz2011-01-131-2/+2
|
* Fix code clarityTuncer Ayaz2011-01-131-2/+3
|
* Implement update-deps and disable auto updateTuncer Ayaz2010-12-171-0/+1
|
* Add possibility to specify rebar config for the "main" applicationAnders2010-11-091-6/+13
|
* Improve error logging when running a command failsAndrew Thompson2010-10-291-2/+5
| | | | | Make the error message newline terminated and, if possible, log the name of the module in which the failure occured.
* Tidier improvementsKostis Sagonas2010-10-261-9/+10
|
* Refactor Dialyzer support to make it more usableTuncer Ayaz2010-10-251-3/+3
|
* Dialyzer related cleanupsKostis Sagonas2010-10-101-3/+3
|
* Fix dialyzer warning. Thanks KostisTuncer Ayaz2010-10-011-1/+1
|
* Fix another filename:join/2 warning. Thanks KostisTuncer Ayaz2010-10-011-1/+1
|
* Remove 'install' from available commands listTuncer Ayaz2010-08-251-1/+0
|
* Warn when a command is not implemented. Fail when no supplied commands are ↵Andrew Thompson2010-07-251-1/+21
| | | | | | | | | | implemented Rebar currently doesn't give any feedback on an invalid command. This change makes rebar keep track of how many operations each command triggers, if a particular command doesn't change the count, there were no modules implementing it. If at the end of handling all commands, tje count is 0, none of the supplied commands were valid and ?FAIL is called to trigger a non zero exit status.
* Fix bug 629; updated help for new common_test commandDave Smith2010-08-201-4/+1
|
* Fix bug 438; add support for listing available templatesDave Smith2010-08-201-0/+1
|
* Document doc commandTuncer Ayaz2010-06-301-0/+2
|
* Add support for embedding VCS info into the version dataDave Smith2010-06-221-1/+5
|