Commit Graph

95 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 942c1ee9d9 Reverted fix for KT-2042 Kotlin SDK must be explicitly specified for each module that uses Kotlin
#KT-2042 reopened
2012-07-31 18:19:40 +04:00
Evgeny Gerashchenko edb2e0e3b6 Got rid of creating JetCoreEnvironment which wont be used when compiling modules from module script. 2012-07-31 16:33:44 +04:00
Evgeny Gerashchenko 2727aa7da4 Gor rid of K2JVMCompileEnvironmentConfiguration and CompileEnvironmentConfiguration. Using JetCoreEnvironment instead of K2JVMCompileEnvironmentConfiguration. 2012-07-31 16:33:44 +04:00
Evgeny Gerashchenko 940c09fc8a Passing message collector via CompilerConfiguration. 2012-07-31 16:33:44 +04:00
Evgeny Gerashchenko 33c661e7f3 Passing compiler plugins via CompilerConfiguration. 2012-07-31 16:33:44 +04:00
Evgeny Gerashchenko 8dfa3d8ce9 Moved everything but environment and messageCollector from K2JVMCompileEnvironmentConfiguration to CompilerConfiguration. 2012-07-31 16:33:44 +04:00
Alex Tkachman 5cda223ce4 fixed compilation 2012-07-28 20:47:18 +03:00
Maxim Manuylov 843fb8d7a9 refactor PathUtil - it is a big difference now, whether we find sdk home from plugin or from compiler 2012-07-26 20:08:58 +04:00
Evgeny Gerashchenko ea6c4116df Passing sources via compiler configuration in BytecodeCompiler. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko 8aee0e0543 Adding source roots right after JetCoreEnvironment creation. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko ffca0409d4 Changed types of JVM configuration keys from arrays to lists. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko 8124e477ce Renamed methods getUserData and putUserData to get and put, respectively. 2012-07-23 17:38:16 +04:00
Evgeny Gerashchenko d32d2c0bda Reformatted Ant task code according to coding conventions. 2012-07-23 17:38:16 +04:00
Evgeny Gerashchenko b65f5cf53f Removed CompilerSpecialMode from JetCoreEnvironment. 2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko f7290d178b Replaced passing compiler special mode to JetTypeMapper with special enum type. Enum type means if builtin types should be mapped to Java standard classes in generated bytecode. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 5becb4efb1 Passing "stubs" flag to K2JVMCompileEnvironmentConfiguration to avoid checking compiler special mode. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 6e7d08b478 Introduced BuiltinsScopeExtensionMode enum. Using it instead of CompilerSpecialMode to create JavaBridgeConfiguration. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 684d345dce Removed CompilerDependencies class. 2012-07-07 23:07:18 +04:00
Evgeny Gerashchenko 6e82ab70bc Got rid of using CompilerDependencies in JetCoreEnvironment. CompilerConfiguration is passed instead. 2012-07-07 23:07:17 +04:00
Stepan Koltsov 8dd1465371 pull script up in cli 2012-06-10 03:44:29 +04:00
Stepan Koltsov 35f1de468f refactor compiler launcher
* method should not modify input
* replace String with File
* add @NotNull and @Nullable annotations
2012-06-10 03:44:29 +04:00
Stepan Koltsov 30e44fdc5f script parameters
still a lot of things to do
2012-05-28 20:31:29 +04:00
Stepan Koltsov 6063c01a1c command line script launcher
% ./bin/kotlin -script hello.ktscript
hello world

% cat hello.ktscript
fun hello(what: String) = println("hello $what")
hello("world")

