Commit Graph

534 Commits

Author SHA1 Message Date
Evgeny Gerashchenko 72c39dc903 Renamed doDoMain -> doMainNoExit. 2012-07-31 16:45:13 +04:00
Maxim Manuylov 2d6158b9d8 annotations 2012-07-31 16:43:58 +04:00
Maxim Manuylov a8cd11f0f9 more tests for compiler 2012-07-31 16:43:56 +04:00
Maxim Manuylov 0813e6bc1c ability to print command line arguments via system property 2012-07-31 16:43:20 +04:00
Maxim Manuylov 7eba14bcf1 compiler must print some info on wrong arguments 2012-07-31 16:43:20 +04:00
Evgeny Gerashchenko 01ef9133d4 Using custom CompilerConfigurationKey in CompilerConfiguration API. 2012-07-31 16:33:45 +04:00
Evgeny Gerashchenko 9a5fc78b85 Removed factory methods from JetCoreEnvironment since they only invoke constuctor. 2012-07-31 16:33:45 +04:00
Evgeny Gerashchenko 17e3738084 Added read-only mode for complier configuration. 2012-07-31 16:33:45 +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 75ce5b3a1b Removed obsolete comment. 2012-07-31 16:33:44 +04:00
Evgeny Gerashchenko 4d56bd4b59 Inlined createCompilerConfiguration(), since configuration filling logic is doExecute() method. 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 a76c2bf2eb Removed unused K2JSCompilerEnvironmentConfiguration class. 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 c14a0b3c84 refactoring of script definition api 2012-07-30 09:26:30 +03:00
Alex Tkachman 7c2d394412 properr names for scripts 2012-07-29 23:58:45 +03:00
Alex Tkachman f8391619a5 configurable script languages 2012-07-29 21:32:53 +03:00
Alex Tkachman b8bfde3102 in-memory compilation of standalone script 2012-07-28 20:32:18 +03:00
Evgeny Gerashchenko 42e00102f8 Removed redundant "final" keywords at variables and parameters. 2012-07-27 17:57:30 +04:00
Maxim Manuylov ada74af225 detect bundled SDK automatically 2012-07-26 20:08:58 +04: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 fd560e62b7 Updated module dependencies according to asm-util -> asm-addons renaming. 2012-07-26 19:02:58 +04:00
Andrey Breslav 0f7bd32608 JetCoreEnvironment does not extend JavaCoreApplicationEnvironment any more
Delegation seems more appropriate here.
2012-07-25 15:49:43 +04:00
Andrey Breslav cee77c3b7e JetCoreEnvironment implementaion over the new environment design in intellij-core 2012-07-25 12:07:20 +04:00
Andrey Breslav 5f3643804c Import directives migrated from ASM 3.3 to 4.0 with renamed packages 2012-07-25 12:07:19 +04:00
Andrey Breslav 839c39c70d Migrate build and project configuration to IntelliJ IDEA 12 (Leda) EAP
Major changes: ASM is switched from vanilla 3.3 to a 4.0 with renamed packages,
because this is done inside IDEA and we depend on that transitively.
Thus the jarjar renaming in build.xml, old library binaries deleted.

Also we now depend on exact IDEA build (EAP), not "last successful".
2012-07-25 12:07:19 +04:00
Evgeny Gerashchenko 7bf32e238b Added workaround for backend bug to fix kdoc generator. 2012-07-24 12:52:46 +04:00
Alex Tkachman f3fa19e35d private constructors added 2012-07-24 10:59:28 +03:00
Evgeny Gerashchenko aea01d9638 Replaced non-ASCII symbol to fix compilation. 2012-07-23 18:39:28 +04:00
Evgeny Gerashchenko 0c4e23e438 Added assertion in JetCoreEnvironment.addToClasspath() prohibiting to invoke it when environment is initialized. 2012-07-23 17:38:20 +04:00
Evgeny Gerashchenko 044b6bf435 Removed unused methods. 2012-07-23 17:38:20 +04:00
Evgeny Gerashchenko 49680d9a9a Removed unused method. 2012-07-23 17:38:19 +04:00
Evgeny Gerashchenko 4dc4b295d2 Made addSources and addExternalAnnotationsRoot method private in JetCoreEnvironment. 2012-07-23 17:38:19 +04:00
Evgeny Gerashchenko 0dffe7a85c Creating environment each time when compiling modules. 2012-07-23 17:38:19 +04:00
Evgeny Gerashchenko 1d35cf2729 Storing CompilerConfiguration in JetCoreEnvironment. 2012-07-23 17:38:19 +04:00
Evgeny Gerashchenko 13e62f1222 Adding sources to configuration before JetCoreEnvironment creation for CLI. Except for module case, because it's pretty complex. 2012-07-23 17:38:19 +04:00
Evgeny Gerashchenko ba2ca55848 Removed unused method. 2012-07-23 17:38:19 +04:00
Evgeny Gerashchenko b8543bed22 Passing sources via compiler configuration on analyzing module script. 2012-07-23 17:38:19 +04:00
Evgeny Gerashchenko f45494548f Passing sources via compiler configuration in K2JSCompiler. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko abfc54d5ab Removed unused KotlinToJVMBytecodeCompiler.compileText method and test for it. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko 4609360bcc Removed unused method. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko b771a61d30 Rewritten CompileTextTest so it doesn't add class path to already created configuration. Removed JetCoreEnvironment.addToClasspathFromClassLoader() method. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko 916f34ea7e Added parameter to JetCoreEnvironment.createCoreEnvironmentForJS. 2012-07-23 17:38:18 +04:00
Evgeny Gerashchenko d8b0070f1e Added SOURCE_ROOTS_KEY for compiler configuration. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko f43b617fd8 More neat adding JDK to configuration used for module script compilation. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko e54767e9a6 Removed unused methods. 2012-07-23 17:38:17 +04:00
Evgeny Gerashchenko 58ff66b46c Eliminated JetCoreEnvironment.configure() method. Actual setting classpath/annotations path is performed in constructor instead. 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