@@ -22,7 +22,6 @@ import okio.Buffer
2222import org.jetbrains.kotlin.base.kapt3.AptMode
2323import org.jetbrains.kotlin.base.kapt3.KaptFlag
2424import org.jetbrains.kotlin.base.kapt3.KaptOptions
25- import org.jetbrains.kotlin.cli.common.ExitCode
2625import org.jetbrains.kotlin.cli.common.arguments.K2JVMCompilerArguments
2726import org.jetbrains.kotlin.cli.common.arguments.parseCommandLineArguments
2827import org.jetbrains.kotlin.cli.common.arguments.validateArguments
@@ -332,11 +331,6 @@ class KotlinCompilation {
332331 val kaptStubsDir get() = kaptBaseDir.resolve(" stubs" )
333332 val kaptIncrementalDataDir get() = kaptBaseDir.resolve(" incrementalData" )
334333
335- /* * ExitCode of the entire Kotlin compilation process */
336- enum class ExitCode {
337- OK , INTERNAL_ERROR , COMPILATION_ERROR , SCRIPT_EXECUTION_ERROR
338- }
339-
340334 /* * Result of the compilation */
341335 inner class Result (
342336 /* * The exit code of the compilation */
@@ -906,19 +900,12 @@ class KotlinCompilation {
906900 }
907901}
908902
909- private fun kotlinDependencyRegex (prefix : String ): Regex {
903+ internal fun kotlinDependencyRegex (prefix : String ): Regex {
910904 return Regex (" $prefix (-[0-9]+\\ .[0-9]+(\\ .[0-9]+)?)([-0-9a-zA-Z]+)?\\ .jar" )
911905}
912906
913- private fun convertKotlinExitCode (code : ExitCode ) = when (code) {
914- ExitCode .OK -> KotlinCompilation .ExitCode .OK
915- ExitCode .INTERNAL_ERROR -> KotlinCompilation .ExitCode .INTERNAL_ERROR
916- ExitCode .COMPILATION_ERROR -> KotlinCompilation .ExitCode .COMPILATION_ERROR
917- ExitCode .SCRIPT_EXECUTION_ERROR -> KotlinCompilation .ExitCode .SCRIPT_EXECUTION_ERROR
918- }
919-
920907/* * Returns the files on the classloader's classpath and modulepath */
921- private fun getHostClasspaths (): List <File > {
908+ internal fun getHostClasspaths (): List <File > {
922909 val classGraph = ClassGraph ()
923910 .enableSystemJarsAndModules()
924911 .removeTemporaryFilesAfterScan()
0 commit comments