Rename package jet -> kotlin in ide-compiler-runner
org.jetbrains.jet.compiler.runner -> org.jetbrains.kotlin.compilerRunner org.jetbrains.jet.compiler -> org.jetbrains.kotlin.config
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2010-2013 JetBrains s.r.o.
|
* Copyright 2010-2015 JetBrains s.r.o.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jetbrains.jet.compiler.runner;
|
package org.jetbrains.kotlin.compilerRunner;
|
||||||
|
|
||||||
import com.intellij.openapi.util.text.StringUtil;
|
import com.intellij.openapi.util.text.StringUtil;
|
||||||
import com.intellij.util.Function;
|
import com.intellij.util.Function;
|
||||||
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2010-2013 JetBrains s.r.o.
|
* Copyright 2010-2015 JetBrains s.r.o.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jetbrains.jet.compiler.runner;
|
package org.jetbrains.kotlin.compilerRunner;
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.jet.cli.common.messages.MessageCollector;
|
import org.jetbrains.jet.cli.common.messages.MessageCollector;
|
||||||
@@ -26,7 +26,7 @@ import org.jetbrains.kotlin.preloading.ClassCondition;
|
|||||||
import static org.jetbrains.jet.cli.common.messages.CompilerMessageLocation.NO_LOCATION;
|
import static org.jetbrains.jet.cli.common.messages.CompilerMessageLocation.NO_LOCATION;
|
||||||
import static org.jetbrains.jet.cli.common.messages.CompilerMessageSeverity.ERROR;
|
import static org.jetbrains.jet.cli.common.messages.CompilerMessageSeverity.ERROR;
|
||||||
|
|
||||||
public final class CompilerEnvironment {
|
public class CompilerEnvironment {
|
||||||
@NotNull
|
@NotNull
|
||||||
public static CompilerEnvironment getEnvironmentFor(
|
public static CompilerEnvironment getEnvironmentFor(
|
||||||
@NotNull KotlinPaths kotlinPaths,
|
@NotNull KotlinPaths kotlinPaths,
|
||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2010-2013 JetBrains s.r.o.
|
* Copyright 2010-2015 JetBrains s.r.o.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jetbrains.jet.compiler.runner;
|
package org.jetbrains.kotlin.compilerRunner;
|
||||||
|
|
||||||
import com.intellij.openapi.util.io.FileUtil;
|
import com.intellij.openapi.util.io.FileUtil;
|
||||||
import com.intellij.util.containers.ContainerUtil;
|
import com.intellij.util.containers.ContainerUtil;
|
||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2010-2013 JetBrains s.r.o.
|
* Copyright 2010-2015 JetBrains s.r.o.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jetbrains.jet.compiler.runner;
|
package org.jetbrains.kotlin.compilerRunner;
|
||||||
|
|
||||||
public class CompilerRunnerConstants {
|
public class CompilerRunnerConstants {
|
||||||
public static final String KOTLIN_COMPILER_NAME = "Kotlin";
|
public static final String KOTLIN_COMPILER_NAME = "Kotlin";
|
||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2010-2014 JetBrains s.r.o.
|
* Copyright 2010-2015 JetBrains s.r.o.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jetbrains.jet.compiler.runner;
|
package org.jetbrains.kotlin.compilerRunner;
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2010-2013 JetBrains s.r.o.
|
* Copyright 2010-2015 JetBrains s.r.o.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jetbrains.jet.compiler.runner;
|
package org.jetbrains.kotlin.compilerRunner;
|
||||||
|
|
||||||
import com.intellij.openapi.util.text.StringUtil;
|
import com.intellij.openapi.util.text.StringUtil;
|
||||||
import com.intellij.util.ArrayUtil;
|
import com.intellij.util.ArrayUtil;
|
||||||
@@ -30,7 +30,7 @@ import org.jetbrains.jet.cli.common.arguments.K2JSCompilerArguments;
|
|||||||
import org.jetbrains.jet.cli.common.arguments.K2JVMCompilerArguments;
|
import org.jetbrains.jet.cli.common.arguments.K2JVMCompilerArguments;
|
||||||
import org.jetbrains.jet.cli.common.messages.MessageCollector;
|
import org.jetbrains.jet.cli.common.messages.MessageCollector;
|
||||||
import org.jetbrains.jet.cli.common.messages.MessageCollectorUtil;
|
import org.jetbrains.jet.cli.common.messages.MessageCollectorUtil;
|
||||||
import org.jetbrains.jet.compiler.CompilerSettings;
|
import org.jetbrains.kotlin.config.CompilerSettings;
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2010-2013 JetBrains s.r.o.
|
* Copyright 2010-2015 JetBrains s.r.o.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jetbrains.jet.compiler.runner;
|
package org.jetbrains.kotlin.compilerRunner;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2010-2013 JetBrains s.r.o.
|
* Copyright 2010-2015 JetBrains s.r.o.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jetbrains.jet.compiler.runner;
|
package org.jetbrains.kotlin.compilerRunner;
|
||||||
|
|
||||||
import com.intellij.util.containers.ContainerUtil;
|
import com.intellij.util.containers.ContainerUtil;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2010-2013 JetBrains s.r.o.
|
* Copyright 2010-2015 JetBrains s.r.o.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jetbrains.jet.compiler.runner;
|
package org.jetbrains.kotlin.compilerRunner;
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2010-2014 JetBrains s.r.o.
|
* Copyright 2010-2015 JetBrains s.r.o.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jetbrains.jet.compiler
|
package org.jetbrains.kotlin.config
|
||||||
|
|
||||||
public class CompilerSettings {
|
public class CompilerSettings {
|
||||||
public var additionalArguments: String = DEFAULT_ADDITIONAL_ARGUMENTS
|
public var additionalArguments: String = DEFAULT_ADDITIONAL_ARGUMENTS
|
||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2010-2013 JetBrains s.r.o.
|
* Copyright 2010-2015 JetBrains s.r.o.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package org.jetbrains.jet.compiler;
|
package org.jetbrains.kotlin.config;
|
||||||
|
|
||||||
import static com.intellij.openapi.components.StoragePathMacros.PROJECT_CONFIG_DIR;
|
import static com.intellij.openapi.components.StoragePathMacros.PROJECT_CONFIG_DIR;
|
||||||
|
|
||||||
@@ -38,8 +38,8 @@ import java.io.PrintStream;
|
|||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import static org.jetbrains.jet.compiler.runner.CompilerRunnerConstants.INTERNAL_ERROR_PREFIX;
|
import static org.jetbrains.kotlin.compilerRunner.CompilerRunnerConstants.INTERNAL_ERROR_PREFIX;
|
||||||
import static org.jetbrains.jet.compiler.runner.CompilerRunnerConstants.KOTLIN_COMPILER_NAME;
|
import static org.jetbrains.kotlin.compilerRunner.CompilerRunnerConstants.KOTLIN_COMPILER_NAME;
|
||||||
|
|
||||||
public class JetCompilerManager implements ProjectComponent {
|
public class JetCompilerManager implements ProjectComponent {
|
||||||
private static final Logger LOG = Logger.getInstance(JetCompilerManager.class);
|
private static final Logger LOG = Logger.getInstance(JetCompilerManager.class);
|
||||||
|
|||||||
+2
-2
@@ -21,8 +21,8 @@ import com.intellij.openapi.project.Project;
|
|||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.jet.cli.common.arguments.K2JSCompilerArguments;
|
import org.jetbrains.jet.cli.common.arguments.K2JSCompilerArguments;
|
||||||
|
|
||||||
import static org.jetbrains.jet.compiler.SettingConstants.KOTLIN_COMPILER_SETTINGS_PATH;
|
import static org.jetbrains.kotlin.config.SettingConstants.KOTLIN_COMPILER_SETTINGS_PATH;
|
||||||
import static org.jetbrains.jet.compiler.SettingConstants.KOTLIN_TO_JS_COMPILER_ARGUMENTS_SECTION;
|
import static org.jetbrains.kotlin.config.SettingConstants.KOTLIN_TO_JS_COMPILER_ARGUMENTS_SECTION;
|
||||||
|
|
||||||
@State(
|
@State(
|
||||||
name = KOTLIN_TO_JS_COMPILER_ARGUMENTS_SECTION,
|
name = KOTLIN_TO_JS_COMPILER_ARGUMENTS_SECTION,
|
||||||
|
|||||||
+2
-2
@@ -21,8 +21,8 @@ import com.intellij.openapi.project.Project;
|
|||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.jet.cli.common.arguments.K2JVMCompilerArguments;
|
import org.jetbrains.jet.cli.common.arguments.K2JVMCompilerArguments;
|
||||||
|
|
||||||
import static org.jetbrains.jet.compiler.SettingConstants.KOTLIN_COMPILER_SETTINGS_PATH;
|
import static org.jetbrains.kotlin.config.SettingConstants.KOTLIN_COMPILER_SETTINGS_PATH;
|
||||||
import static org.jetbrains.jet.compiler.SettingConstants.KOTLIN_TO_JVM_COMPILER_ARGUMENTS_SECTION;
|
import static org.jetbrains.kotlin.config.SettingConstants.KOTLIN_TO_JVM_COMPILER_ARGUMENTS_SECTION;
|
||||||
|
|
||||||
@State(
|
@State(
|
||||||
name = KOTLIN_TO_JVM_COMPILER_ARGUMENTS_SECTION,
|
name = KOTLIN_TO_JVM_COMPILER_ARGUMENTS_SECTION,
|
||||||
|
|||||||
+2
-2
@@ -21,8 +21,8 @@ import com.intellij.openapi.project.Project;
|
|||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.jet.cli.common.arguments.CommonCompilerArguments;
|
import org.jetbrains.jet.cli.common.arguments.CommonCompilerArguments;
|
||||||
|
|
||||||
import static org.jetbrains.jet.compiler.SettingConstants.KOTLIN_COMMON_COMPILER_ARGUMENTS_SECTION;
|
import static org.jetbrains.kotlin.config.SettingConstants.KOTLIN_COMMON_COMPILER_ARGUMENTS_SECTION;
|
||||||
import static org.jetbrains.jet.compiler.SettingConstants.KOTLIN_COMPILER_SETTINGS_PATH;
|
import static org.jetbrains.kotlin.config.SettingConstants.KOTLIN_COMPILER_SETTINGS_PATH;
|
||||||
|
|
||||||
@State(
|
@State(
|
||||||
name = KOTLIN_COMMON_COMPILER_ARGUMENTS_SECTION,
|
name = KOTLIN_COMMON_COMPILER_ARGUMENTS_SECTION,
|
||||||
|
|||||||
+1
-1
@@ -32,8 +32,8 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
import org.jetbrains.jet.cli.common.arguments.CommonCompilerArguments;
|
import org.jetbrains.jet.cli.common.arguments.CommonCompilerArguments;
|
||||||
import org.jetbrains.jet.cli.common.arguments.K2JSCompilerArguments;
|
import org.jetbrains.jet.cli.common.arguments.K2JSCompilerArguments;
|
||||||
import org.jetbrains.jet.compiler.CompilerSettings;
|
|
||||||
import org.jetbrains.jet.plugin.JetBundle;
|
import org.jetbrains.jet.plugin.JetBundle;
|
||||||
|
import org.jetbrains.kotlin.config.CompilerSettings;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import javax.swing.event.ChangeEvent;
|
import javax.swing.event.ChangeEvent;
|
||||||
|
|||||||
+3
-3
@@ -19,10 +19,10 @@ package org.jetbrains.jet.plugin.compiler.configuration;
|
|||||||
import com.intellij.openapi.components.*;
|
import com.intellij.openapi.components.*;
|
||||||
import com.intellij.openapi.project.Project;
|
import com.intellij.openapi.project.Project;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.jet.compiler.CompilerSettings;
|
import org.jetbrains.kotlin.config.CompilerSettings;
|
||||||
|
|
||||||
import static org.jetbrains.jet.compiler.SettingConstants.KOTLIN_COMPILER_SETTINGS_SECTION;
|
import static org.jetbrains.kotlin.config.SettingConstants.KOTLIN_COMPILER_SETTINGS_PATH;
|
||||||
import static org.jetbrains.jet.compiler.SettingConstants.KOTLIN_COMPILER_SETTINGS_PATH;
|
import static org.jetbrains.kotlin.config.SettingConstants.KOTLIN_COMPILER_SETTINGS_SECTION;
|
||||||
|
|
||||||
@State(
|
@State(
|
||||||
name = KOTLIN_COMPILER_SETTINGS_SECTION,
|
name = KOTLIN_COMPILER_SETTINGS_SECTION,
|
||||||
|
|||||||
@@ -20,11 +20,11 @@ import org.jetbrains.annotations.NotNull;
|
|||||||
import org.jetbrains.jet.cli.common.arguments.CommonCompilerArguments;
|
import org.jetbrains.jet.cli.common.arguments.CommonCompilerArguments;
|
||||||
import org.jetbrains.jet.cli.common.arguments.K2JSCompilerArguments;
|
import org.jetbrains.jet.cli.common.arguments.K2JSCompilerArguments;
|
||||||
import org.jetbrains.jet.cli.common.arguments.K2JVMCompilerArguments;
|
import org.jetbrains.jet.cli.common.arguments.K2JVMCompilerArguments;
|
||||||
import org.jetbrains.jet.compiler.CompilerSettings;
|
|
||||||
import org.jetbrains.jps.model.JpsElementChildRole;
|
import org.jetbrains.jps.model.JpsElementChildRole;
|
||||||
import org.jetbrains.jps.model.JpsProject;
|
import org.jetbrains.jps.model.JpsProject;
|
||||||
import org.jetbrains.jps.model.ex.JpsElementBase;
|
import org.jetbrains.jps.model.ex.JpsElementBase;
|
||||||
import org.jetbrains.jps.model.ex.JpsElementChildRoleBase;
|
import org.jetbrains.jps.model.ex.JpsElementChildRoleBase;
|
||||||
|
import org.jetbrains.kotlin.config.CompilerSettings;
|
||||||
|
|
||||||
public class JpsKotlinCompilerSettings extends JpsElementBase<JpsKotlinCompilerSettings> {
|
public class JpsKotlinCompilerSettings extends JpsElementBase<JpsKotlinCompilerSettings> {
|
||||||
static final JpsElementChildRole<JpsKotlinCompilerSettings> ROLE = JpsElementChildRoleBase.create("Kotlin Compiler Settings");
|
static final JpsElementChildRole<JpsKotlinCompilerSettings> ROLE = JpsElementChildRoleBase.create("Kotlin Compiler Settings");
|
||||||
|
|||||||
@@ -23,9 +23,9 @@ import org.jetbrains.jet.cli.common.KotlinVersion
|
|||||||
import org.jetbrains.jet.cli.common.messages.CompilerMessageLocation
|
import org.jetbrains.jet.cli.common.messages.CompilerMessageLocation
|
||||||
import org.jetbrains.jet.cli.common.messages.CompilerMessageSeverity
|
import org.jetbrains.jet.cli.common.messages.CompilerMessageSeverity
|
||||||
import org.jetbrains.jet.cli.common.messages.MessageCollector
|
import org.jetbrains.jet.cli.common.messages.MessageCollector
|
||||||
import org.jetbrains.jet.compiler.runner.CompilerEnvironment
|
import org.jetbrains.kotlin.compilerRunner.CompilerEnvironment
|
||||||
import org.jetbrains.jet.compiler.runner.CompilerRunnerConstants
|
import org.jetbrains.kotlin.compilerRunner.CompilerRunnerConstants
|
||||||
import org.jetbrains.jet.compiler.runner.OutputItemsCollectorImpl
|
import org.jetbrains.kotlin.compilerRunner.OutputItemsCollectorImpl
|
||||||
import org.jetbrains.jet.config.Services
|
import org.jetbrains.jet.config.Services
|
||||||
import org.jetbrains.jet.config.IncrementalCompilation
|
import org.jetbrains.jet.config.IncrementalCompilation
|
||||||
import org.jetbrains.kotlin.jps.JpsKotlinCompilerSettings
|
import org.jetbrains.kotlin.jps.JpsKotlinCompilerSettings
|
||||||
@@ -43,9 +43,9 @@ import java.io.File
|
|||||||
import java.util.*
|
import java.util.*
|
||||||
import org.jetbrains.jet.cli.common.messages.CompilerMessageLocation.NO_LOCATION
|
import org.jetbrains.jet.cli.common.messages.CompilerMessageLocation.NO_LOCATION
|
||||||
import org.jetbrains.jet.cli.common.messages.CompilerMessageSeverity.*
|
import org.jetbrains.jet.cli.common.messages.CompilerMessageSeverity.*
|
||||||
import org.jetbrains.jet.compiler.runner.CompilerRunnerConstants.INTERNAL_ERROR_PREFIX
|
import org.jetbrains.kotlin.compilerRunner.CompilerRunnerConstants.INTERNAL_ERROR_PREFIX
|
||||||
import org.jetbrains.jet.compiler.runner.KotlinCompilerRunner.runK2JsCompiler
|
import org.jetbrains.kotlin.compilerRunner.KotlinCompilerRunner.runK2JsCompiler
|
||||||
import org.jetbrains.jet.compiler.runner.KotlinCompilerRunner.runK2JvmCompiler
|
import org.jetbrains.kotlin.compilerRunner.KotlinCompilerRunner.runK2JvmCompiler
|
||||||
import org.jetbrains.jet.utils.keysToMap
|
import org.jetbrains.jet.utils.keysToMap
|
||||||
import org.jetbrains.jps.incremental.ModuleLevelBuilder.ExitCode.*
|
import org.jetbrains.jps.incremental.ModuleLevelBuilder.ExitCode.*
|
||||||
import com.intellij.openapi.diagnostic.Logger
|
import com.intellij.openapi.diagnostic.Logger
|
||||||
@@ -54,7 +54,7 @@ import org.jetbrains.jps.builders.java.JavaBuilderUtil
|
|||||||
import com.intellij.util.containers.MultiMap
|
import com.intellij.util.containers.MultiMap
|
||||||
import org.jetbrains.jet.cli.common.arguments.CommonCompilerArguments
|
import org.jetbrains.jet.cli.common.arguments.CommonCompilerArguments
|
||||||
import org.jetbrains.jps.model.JpsProject
|
import org.jetbrains.jps.model.JpsProject
|
||||||
import org.jetbrains.jet.compiler.runner.SimpleOutputItem
|
import org.jetbrains.kotlin.compilerRunner.SimpleOutputItem
|
||||||
import org.jetbrains.jet.utils.LibraryUtils
|
import org.jetbrains.jet.utils.LibraryUtils
|
||||||
|
|
||||||
public class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR) {
|
public class KotlinBuilder : ModuleLevelBuilder(BuilderCategory.SOURCE_PROCESSOR) {
|
||||||
|
|||||||
+2
-2
@@ -24,8 +24,8 @@ import org.jetbrains.jps.model.JpsProject;
|
|||||||
import org.jetbrains.jps.model.serialization.JpsProjectExtensionSerializer;
|
import org.jetbrains.jps.model.serialization.JpsProjectExtensionSerializer;
|
||||||
import org.jetbrains.kotlin.jps.JpsKotlinCompilerSettings;
|
import org.jetbrains.kotlin.jps.JpsKotlinCompilerSettings;
|
||||||
|
|
||||||
import static org.jetbrains.jet.compiler.SettingConstants.KOTLIN_COMPILER_SETTINGS_FILE;
|
import static org.jetbrains.kotlin.config.SettingConstants.KOTLIN_COMPILER_SETTINGS_FILE;
|
||||||
import static org.jetbrains.jet.compiler.SettingConstants.KOTLIN_TO_JS_COMPILER_ARGUMENTS_SECTION;
|
import static org.jetbrains.kotlin.config.SettingConstants.KOTLIN_TO_JS_COMPILER_ARGUMENTS_SECTION;
|
||||||
|
|
||||||
class Kotlin2JsCompilerArgumentsSerializer extends JpsProjectExtensionSerializer {
|
class Kotlin2JsCompilerArgumentsSerializer extends JpsProjectExtensionSerializer {
|
||||||
Kotlin2JsCompilerArgumentsSerializer() {
|
Kotlin2JsCompilerArgumentsSerializer() {
|
||||||
|
|||||||
+2
-2
@@ -24,8 +24,8 @@ import org.jetbrains.jps.model.JpsProject;
|
|||||||
import org.jetbrains.jps.model.serialization.JpsProjectExtensionSerializer;
|
import org.jetbrains.jps.model.serialization.JpsProjectExtensionSerializer;
|
||||||
import org.jetbrains.kotlin.jps.JpsKotlinCompilerSettings;
|
import org.jetbrains.kotlin.jps.JpsKotlinCompilerSettings;
|
||||||
|
|
||||||
import static org.jetbrains.jet.compiler.SettingConstants.KOTLIN_COMPILER_SETTINGS_FILE;
|
import static org.jetbrains.kotlin.config.SettingConstants.KOTLIN_COMPILER_SETTINGS_FILE;
|
||||||
import static org.jetbrains.jet.compiler.SettingConstants.KOTLIN_TO_JVM_COMPILER_ARGUMENTS_SECTION;
|
import static org.jetbrains.kotlin.config.SettingConstants.KOTLIN_TO_JVM_COMPILER_ARGUMENTS_SECTION;
|
||||||
|
|
||||||
class Kotlin2JvmCompilerArgumentsSerializer extends JpsProjectExtensionSerializer {
|
class Kotlin2JvmCompilerArgumentsSerializer extends JpsProjectExtensionSerializer {
|
||||||
Kotlin2JvmCompilerArgumentsSerializer() {
|
Kotlin2JvmCompilerArgumentsSerializer() {
|
||||||
|
|||||||
+2
-2
@@ -24,8 +24,8 @@ import org.jetbrains.jps.model.JpsProject;
|
|||||||
import org.jetbrains.jps.model.serialization.JpsProjectExtensionSerializer;
|
import org.jetbrains.jps.model.serialization.JpsProjectExtensionSerializer;
|
||||||
import org.jetbrains.kotlin.jps.JpsKotlinCompilerSettings;
|
import org.jetbrains.kotlin.jps.JpsKotlinCompilerSettings;
|
||||||
|
|
||||||
import static org.jetbrains.jet.compiler.SettingConstants.KOTLIN_COMMON_COMPILER_ARGUMENTS_SECTION;
|
import static org.jetbrains.kotlin.config.SettingConstants.KOTLIN_COMMON_COMPILER_ARGUMENTS_SECTION;
|
||||||
import static org.jetbrains.jet.compiler.SettingConstants.KOTLIN_COMPILER_SETTINGS_FILE;
|
import static org.jetbrains.kotlin.config.SettingConstants.KOTLIN_COMPILER_SETTINGS_FILE;
|
||||||
|
|
||||||
class KotlinCommonCompilerArgumentsSerializer extends JpsProjectExtensionSerializer {
|
class KotlinCommonCompilerArgumentsSerializer extends JpsProjectExtensionSerializer {
|
||||||
KotlinCommonCompilerArgumentsSerializer() {
|
KotlinCommonCompilerArgumentsSerializer() {
|
||||||
|
|||||||
@@ -19,13 +19,13 @@ package org.jetbrains.kotlin.jps.model;
|
|||||||
import com.intellij.util.xmlb.XmlSerializer;
|
import com.intellij.util.xmlb.XmlSerializer;
|
||||||
import org.jdom.Element;
|
import org.jdom.Element;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.jet.compiler.CompilerSettings;
|
|
||||||
import org.jetbrains.jps.model.JpsProject;
|
import org.jetbrains.jps.model.JpsProject;
|
||||||
import org.jetbrains.jps.model.serialization.JpsProjectExtensionSerializer;
|
import org.jetbrains.jps.model.serialization.JpsProjectExtensionSerializer;
|
||||||
|
import org.jetbrains.kotlin.config.CompilerSettings;
|
||||||
import org.jetbrains.kotlin.jps.JpsKotlinCompilerSettings;
|
import org.jetbrains.kotlin.jps.JpsKotlinCompilerSettings;
|
||||||
|
|
||||||
import static org.jetbrains.jet.compiler.SettingConstants.KOTLIN_COMPILER_SETTINGS_FILE;
|
import static org.jetbrains.kotlin.config.SettingConstants.KOTLIN_COMPILER_SETTINGS_FILE;
|
||||||
import static org.jetbrains.jet.compiler.SettingConstants.KOTLIN_COMPILER_SETTINGS_SECTION;
|
import static org.jetbrains.kotlin.config.SettingConstants.KOTLIN_COMPILER_SETTINGS_SECTION;
|
||||||
|
|
||||||
class KotlinCompilerSettingsSerializer extends JpsProjectExtensionSerializer {
|
class KotlinCompilerSettingsSerializer extends JpsProjectExtensionSerializer {
|
||||||
KotlinCompilerSettingsSerializer() {
|
KotlinCompilerSettingsSerializer() {
|
||||||
|
|||||||
Reference in New Issue
Block a user