Commit Graph

39 Commits

Author SHA1 Message Date
Yan Zhulanow
6e5eb0fdd4 Kapt: Implement 'kapt' command-line tool (KT-24998, KT-24997) 2018-11-27 22:21:23 +09:00
Alexander Udalov
5b9ee88b52 Remove --add-opens options to workaround Java 9 visibility checks
These options are no longer needed because the problematic code in
intellij-core that was accessing these private APIs has been dealt with
in the 171 branch.

The remaining options in "Codegen Tests" run configurations are needed
because of reflection usage on JDK internals in KtUsefulTestCase
2017-07-06 12:50:04 +03:00
Alexey Andreev
ee18c0f4e7 Fix name of JS DCE tool 2017-06-05 11:22:37 +03:00
Alexey Andreev
8a8fdf1968 Command-line tool for JS DCE 2017-05-26 18:20:17 +03:00
Alexander Udalov
a5d70cfa68 Support running Kotlin compiler CLI on Java 9 on Unix
Workaround IDEA-170005, IDEA-170494 and similar issues by opening the
required packages from java.base to the unnamed module

 #KT-14988 In Progress
2017-03-30 13:04:41 +03:00
Alexander Udalov
510295475b Batch script: allow to pass JAVA_OPTS from outside
Similarly to the Bash version

 #KT-14917 Fixed
2016-12-23 22:31:11 +03:00
Sergey Mashkov
dafe7e3539 KT-14003 kotlinc shebang should use env 2016-10-07 17:52:34 +03:00
Tim Steinbach
7cad65a1e7 Remove which dependency from startup scripts 2016-01-28 21:48:16 +03:00
Alexander Udalov
4dc29bf0b2 Introduce 'kotlin' script for running programs
'kotlin' is to 'kotlinc' what 'java' is to 'javac'. However it will support
much more: running class by name, jar, scripts, expressions, REPL
2015-09-08 20:30:50 +03:00
Alexander Udalov
aba6ab1299 Refactor command-line interface to kotlin-preloader.jar
Use reasonable defaults for the options: no time profiling, no instrumenters,
empty classpath, 4096 as the class number estimate. Replace 4096 in the
codebase with the constant field.

Keep the old interface intact until the build is bootstrapped and the new one
can be used in all compilation steps
2015-08-24 01:29:58 +03:00
Alexander Udalov
9637c049fe CLI: update KOTLIN_HOME lookup process in Bash script
The original code was taken from the 'scalac' script, where it has evolved
since and now is a lot easier to understand
2015-06-15 15:43:31 +03:00
Alexander Udalov
2f1316ec9c CLI: don't pass -D and -J options to Kotlin
Kotlin compiler's CLI argument parser currently fails on these options, so
there was no convenient way to use them
2015-06-15 15:42:43 +03:00
Alexander Udalov
cdd53de9a7 CLI: get rid of duplication in JVM/JS scripts 2015-06-15 15:42:42 +03:00
Alexander Udalov
1b7ba320c7 Fix handling of paths with spaces in kotlinc script 2015-04-15 01:16:07 +03:00
Onorio Catenacci
84acaa9bf6 Changed the path for calling kotlinc-jvm.bat to use short (8.3) names so that this will work correctly with paths with spaces in them 2015-04-15 01:16:06 +03:00
Alexander Udalov
21b2fa2509 Update copyrights to 2015 2015-01-13 01:15:18 +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
1bf3ca2e26 Rename package jet -> kotlin in preloader and instrumentation
org.jetbrains.jet.preloading -> org.jetbrains.kotlin.preloading
2015-01-05 04:19:04 +03:00
Alexander Udalov
9273b0dfec Preloader: support loading classpath dependencies from manifest
Move this logic from ide-compiler-runner. This fixes running 'kotlinc' CLI
compiler locally when the runtime is changed binary incompatibly
2014-12-29 18:19:23 +03:00
Alexander Udalov
3ada0ce0a9 Fix kotlinc scripts on Cygwin 2014-08-20 15:25:45 +04:00
Alexander Udalov
d3f201dd45 CLI: drop "-pp" flag for preloader profiling
It was never documented and was never supposed to be used. In the rare case
when someone must profile preloader, he can temporarily change "notime" to
"time" in the kotlinc-jvm bash/batch script
2014-08-13 11:10:41 +04:00
Alexander Udalov
d4c792d0ee Fix errorlevel returned by kotlinc-*.bat scripts
Propagate errorlevel returned as an exit code from the compiler to the outside
world.

This may not work on Windows XP or earlier, but is required for Windows 7+
2014-07-02 00:38:49 +04:00
Alexander Udalov
e04f7c24fa Alias 'kotlinc' for 'kotlinc-jvm' 2014-06-26 22:02:58 +04:00
Evgeny Gerashchenko
50bea726ff Fixed exit code passing on Windows XP 2013-12-09 19:04:20 +04:00
Evgeny Gerashchenko
f2bbbed7f6 Returning correct exit code from Windows batch scripts. 2013-11-21 17:37:38 +04:00
Evgeny Gerashchenko
51ac515941 Fixed kotlinc-* executables. 2013-11-21 17:37:37 +04:00
chocolateboy
1bf06f7c02 make the preloader's required profiler argument (time|notime) an optional switch: -pp
fixes for broken Windows batch files
2013-05-21 12:22:06 +04:00
Andrey Breslav
bbb661506a Preloader for command-line compiler 2013-04-26 14:33:18 +04:00
Andrey Breslav
b3248baae9 "-noverify" by default to speed up class loading 2013-04-26 14:32:55 +04:00
Alexander Udalov
8a33e1d6b2 Fix kotlinc on Cygwin
Do not convert KOTLIN_HOME back to unix format, since it's passed to Win
version of Java, which doesn't understand /cygdrive/.. paths

 #KT-3049 Fixed
2012-11-27 13:33:57 +04:00
Alexander Udalov
e97f53ce8d Don't output long comment every time in kotlinc on Windows
#KT-3048 Fixed
2012-11-26 19:37:05 +04:00
Alexander Udalov
32f30c89d0 Preserve spaces in kotlin home 2012-11-26 19:35:21 +04:00
Alexander Udalov
07ed31f90e Set executable permissions to kotlinc 2012-11-26 19:33:47 +04:00
Leonid Shalupov
4a0f929fc3 bin scripts to call js compiler 2012-05-04 23:50:41 +04:00
Leonid Shalupov
4eae229127 reworked kotlin compiler dist 2012-05-04 19:12:02 +04:00
pTalanov
d0d5b147f2 Refactor cli: all the jvm stuff goes under org.jetbrains.jet.cli.jvm, common stuff under org.jetbrains.jet.cli.common 2012-04-25 20:19:15 +04:00
Andrey Breslav
6f9ed383f3 Script fixed for Mac 2011-10-17 21:47:02 +04:00
Dmitry Jemerov
9b51604c92 assorted build script fixes 2011-10-17 18:15:53 +02:00
Dmitry Jemerov
3083fde2dd binary distribution for Kotlin 2011-10-17 18:01:02 +02:00