summaryrefslogtreecommitdiff
path: root/src/rebar_prv_clean.erl
Commit message (Collapse)AuthorAgeFilesLines
* run hooks and plugins during clean for depsCarl-Johan Kjellander2018-01-191-1/+1
| | | | | | find_apps didn't read config files so no hooks were in the app_infos, and now that hooks are being done rebar needs plugins to be able to run clean plugin hooks in deps.
* Unicode support in all the placesFred Hebert2017-08-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is done through 3 main change groups: - replacing `~s` by `~ts` in format strings, so that strings that contain unicode are properly printed rather than crashing - adding the `unicode` argument to all function of the `re` module to ensure transformations on strings containing unicode data are valid instead of crashing (see issue #1302) - replacing `ec_cnv:to_binary/1` and `ec_cnv:to_list/1` with matching functions in `rebar_utils`. The last point has been done, rather than modifying and updating erlware commons, because binary and list conversions can be a contentious subject. For example, if what is being handled is actually bytes from a given binary stream, then forcing a byte-oriented interpretation of the data can corrupt it. As such, it does not appear safe to modify erlware commons' conversion functions since it may not be safe for all its users. Instead, rebar3 reimplements a subset of them (only converting atoms and chardata, ignoring numbers) with the explicit purpose of handling unicode string data. Tests were left as unchanged as possible. This may impact the ability to run rebar3's own suites in a unicode path, but respects a principle of least change for such a large patch.
* Fix wildcard usage in rebar3 cleanFred Hebert2017-02-261-1/+2
| | | | | The wildcard usage could fail on some OSes by being passed directly and just not finding libs and erroring out
* add profile option to clean taskTristan Sloughter2016-01-231-11/+15
|
* only clean project apps once even when doing --allTristan Sloughter2015-10-271-8/+8
|
* refactor `rebar_erlc_compiler`alisdair sullivan2015-10-261-1/+6
| | | | | | | | | | | | | | | | | | | * modify compiler interface to work on either application objects or directories containing source files * compile all sources in `src_dirs` to the application `ebin` dir and all sources in `extra_src_dirs` to a directory mirroring it's position in the app's `_build` directory. for example, `apps/foo/more` would compile to `_build/default/lib/foo/more` for `extra_src_dirs` in the root of a project with multiple applications (so orphan directories that don't "belong" to an application) compile to `_build/default/extras/more` * copy directories specified in `extra_src_dirs` into the `_build` directory so tools like `ct` and `xref` that expect source to be in a particular location still work * clean compiled artifacts from all `extra_src_dirs` * alter `eunit`, `ct` and `cover` to work with the new directory structure * billions of new tests
* fix dialyzer warningsTristan Sloughter2015-09-091-1/+1
|
* support updating of per app info by hooksTristan Sloughter2015-09-061-7/+7
|
* more cleanupTristan Sloughter2015-08-311-7/+2
|
* update use of hooks and plugins with state in app_infoTristan Sloughter2015-08-311-2/+2
|
* remove state record from app_info recordTristan Sloughter2015-08-311-3/+3
|
* wip: move state into app_infoTristan Sloughter2015-08-311-4/+4
|
* fix find of deps for clean allTristan Sloughter2015-07-281-1/+1
|
* Merge pull request #487 from ferd/fix-provider-barenessTristan Sloughter2015-05-301-1/+1
|\ | | | | fix bareness issues
| * fix bareness issuesFred Hebert2015-05-311-1/+1
| | | | | | | | | | | | - Crashes in providers lib when no providers in a namespace are bare - Making sure bareness matches semantics; i.e. a bare provider is visible, a non-bare provider is hidden.
* | move handling of undefined app state to functionTristan Sloughter2015-05-221-8/+1
|/
* only run clean hooks onceTristan Sloughter2015-05-211-2/+7
|
* Merge pull request #320 from tsloughter/dep_pluginsFred Hebert2015-04-051-7/+8
|\ | | | | install dep plugins & run provider hooks the same as shell hooks (Rereopen 316)
| * swich clean and compile to use macro provider in hook runTristan Sloughter2015-04-041-4/+4
| |
| * install dep plugins & run provider hooks the same as shell hooksTristan Sloughter2015-04-041-7/+8
| |
* | Provide descriptions for all tasksFred Hebert2015-04-041-1/+1
|/
* fix clean all to use proper deps dirTristan Sloughter2015-04-021-1/+1
|
* update all examples in providers to use rebar3Tristan Sloughter2015-03-071-1/+1
|
* copy project apps to deps output dir for compilationTristan Sloughter2015-02-281-1/+1
|
* remove extra newline in cleanTristan Sloughter2015-01-191-1/+1
|
* move dir functions from utils to new module rebar_dirTristan Sloughter2014-12-011-1/+1
|
* move back to using format_error/1Tristan Sloughter2014-11-091-4/+4
|
* run legacy hooks for clean taskTristan Sloughter2014-11-021-12/+29
|
* add --all option to cleanTristan Sloughter2014-11-021-2/+23
|
* add format_error/2 provider callback to providersTristan Sloughter2014-10-221-1/+6
|
* move providers to separate appTristan Sloughter2014-10-031-9/+9
|
* add clean providerTristan Sloughter2014-10-011-0/+39