arocnies
09/28/2020, 10:51 PM@Import
annotation that works the same way as simple version of main-kts
. Everything works fine when importing another script's function but I'm unable to import a class defined in the other script. It seems reasonable that classes defined in the script class's scope so I suspect I need my compilation configuration to do something to include them. Anyone know where I should be looking?ilya.chernikov
10/01/2020, 12:45 PM.kts
extension is dropped, and then invalid chars are converted to the underscore.
@file:Import("import-common.main.kts")
import Import_common_main.*
ilya.chernikov
10/01/2020, 12:58 PMilya.chernikov
10/01/2020, 1:00 PMImport
annotation handler - you can add the star import to the configuration's defaultImports
property.arocnies
10/01/2020, 3:18 PMarocnies
10/01/2020, 4:35 PMScriptSource
but I'd prefer to use an existing method instead of duplicating things. I know I could compile the scripts to get their names but I would rather get the name without having to compile (or write my own function to predict the name).ilya.chernikov
10/01/2020, 4:39 PMarocnies
10/01/2020, 4:41 PM