From 2c7241f1959831a8f833448f9d7b2d020603d7ba Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Tue, 28 Mar 2017 19:13:12 -0700 Subject: [PATCH] Instructions for multi build file algorithm. --- src/main/kotlin/com/beust/kobalt/app/BuildFiles.kt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/main/kotlin/com/beust/kobalt/app/BuildFiles.kt diff --git a/src/main/kotlin/com/beust/kobalt/app/BuildFiles.kt b/src/main/kotlin/com/beust/kobalt/app/BuildFiles.kt new file mode 100644 index 00000000..e9f39cae --- /dev/null +++ b/src/main/kotlin/com/beust/kobalt/app/BuildFiles.kt @@ -0,0 +1,14 @@ +package com.beust.kobalt.app + +class BuildFiles { + // Parse all the files found in kobalt/src/*kt, extract their buildScriptInfo blocks, + // save the location where they appear (file, start/end). + + // Compile each of these buildScriptInfo separately, note which new build files they add + // and at which location + + // Go back over all the files from kobalt/src/*kt, insert each new build file in it, + // save it as a modified, concatenated build file + + // Create buildScript.jar out of compiling all these modified build files +}