Print info about locked files during configuration or genSources (#1066)

* Print info about locked files during configuration or genSources

* Use release version

* Output adjustments

* Fix build

* Add user back
This commit is contained in:
modmuss
2024-03-11 21:16:46 +00:00
committed by GitHub
parent 994a97e3de
commit c60b456f7e
7 changed files with 206 additions and 70 deletions

View File

@@ -198,7 +198,8 @@ public abstract class GenerateSourcesTask extends AbstractLoomTask {
final var provideContext = new AbstractMappedMinecraftProvider.ProvideContext(false, true, configContext);
minecraftJars = getExtension().getNamedMinecraftProvider().provide(provideContext);
} catch (Exception e) {
throw new RuntimeException("Failed to rebuild input jars", e);
ExceptionUtil.printFileLocks(e, getProject());
throw ExceptionUtil.createDescriptiveWrapper(RuntimeException::new, "Failed to rebuild input jars", e);
}
for (MinecraftJar minecraftJar : minecraftJars) {