Commit Graph

386 Commits

Author SHA1 Message Date
Denis Zharkov c817949221 Add services from descriptor.loader.java to resulting jars
#KT-9558 Fixed
2015-10-12 18:51:36 +03:00
Ilya Gorbunov 423a146bce Preprocessor: do not use legacy package facade name in build.xml. 2015-10-11 16:14:24 +03:00
Alexander Udalov 13c54a2678 Drop external annotations support in build tools
External annotations will only be considered in the IDE for additional
inspections based on more precise types in Java libraries
2015-10-09 11:51:58 +02:00
Ilya Chernikov 50f482e50f Fixing problem of hanging wait for jps process in idea by using a native-platform lib for platform-specific daemon execution
Adding native-platform uberjar contents to kotlin jps plugin jar
2015-10-07 19:55:04 +02:00
Nikolay Krasko cb510a6809 Don't pack version of libraries into compiler artifact 2015-10-05 16:09:45 +03:00
Nikolay Krasko c2b4647aa8 Avoid storing same files in kotlin-compiler.jar for maven
#KT-9202 Fixed
2015-10-01 16:42:56 +03:00
Alexander Udalov 1e6f230d69 Fix "ant compiler-quick", add conditional-preprocessor 2015-10-01 02:14:25 +03:00
Natalia Ukhorskaya 9ab4aafa01 jna-util.jar was renamed to jna-platform.jar 2015-09-28 11:38:07 +03:00
Ilya Gorbunov 6bb88df693 Turn off Xmultifile-package-facades option for stdlib. 2015-09-25 21:09:45 +03:00
Ilya Gorbunov 947b8ac428 ant build: Do not preprocess stdlib source for JVM, only for JS. 2015-09-25 21:09:31 +03:00
Ilya Gorbunov 1df4ab847d Remove task for ant, include preprocessor into the compiler, call preprocessor in ant build. 2015-09-25 21:09:22 +03:00
Ilya Gorbunov e8c93abdb5 Developing preprocessor task for ant 2015-09-25 21:09:20 +03:00
Michael Nedzelsky 15edbbb60c move service declaration to cli 2015-09-25 18:10:58 +03:00
Pavel V. Talanov 4a32993cc3 Ant build: apply -Xmultifile-package-facades while building stdlib and reflection jars only 2015-09-23 18:29:13 +03:00
Yan Zhulanow c458e33cd1 Fix .java files compilation in android-compiler-plugin 2015-09-18 20:47:16 +03:00
Dmitry Petrov 1586a2df8e Make stdlib work with -Xmultifile-package-facades.
Fixed wrong owner mapping in presence of -Xmultifile-package-facades.
Fixed backing field mapping issue.
Added more tests.
2015-09-14 11:26:29 +03:00
Ilya Chernikov f6c6087fe3 Adding escaping to kotlin.daemon.jvm.options property processing to allow passing e.g. debugging agent params; adding kotlin.daemon.startup.timeout property to control startup timeout; more logging; some minor cleanup and fixes 2015-09-10 22:30:55 +02:00
Stanislav Erokhin 57c006a1c6 Created Update-Dist-Run configuration 2015-09-09 22:02:10 +03:00
Michael Bogdanov a52281f52a Support default module name for withKotlin ant task 2015-09-09 13:32:39 +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
Michael Bogdanov 25234f672a Maven plugin fixes 2015-09-07 16:29:05 +03:00
Michael Bogdanov c31f2eecc1 updated build.xml 2015-09-07 16:29:05 +03:00
Michael Bogdanov 6dcd059009 new kompiler parameter 2015-09-07 16:28:47 +03:00
Ilya Chernikov 9bee97e810 Refactoring after review 2015-08-31 18:39:55 +02:00
ligee 06b3ca8343 Initial version of rmi-interface, compile server and kotlinr - commandline compile server client app 2015-08-31 18:39:48 +02:00
Alexander Udalov 59a15092da Drop old preloader command-line interface, use new one instead 2015-08-27 08:19:51 +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
Dmitry Jemerov 8ef5adb5bd remove usages of ant-contrib from Ant build scripts 2015-07-31 14:26:57 +02:00
Dmitry Jemerov f86bb119bb download ProGuard from Artifactory 2015-07-31 13:18:11 +02:00
Dmitry Tishchenko 2fbceb3e1d Added export for completion visibility filter tests 2015-07-16 18:21:32 +03:00
Ilya Ryzhenkov 5db541ee24 Add container module with implementation of di based on java reflection
Initial implementation by Ilya Ryzhenkov
Renovation, optimization, integration and removal of unused features by Pavel Talanov
2015-06-26 15:21:39 +03:00
Denis Zharkov 80a7f79f12 Make jars with JDK/Android SDK annotations empty
- Compiler use them only for getting parameter names and we are OK to drop it
- IDE plugin can use jdkAnnotations from ideaSDK
2015-06-23 16:44:27 +03:00
Alexander Udalov 5ec4576844 CLI: add color to compiler output via jansi
Disabled on Windows temporarily, because for some reason colors there work only
in REPL
2015-06-15 15:42:42 +03:00
Alexander Udalov 64b60718e3 Finish off old deprecated function/extension function classes
This reverts commit d14e5b8a72.
2015-06-10 14:41:57 +03:00
Alexander Udalov cbbf8dec7e Drop ant-1.7 from project, advance Ant to 1.8.2
Ant 1.8.2 has the API (namely,
CompilerAdapterExtension#getSupportedFileExtensions) which will allow to fix a
critical bug in <withKotlin/> task (see KT-7870)
2015-06-05 15:55:52 +03:00
Alexander Udalov 9cc156c67f Copy kotlin-reflect.jar from dist to publish to Maven
Also build sources jar in build.xml to publish as kotlin-reflect's sources, and
create an empty javadoc
2015-06-02 11:12:09 +03:00
Alexander Udalov c830eee453 Add kotlin-reflect.jar to targets in build.xml 2015-06-02 11:12:08 +03:00
Alexander Udalov 803fb82b8b Minor, move compiler.pro out of project root 2015-06-01 19:23:09 +03:00
Alexander Udalov d14e5b8a72 Restore and deprecate Function{n}/ExtensionFunction{n} classes for easier migration
Users' Java code will not break in common cases (when passing functions to
Kotlin), and deprecation warnings will be reported.

