Stefan Oltmann
07/06/2023, 4:23 AMephemient
07/06/2023, 4:27 AMephemient
07/06/2023, 4:28 AMephemient
07/06/2023, 4:29 AMephemient
07/06/2023, 4:35 AMephemient
07/06/2023, 4:38 AMStefan Oltmann
07/06/2023, 4:40 AMJeff Lockhart
07/06/2023, 4:40 AMFileSystem.SYSTEM
for native Linux and Windows targets. The base path is relative to the project directory. So you could reference the resources from the source set resources directly, e.g.:
FileSystem.SYSTEM.source("src/commonTest/resources/$asset".toPath())
Stefan Oltmann
07/06/2023, 4:42 AMJeff Lockhart
07/06/2023, 4:43 AMgetAsset(asset: String): Source
for each platform target. JVM I've implemented similar to how you're currently accessing resources from the .jar.ephemient
07/06/2023, 4:44 AMJeff Lockhart
07/06/2023, 4:44 AMjavaClass.getResource("/$asset")?.openStream()?.source()
Stefan Oltmann
07/06/2023, 4:48 AMJeff Lockhart
07/06/2023, 4:52 AMStefan Oltmann
07/06/2023, 5:58 PM