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
Evgeny Gerashchenko
8124e477ce
Renamed methods getUserData and putUserData to get and put, respectively.
2012-07-23 17:38:16 +04:00
Andrey Breslav
bc6c8e980e
Module scripts are compiled in an environment with JDK & Annotations
2012-07-20 19:29:46 +04:00
Andrey Breslav
15d469156a
Reverting command line reporting: it breaks tests
2012-07-14 12:15:30 +04:00
Andrey Breslav
95b93322b3
Report the command line that was passed if its format is wrong
2012-07-14 11:56:29 +04:00
Evgeny Gerashchenko
3bf8321e3c
Fixed evil bug in processing command-line args: classpath was added as annotations path.
2012-07-11 15:44:43 +04:00
Evgeny Gerashchenko
8050b96f27
Fixed code outside main project which was broken after refactoring.
2012-07-07 23:07:20 +04:00
Evgeny Gerashchenko
90a7b17fd8
Creating empty compiler configuration in module script instead of default.
2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko
a2765899b5
Removed obsolete -stdlib CLI parameter.
2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko
b958886e23
Removed obsolete -jdkAnnotations CLI parameter.
2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko
a02658b1a6
Removed obsolete -mode CLI parameter.
2012-07-07 23:07:19 +04:00
Evgeny Gerashchenko
531167bcee
Added -builtins CLI option. Using it instead of "-mode stdlib" to enable special frontend and backend modes.
2012-07-07 23:07:19 +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
aef2c372e1
Inlined the only usage of CompilerSpecialMode.isStubs().
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