Dmitry Jemerov
5eb4a47a1a
command line flag to repeat compilation multiple times
2015-06-17 14:55:12 +02:00
Alexander Udalov
00566bcfb0
Move MessageRenderer to module 'cli'
...
It will use jline soon, which is not available in 'cli-common'
2015-06-15 15:42:42 +03:00
Alexander Udalov
54dfd626ab
CLI: improve diagnostic message format
...
- render the whole line where the error/warning points to, if any, and another
line with '^', like other compilers do
- lowercase diagnostic severity
- decapitalize the message if it doesn't start with a proper name
2015-06-15 15:42:41 +03:00
Alexander Udalov
46515afb22
CLI: don't render non-positive line and column in error messages
2015-06-15 15:42:41 +03:00
Alexander Udalov
6083a18ce1
Convert CompilerMessageLocation to Kotlin
2015-06-15 15:42:40 +03:00
Alexander Udalov
bca5eb083e
Don't report warnings when there are errors
...
All sane compilers do this
2015-06-15 15:42:40 +03:00
Alexander Udalov
4cfbf5886b
Get rid of unneeded MessageCollector implementations
2015-06-15 15:42:40 +03:00
Dmitry Jemerov
a321e8eef5
performance counters infrastructure
2015-06-04 10:20:19 +02:00
Michael Nedzelsky
d629271510
JS: make -meta-info cli option boolean
2015-05-21 02:30:54 +03:00
Pavel V. Talanov
94cc847c48
Drop module "ktm" scripts and support java source roots in "xml" modules
...
Drop kotlin.modules package from runtime
Move adapted classes into compiler
Unsupport files with "ktm" extension
Delete code for loading module scripts
Drop tests for module scripts
Separate section for java source roots in xml script generator/parser
2015-04-16 16:40:19 +03:00
Michael Nedzelsky
3bf14518e8
JS backend: add -meta-info command line option for cli compiler
2015-03-18 09:38:53 +03:00
Yan Zhulanow
6ab2dc90f8
Fix cli help tests
2015-02-26 15:25:54 +03:00
Andrey Breslav
1e70369cf8
Logic related to command-line options moved to android-compiler-plugin
2015-02-26 15:25:40 +03:00
Andrey Breslav
d961e2f5b4
CommandLineProcessor infrastructure added
2015-02-26 15:25:39 +03:00
Mikhail Mutcianko
376886a9c3
add configuration key to pass android manifest file
2015-02-26 15:25:28 +03:00
Mikhail Mutcianko
ec6f9c9fc5
add compiler key for providing android resources path
2015-02-26 15:25:18 +03:00
Evgeny Gerashchenko
9f159b1fea
Extracted cli-parser to separate library. Removed full dependency jps-plugin -> idea-full.
2015-02-13 21:51:50 +03:00
Alexander Udalov
8ca803775f
Rename package jet -> kotlin in cli, cli-common
...
org.jetbrains.jet.cli -> org.jetbrains.kotlin.cli
Also fix some minor warnings
2015-01-08 23:32:07 +03:00
Alexander Udalov
5e261e344e
Move ExitCode to cli-common, simplify KotlinCompilerRunner
...
- check exit code's toString instead of integer code: more readable and stable
this way
- call newInstance() on arguments' classes instead of pointless constants
2014-12-29 18:19:20 +03:00
Alexander Udalov
b8328f9190
Rename MessageRenderer constants
2014-12-29 18:17:21 +03:00
Zalim Bashorov
adab0445de
K2JS: introduce "no-stdlb" parameter and use stdlib from compiler by default.
2014-11-07 16:30:52 +03:00
Zalim Bashorov
0e075c7d5f
JS backend: added the ability to turn off the inline optimization.
2014-10-03 14:23:53 +04:00
Evgeny Gerashchenko
184ddbc9e1
Removed passing incremental cache base dir via module script.
2014-08-20 13:46:29 +04:00
Alexander Udalov
a83d9a7dce
CLI: introduce alias "-cp" for "-classpath"
2014-08-13 11:10:42 +04:00
Alexander Udalov
5a792ca11f
CLI: output relative paths in diagnostic messages
2014-08-13 11:10:41 +04:00
Alexander Udalov
75db407208
Minor, reuse existing constant
2014-08-13 11:10:41 +04:00
Alexander Udalov
850fc25ee0
CLI: drop "-tags" argument
...
It was only used for the compiler inside the IDE, and there we already invoke a
special method which outputs HTML only
2014-08-13 11:10:41 +04:00
Alexander Udalov
1d2dbca27a
Minor, move utility method out of an interface
2014-08-13 11:10:40 +04:00
Alexander Udalov
97e57e3e3d
CLI: change "-suppress warnings" option to "-nowarn"
...
Following the rule of the least surprise: this option is named "-nowarn" in
other JVM language compilers. Besides, having an option with an argument which
can take exactly one predefined value is sort of confusing
2014-08-13 11:10:40 +04:00
Alexander Udalov
cf431ffab0
CLI: change argument naming convention
...
As in all other Unix/POSIX tools and JVM language compilers, multiple words
comprising the argument name should be lowercase, separated by dashes
2014-08-13 11:10:40 +04:00
Alexander Udalov
6da95e2cea
Maven plugin: support additional arguments, drop inline/optimize
2014-08-13 11:10:39 +04:00
Alexander Udalov
160cde09d6
CLI: Support "-X" advanced options, simplify some boolean options
2014-08-13 11:10:37 +04:00
Alexander Udalov
99025de748
Drop "-jar" and "-output" kotlinc-jvm CLI arguments
...
In favor of a brand new "-d" option
2014-07-26 00:32:28 +04:00
Alexander Udalov
19b80f57cf
Support "-d" option in kotlinc-jvm
...
The intent is to unify "-output" and "-jar" options into the one "-d"
(destination)
2014-07-23 21:24:40 +04:00
Alexander Udalov
de0fd3818c
Drop "-src" in kotlinc-jvm
...
Free arguments should be used instead
2014-07-23 21:24:39 +04:00
Alexander Udalov
917938e57b
Update copyrights
2014-07-23 21:24:39 +04:00
Alexander Udalov
87439b8e0b
Drop "-sourceFiles" in kotlinc-js
...
Use free arguments instead, as is done in kotlinc-jvm and all sensible
compilers everywhere
Also fix some cases of AntTaskTest to be able to run them locally
2014-07-23 21:24:38 +04:00
Alexander Udalov
125c5e2942
Drop "-printArgs"
2014-07-23 16:01:12 +04:00
Denis Zharkov
0e683b0b99
Added "optimize" flag to settings everywhere
2014-07-15 21:34:32 +04:00
Evgeny Gerashchenko
c4573b8c5a
Got rid of ModuleDescription intermediate entity.
2014-07-10 15:05:19 +04:00
Alexander Udalov
ca219f9880
Beautify kotlinc -help output
2014-06-25 22:32:16 +04:00
Alexander Udalov
f51e172570
Fix kotlinc command line usage information
...
Fix spelling, case, minor grammar
2014-06-25 22:32:14 +04:00
Evgeny Gerashchenko
f6129732a2
Writing incrementalCache attribute to <modules> element of xml module script
2014-06-19 01:03:59 +04:00
Evgeny Gerashchenko
ca1ee69e4c
Loading descriptors from incremental cache instead of package classes.
2014-06-18 22:56:33 +04:00
Alexander Udalov
d42598a935
Move default inline flag to JVM back-end
...
- other back-ends are likely to have its own value of this flag
- get rid of DEFAULT_INLINE_FLAG_FOR_TEST
- the main goal was to simplify the default GenerationState constructor, which
now always uses default inline flag value
2014-05-08 16:45:14 +04:00
Andrey Breslav
bcc6843835
Render file name and position in errors from JS library stubs
2014-03-28 13:18:46 +04:00
Mikhael Bogdanov
ca4609dd2a
Support inline true/false options
2014-03-20 17:50:52 +04:00
Mikhael Bogdanov
ee136d6594
Default inline flag = true
2014-03-03 15:43:45 +04:00
Alexander Udalov
004c289a0b
Use kotlin.modules.* instead of jet.modules.*
2014-02-28 21:48:25 +04:00
Ilya Klyuchnikov
0be6e57efe
typo fixed: invokation -> invocation
2014-02-28 14:25:10 +04:00