summaryrefslogtreecommitdiff
path: root/src/rebar_core.erl
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Change semantics of skip_deps=true such that deps still get pre/post ↵Dave Smith2010-06-211-10/+48
| | | | processed, just not actually run
* Bugfix call to lists:member/2 in ulist/2Klas Johansson2010-06-191-1/+1
| | | | | Change from lists:is_member/2 to lists:member/2, since the former doesn't exist (the bug only affects rebar_plugins).
* Re-adding support for plugin modulesDave Smith2010-06-091-1/+39
| | | | | --HG-- extra : rebase_source : 90052500da62af1d32337f2d540acb39fdf67db4
* Heavy-duty refactor to support truly transitive dependenciesDave Smith2010-06-091-127/+66
| | | | | --HG-- extra : rebase_source : 41c7f1c337a7cb63582aecd7b87ba998b40ba3aa
* Slightly different fix for bug#5 that avoids running preprocess twiceDave Smith2010-06-081-15/+3
|
* Adding rt for bug 5Dave Smith2010-06-041-7/+8
|
* Minor cleanup of acc_modules for readabilityDave Smith2010-06-031-5/+7
|
* Refactor/simplify things since we only run one command at a time (versus a ↵Dave Smith2010-06-031-26/+23
| | | | string of them)
* merge ssh://hg@bitbucket.org/basho/rebarBob Ippolito2010-05-151-1/+1
|\
| * comment typoBob Ippolito2010-05-081-1/+1
| |
| * Make 'command does not apply' warning into a warningJeremy Raymond2010-05-111-1/+1
| |
* | include source path in compiler errors, process commands separately (to make ↵Bob Ippolito2010-05-151-32/+72
| | | | | | | | get-deps compile work), ensure ebin dir, process iteratively to support transitive deps
* | run plugins once, do not run as a preprocessor, add ebin to path earlyBob Ippolito2010-05-111-10/+37
| |
* | when using plugin_modules, add ebin to pathBob Ippolito2010-05-111-0/+6
| |
* | fix backwards match for debugging printBob Ippolito2010-05-111-1/+1
| |
* | rebar_plugins in rebar_config to allow extensionsBob Ippolito2010-05-111-1/+21
| |
* | Run the preprocess again if subdirs were compiled, fixes ↵Bob Ippolito2010-05-081-0/+11
| | | | | | | | http://bitbucket.org/basho/rebar/issue/5
* | comment typoBob Ippolito2010-05-081-1/+1
| |
* | add variables for create-app and create-node to helpBob Ippolito2010-05-081-2/+2
|/