New compiler option `--include-dependencies`

31 views
Skip to first unread message

Tako Schotanus

unread,
Nov 4, 2016, 8:54:48 PM11/4/16
to ceylon-dev
Hi people,

just to let you know I added a new option to the compilers that automatically compiles dependencies: `--include-dependencies`.

Basically if you're compiling module A and that depends on module B which depends on module C and all three modules are available in any of the source directories than with this option all 3 modules will be compiled, not just A.

The option takes the same arguments as the `--compile` option of the run tool: `once`, `check`, `force` or `never`. If you specify the option without an argument `check` will be assumed.

When you specify `once` the dependencies will only be compiled if no compiled versions are available in the output repository.

Using `check` will perform a simple check each time to see if any of the sources are newer than the compiled version in the output repository, and if so (or if there is no compiled version) the dependency will be compiled.

With `force` all the dependencies will be compiled each time.

And finally `never` is what we had so far: no dependencies will be compiled. When you do not specify the option `--include-dependencies` this is what be used by the default.

There's of course a new config option `compiler.includedependencies` that does the same thing.

And, on top of it all, the run tools now automatically enable this option whenever you specify `--compile` (and it will inherit the same argument, so running with `--compile=check` will also run the compiler with `--include-dependencies=check`).

That's all folks!

Have a nice weekend,
-Tako

Gavin King

unread,
Nov 5, 2016, 10:25:30 AM11/5/16
to ceylo...@googlegroups.com
That's a great idea!
> --
> You received this message because you are subscribed to the Google Groups
> "ceylon-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ceylon-dev+...@googlegroups.com.
> To post to this group, send email to ceylo...@googlegroups.com.
> Visit this group at https://groups.google.com/group/ceylon-dev.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ceylon-dev/CAOJRyvoWVpw_cHu4DDkfnj79jgsmfrR2D2J0ze9TbvRd-sOLOQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.



--
Gavin King
ga...@ceylon-lang.org
http://profiles.google.com/gavin.king
http://ceylon-lang.org
http://hibernate.org
http://seamframework.org

Roland Tepp

unread,
Nov 15, 2016, 9:29:00 AM11/15/16
to ceylon-dev
Perfect! Ive been missing this feature recently.
Reply all
Reply to author
Forward
0 new messages