summaryrefslogtreecommitdiff
path: root/src/rebar_otp_app.erl
Commit message (Collapse)AuthorAgeFilesLines
* Unicode support in all the placesFred Hebert2017-08-061-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* handle case that upgraded app no longer has .app.src fileTristan Sloughter2015-09-201-12/+7
|
* wip: move state into app_infoTristan Sloughter2015-08-311-8/+8
|
* include app.src.script in app discover and always use if availableTristan Sloughter2015-07-261-5/+12
|
* check format of config file and print the bad section in the errorTristan Sloughter2015-06-181-1/+1
|
* format file read error in otp_app moduleTristan Sloughter2015-05-221-1/+1
|
* improve error message fo rmissing app or app.src fileTristan Sloughter2015-05-221-5/+5
|
* methods for retrieving `src_dirs` and `extra_src_dirs`alisdair sullivan2015-05-191-3/+2
| | | | | | note that now ALL `src_dirs` across included profiles are compiled. previously only the last included profile's `src_dirs` were used
* generalize the "test" special dir into an {extra_src_dirs, [...]} optionalisdair sullivan2015-05-161-5/+16
| | | | | | like `src_dirs`, `extra_src_dirs` are directories to be copied to the `_build` dir and compiled. unlike `src_dirs` they are not added to the .app specification
* Use resource handlers to deal with deps/semverFred Hebert2015-05-051-3/+4
|
* real bootstrappingTristan Sloughter2015-04-221-1/+0
|
* track and cleanup code paths for different contextsTristan Sloughter2015-04-211-4/+0
|
* symlink extra test dirs and compile from there instead of fromalisdair sullivan2015-03-081-1/+1
| | | | root project
* switch from loading modules to read compile info to using `beam_lib`alisdair sullivan2015-03-051-15/+7
| | | | fixes #216 and #220
* change from post-purging modules after checking their module info toalisdair sullivan2015-03-031-4/+8
| | | | pre-purging before checking to facilitate long do chains
* exclude beams compiled from source in `test` from the .app filealisdair sullivan2015-03-021-4/+22
|
* output proper error message for missing app fileTristan Sloughter2015-02-281-3/+10
|
* copy project apps to deps output dir for compilationTristan Sloughter2015-02-281-5/+7
|
* consolidate app validation and exist checksTristan Sloughter2015-02-221-38/+48
|
* update project app list with new appinfo records after buildTristan Sloughter2015-02-191-0/+1
|
* use processed app file for validationTristan Sloughter2015-01-261-1/+1
|
* refactor rebar_otp_app for smaller/cleaner functionsTristan Sloughter2015-01-261-26/+33
|
* clean up and better error messages when validating appsTristan Sloughter2015-01-241-87/+44
|
* handle throw by relxTristan Sloughter2014-11-081-9/+9
|
* remove more code that can be brought back later if neededTristan Sloughter2014-08-301-1/+1
|
* start of moving to splitting state from config parsingTristan Sloughter2014-08-171-3/+2
|
* add rebar update providerTristan Sloughter2014-08-161-2/+3
|
* replace logging with ec_cmd_log from erlware_commonsTristan Sloughter2014-08-161-1/+1
|
* large refactoringTristan Sloughter2014-08-161-21/+23
| | | | | | | | Removed separate compilers Resolves apps to build Finds avail deps before pulling/building Includes relx Simplifies build commands
* Merge pull request #37 from nox/force-registeredDave Smith2013-06-161-1/+14
|\ | | | | Ensure we always have a `registered` value in `.app` files
| * Ensure we always have a `registered` value in `.app` filesAnthony Ramine2012-12-071-1/+14
| | | | | | | | | | `systools:make_relup/4` fails with `{missing_param, registered}` without a `registered` value.
* | Implement 'rebar help CMD1 CMD2' and extend common 'rebar help' msgTuncer Ayaz2012-12-311-1/+19
|/ | | | | * allow plugins to print help message for implemented commands * append core rebar.config options to common 'rebar help' message
* Do not rewrite .app file if it didn't changeLev Walkin2012-08-081-1/+1
|
* Fix R13B03 build (Reported-by: Sergey Nartimov)Tuncer Ayaz2012-07-281-4/+4
|
* Remove shared stateTuncer Ayaz2012-07-131-17/+17
|
* Remove ?FAIL in favor of ?ABORTDave Smith2012-06-081-4/+4
|
* Fix logging (reported-by Sergey Yelin)Tuncer Ayaz2011-07-041-1/+1
|
* Expand {vsn,git} in app.src to git-describe outputAdam Kocoloski2011-02-171-1/+6
|
* Clean up codeTuncer Ayaz2011-02-061-23/+31
|
* Clean up emacs file local variablesTuncer Ayaz2011-01-311-1/+1
|
* Adding support for app_vars in external fileDave Smith2010-12-201-5/+23
|
* Fix code clarityTuncer Ayaz2010-12-071-3/+3
|
* Stop clean from erroring if there's no .app fileAndrew Thompson2010-10-291-1/+9
| | | | | If rebar tries to clean the .app file (because there's a .app.src file) and it doesn't exist (possibly because of a bad compile), don't fail.
* Dialyzer related cleanupsKostis Sagonas2010-10-101-3/+2
|
* Made OTP app module validation optionalDave Smith2010-10-101-2/+11
|
* Removing 'install' command; semantics were poorly defined could damage a ↵Dave Smith2010-08-201-80/+1
| | | | typical OTP installation
* Fixed problem where install was broken when the .app file is generated fromChris Chew2010-06-071-3/+13
|
* Slightly different fix for bug#5 that avoids running preprocess twiceDave Smith2010-06-081-0/+4
|
* Complete implementation for simplistic .app.src processing.Dave Smith2010-05-071-7/+52
|
* Add support for installing to a target directory as alternative to Erlang ↵Dave Smith2010-02-201-2/+7
| | | | base dir