Commit Graph

48 Commits

Author SHA1 Message Date
Andrey Breslav 0ec4131231 KDoc compilation fixed 2012-12-14 15:28:22 +04:00
Andrey Breslav e324d3914f KT-3120 The compiler should not depend on the file directory of the libs
#KT-3120 In Progress
2012-12-12 17:37:32 +04:00
Evgeny Gerashchenko d349bca42c All methods of Printer return this (for chaining). 2012-12-07 14:41:58 +04:00
Natalia.Ukhorskaya 673eba662d System property kotlin.jps.test may be null 2012-11-27 16:48:36 +04:00
Natalia.Ukhorskaya 74ca357502 Add tests for jps plugin 2012-11-27 14:54:18 +04:00
Andrey Breslav 4ed07cd9ae Introducing KotlinPaths to impose some discipline on compiler/library location 2012-11-21 18:16:09 +04:00
Andrey Breslav 4ee76a6649 KT-3056 Kotlin: Cannot find kotlinc home. Make sure plugin is properly installed
#KT-3056 Fixed
2012-11-21 14:12:51 +04:00
Andrey Breslav cca21e96c1 Progress class moved to jvm backend 2012-11-13 13:45:44 +04:00
Andrey Breslav 7719df1002 Properly detect Kotlin built-ins:
Built-in classes like jet.Int and jet.Iterable are loaded from source
files by KotlinBuiltIns class. It makes no sense to create JetLightClass
instances for such classes, moreover, it causes runtime failures.
Now we check the location a file was loaded from before creating a light
class, and skip if it is a built-in.

We also assert this in teh actual generation of light class bodies, and
print out OS information if something fails, because our detection strategy
may depend on OS-specific behavior.
2012-10-18 19:57:18 +04:00
Andrey Breslav ab18b12165 DFS utility class factored out of CommonSupertypes 2012-09-11 20:52:10 +04:00
Alexander Udalov 34eade6f4f Rename println() method to prevent name collisions with the existing vararg method 2012-09-05 19:39:26 +04:00
Alexander Udalov 5aca16e65e Replace "\n" with System.getProperty("line.separator") 2012-09-05 18:52:15 +04:00
Pavel V. Talanov 9dce8a9f33 Merge remote-tracking branch 'origin/master'
Conflicts:
	js/js.translator/src/org/jetbrains/k2js/translate/intrinsic/functions/factories/RangesFIF.java
	js/js.translator/src/org/jetbrains/k2js/translate/intrinsic/functions/patterns/NamePredicate.java
2012-08-14 13:04:38 +04:00
Andrey Breslav e087d50a7f printlnWithNoIndent() added 2012-08-09 17:35:21 +04:00
Pavel V. Talanov 2eca6c836e Rename kotlinLib.js to kotlinEcma3.js and update build.xml accordingly.
Update paths to js-tests-lib in build.xml.

Adapted from https://github.com/develar/kotlin/commit/d3521123a6e4d551b30743b68b6bb23b9678553b.
2012-08-08 15:43:18 +04:00
Andrey Breslav a98bc541f5 Printer class moved from tests to util 2012-08-07 16:44:14 +04:00
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 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 b6258beb87 fix sdk finding 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 fb8d5d3903 Putting kotlin-jdk-annotations.jar into lib directory instead of lib/alt. 2012-07-23 17:24:05 +04:00
Evgeny Gerashchenko 1d2e80b157 Introduced PathUtil.JDK_ANNOTATIONS_JAR constant 2012-07-22 20:11:03 +04:00
Evgeny Gerashchenko c833ca251f Moved CompilerDependencies.findRtJar() method to PathUtil. 2012-07-07 20:33:23 +04:00
Evgeny Gerashchenko 77df57c150 Replaced jdk-headers with jdk-annotations everywhere. 2012-07-03 13:36:58 +04:00
Evgeny Gerashchenko cfc1d6d271 Added clarifying comment for ExceptionUtils.rethrow() 2012-07-03 13:35:53 +04:00
Evgeny Gerashchenko e26d7fb75e Added method converting int to BitSet to BitSetUtils. 2012-06-16 14:36:06 +04:00
Evgeny Gerashchenko 5541488ca0 Added BitSetUtils and method converting BitSet to int. 2012-06-16 14:36:06 +04:00
Stepan Koltsov b279ce7f9e Revert "poor man Nothing"
This reverts commit e113294185.
2012-06-14 17:27:40 +04:00
Stepan Koltsov e113294185 poor man Nothing 2012-06-14 16:05:16 +04:00
Stepan Koltsov dfd3aac900 ExceptionUtils.closeQuietly 2012-06-13 20:00:54 +04:00
Stepan Koltsov 6f78e9e99b ExceptionUtils.rethrow accepts Throwable 2012-06-08 04:19:24 +04:00
Stepan Koltsov 3408c9833c ExceptionUtils.rethrow 2012-06-06 23:58:19 +04:00
Evgeny Gerashchenko 7b8602469e Removed unused PathUtil.getAltHeadersRoots() 2012-05-23 17:35:24 +04:00
Evgeny Gerashchenko bf62877e2b Replaced Usage of PathUtil.jarFileToVirtualFile() to PathUtil.jarFileOrDirectoryToVirtualFile(), removed the former. 2012-05-23 17:35:24 +04:00
Evgeny Gerashchenko 74a63c9b9d Added PathUtil.jarFileOrDirectoryToVirtualFile() method. 2012-05-23 17:15:43 +04:00
Evgeny Gerashchenko ea36cf9fb0 Reverted all changes related to renaming jdkHeaders to altHeaders. 2012-05-23 17:05:09 +04:00
pTalanov 6a24d0cf6d Package .js library file into plugin 2012-05-22 17:20:50 +04:00
pTalanov 18ce0ac722 Introduce SetUpJsModuleAction
Refactor PathUtil
2012-05-22 13:51:48 +04:00
Evgeny Gerashchenko 4ab2588cbd Made compiler aware of multiple alt-header paths. 2012-05-15 15:19:55 +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
Maxim Shafirov e82dd48662 Progress messages when emitting classfiles 2012-03-14 21:59:51 +04:00
Maxim Shafirov a03922d467 Copyrights set to Apache, reflecting it's now open source 2012-02-14 19:25:06 +04:00
Stepan Koltsov df3abbfbb6 diagnostics in CompileEnvironment 2012-02-09 16:34:26 +04:00
Maxim Shafirov dbbd4c6902 Make sure alt-headers actually work in "core" environment 2012-01-31 13:37:40 +04:00
Maxim Shafirov d14e38c7d6 Detect alt headers in locally built kompiler 2012-01-30 21:07:21 +04:00
Maxim Shafirov 6060f63b76 fix compilation 2012-01-27 19:53:10 +04:00
Maxim Shafirov d3c5b8ec44 Direct call to lib/alt jars 2012-01-27 19:26:25 +04:00