Provide an inspection with a quick fix which allows to replace deprecated
function class usages to the new classes. Include this fix to the "code
cleanup" action
2015-05-28 01:20:05 +03:00
Alexander Udalov 45c28abfee Keep built-in metadata for reflection interfaces
Reflection interfaces (interfaces in kotlin.reflect.* in core/builtins/) are
now fully considered as built-ins and can be accessed via KotlinBuiltIns. This
increases runtime size by ~20kb, but only because KotlinBuiltIns is static and
is therefore constructed only via resource loading from the compiler classpath
at the moment. As soon as it's possible to inject KotlinBuiltIns to the
particular resolution process, the metadata on JVM will be loaded via standard
annotation mechanism (kotlin.jvm.internal.KotlinClass/KotlinPackage) and wasted
runtime space will be reclaimed
2015-05-26 14:27:38 +03:00
Michael Nedzelsky 4a05005fa7 JS: do not include sources in kotlin-jslib.jar 2015-05-26 05:03:28 +03:00
Yan Zhulanow b2220ca98a Annotation collector compiler plugin 2015-05-21 15:48:06 +03:00
Michael Nedzelsky d629271510 JS: make -meta-info cli option boolean 2015-05-21 02:30:54 +03:00
Andrey Breslav a2b1a86ef5 Rename packages in kotlin-reflect.jar so that they do not duplicate compiler classes 2015-05-19 17:15:02 +03:00
Andrey Breslav 100c1b2787 Proguard instruction extracted to a separate file 2015-05-19 17:15:02 +03:00
Alexander Udalov b860f2c9d5 Minor, remove temporary bootstrapping workaround 2015-04-29 01:03:54 +03:00
Alexander Udalov 244f37aa74 Use preloader for JS compilation in build.xml
Similar to "new-kotlinc" macro. Before this change bootstrap-runtime appeared
earlier on the classpath than the newly built compiler, and so everything was
breaking when e.g. built-ins metadata had been updated (old version in the old
runtime was found earlier than the newer version in the compiler)
2015-04-28 00:52:03 +03:00
Alexander Udalov 20cd360b07 Rename built-in metadata files starting with dot
Files starting with dot are considered as hidden on Unix systems, and sometimes
are ignored by the tools. For example, Android build tools do not package such
files to the resulting application, which causes Kotlin reflection to fail
there

 #KT-7088 Fixed
2015-04-23 03:17:29 +03:00
Nikolay Krasko ea47e29757 Update ZipFileCache and LowMemoryWatcher from new Idea 2015-04-16 00:25:01 +03:00
Alexander Udalov 91bb789758 Fix builtins-serializer source root in compiler sources jar 2015-04-14 12:56:50 +03:00