Note it currently takes 8 seconds to evaluate hello world script.
2012-05-23 02:52:30 +04:00
Stepan Koltsov 8623fba01b cli: store unused arguments 2012-05-22 00:02:56 +04:00
Leonid Shalupov ffcba10773 cleanup 2012-05-07 17:39:46 +04:00
Leonid Shalupov ded589249f fix build from idea 2012-05-04 23:10:31 +04:00
Leonid Shalupov 4eae229127 reworked kotlin compiler dist 2012-05-04 19:12:02 +04:00
pTalanov ce929fab49 Rename CompileEnvironmentConfiguration. Drop ArgsUtil class. Add CompilerSpecialMode.JS. 2012-05-02 15:23:40 +04:00
Stepan Koltsov b109ac5ad4 store CompilerDependencies in JetCoreEnvironment 2012-05-01 22:59:42 +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 deaaf3042b Fixed compilation in build-tools 2012-04-24 21:22:46 +04:00
Andrey Breslav 8a40f943de Module script loading separated from module compilation 2012-04-24 21:22:45 +04:00
Andrey Breslav 13764c06c0 Compiler plugins moved to CompilerEnvironmentConfiguration 2012-04-20 14:58:14 +04:00
Andrey Breslav 4da91ee3d6 CompileEnvironment removed
What used to be CompileEnvironment, now is split into data (in CompileEnvironmentConfiguration) and utility methods (in CompileEnvironmentUtil).
CompilerDependencies should be removed later.
All the relevant stuff sits in the JetCoreEnvironment class
2012-04-20 11:52:02 +04:00
Andrey Breslav 882412ea06 Proper handling of compiler messages
We used to have a triple (errorStream, messageRenderer, verbose) to represent the error reporting strategy.
 Now we have a single MessageCollector abstraction for this.
 As the MessageCollector abstraction was extracted, the need to CompilerMessageLocation and CompilerMessageSeverity arose, too.
2012-04-13 19:38:23 +04:00
Stepan Koltsov 03e78e8cc3 Revert "add runtime to classpath in JetCoreEnvironment" temporarily
This reverts commit 59c7f33c88.
2012-04-09 18:54:42 +04:00
Stepan Koltsov 59c7f33c88 add runtime to classpath in JetCoreEnvironment 2012-04-09 18:22:23 +04:00
Stepan Koltsov 10dd366216 CompilerDependencies
Holds reference to runtime.jar and jdk-headers.jar. Paths to these
jars are no longer hardcoded.

Many tests now compile runtime before execution. Because of this:
* Single test invocation is significantly slower now for some tests
* This can be fixed by making tests independent from runtime (this
must be done anyway)

Some tests still depend on runtime.jar built by "ant dist", this
is to be fixed.
2012-04-09 03:04:50 +04:00
James Strachan beedd36456 refactored out the KDocLoader stuff from the KotlinCompiler; also introduced CompilerPluginContext to wrap up the Project, BindingContext and List<JetFiles> in case a plugin were to need any of those things (or we added extra stuff later like the environment) 2012-03-29 16:37:36 +01:00
Andrey Breslav ed04839901 renaming/code moving to meet the code style 2012-03-29 19:22:55 +04:00
James Strachan a970fd24f3 include the j2k in the build tools jar 2012-03-29 09:51:51 +01:00
James Strachan e740c47e29 removed some of the cruft and redundant copies of junit.jar 2012-03-21 09:09:09 +00:00
Maxim Shafirov 43956b565a #KT-1562 Fixed. 2012-03-15 15:12:29 +04:00
Evgeny Goldin 5b7dff2bad BytecodeCompiler - compiler invocation wrapped with try/catch. 2012-03-14 19:55:56 +01:00
Evgeny Goldin da11b990f0 Build tools compilation error - absolute path is logged. 2012-03-08 16:41:04 +01:00
Evgeny Goldin 5da08b2bbc Build tools - "testlib-tests" task is commented out. 2012-03-07 21:31:32 +01:00
Evgeny Goldin 33f5b07997 KT-1529: Failing module compilation doesn't fail Maven build - test added. 2012-03-07 21:12:16 +01:00
Evgeny Goldin 710b22debe Build tools - "${basedir}/testlib" => "${basedir}/libraries/testlib" 2012-03-07 21:04:03 +01:00
Evgeny Goldin 0ceac22872 KT-1529: Failing module compilation doesn't fail Maven build 2012-03-07 20:43:07 +01:00
Stepan Koltsov 1e08fc3754 make build-tools module depend on idea-core to fix build 2012-03-07 20:48:34 +04:00