INNER CODE UNIT · Kotlin

processDirectives

islandoftex/arara · cli/src/jvmMain/kotlin/org/islandoftex/arara/cli/CLI.kt:344

                processDirectives = { file, list ->
                    DirectiveUtils.process(
                        file,
                        list
                            .takeIf { list.isNotEmpty() && !MvelState.prependPreambleIfDirectivesGiven }
                            ?: prependPreambleDirectives(file.fileType, list)
                    )
                }
            )

            val projects = resolveProjects()
            if (LinearExecutor.execute(projects).exitCode != 0)
                ExecutionStatus.ExternalCallFailed()
            else
                ExecutionStatus.Processing()
        } catch (ex: AraraException) {
            // catch a propagated exception to replace intentionally left
            // out local treatment

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…