-
I'm trying to get this project working with mill (https://mill-build.org/) as a little side project. I know people use gradle and that is what is mostly supported so I understand not engaging with this but if anyone knows about the copying process that would help greatly. I've checked the jar on my machine and it has those files along with others that do get copied over. In the screenshot below id expect gdx.wasm.js and howler.js to be copied to scripts. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey, are you using Windows 10? Someone previously reported an issue where some files weren’t copying correctly, but I couldn’t reproduce it to fix the problem. The asset-copying logic is handled in TeaBuilder#configAssets. It relies on a custom class loader, classpath, and an AssetsCopy class implementation. The approach is designed to scan every classpath in each JAR file to identify assets that need to be copied. Some paths are manually added, like teaBuildConfiguration.assetsPath.add(new AssetFileHandle), while others—such as scripts—are added automatically. Both scripts reside in main/resources. I’ve implemented a custom solution using META-INF/gdx-teavm.properties to automatically copy files from the resources folder whenever this properties file is present, sparing developers from doing it manually. I suspect this process might be failing with Mill. |
Beta Was this translation helpful? Give feedback.
Hey, are you using Windows 10? Someone previously reported an issue where some files weren’t copying correctly, but I couldn’t reproduce it to fix the problem.
The asset-copying logic is handled in TeaBuilder#configAssets. It relies on a custom class loader, classpath, and an AssetsCopy class implementation. The approach is designed to scan every classpath in each JAR file to identify assets that need to be copied. Some paths are manually added, like teaBuildConfiguration.assetsPath.add(new AssetFileHandle), while others—such as scripts—are added automatically.
Both scripts reside in main/resources. I’ve implemented a custom solution using META-INF/gdx-teavm.properties to automatically co…