File tree Expand file tree Collapse file tree
paperweight-core/src/main/kotlin/io/papermc/paperweight/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,7 +101,6 @@ class CoreTasks(
101101 oldPaperCommit.convention(project.coreExt.updatingMinecraft.oldPaperCommit)
102102 inputFile.set(macheDecompileJar.flatMap { it.outputJar })
103103 predicate.set { Files .isRegularFile(it) && it.toString().endsWith(" .java" ) }
104- validateAts.set(project.coreExt.validateAts)
105104 }
106105
107106 val setupMacheSources by tasks.registering(SetupMinecraftSources ::class ) {
@@ -113,6 +112,7 @@ class CoreTasks(
113112 atFile.set(mergePaperATs.flatMap { it.outputFile })
114113 ats.jstClasspath.from(project.configurations.named(MACHE_MINECRAFT_LIBRARIES_CONFIG ))
115114 ats.jst.from(project.configurations.named(JST_CONFIG ))
115+ validateAts.set(project.coreExt.validateAts)
116116 }
117117
118118 val extractMacheSources by tasks.registering(ExtractMinecraftSources ::class ) {
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ abstract class SetupMinecraftSources : JavaLauncherZippedTask() {
8686 override fun init () {
8787 super .init ()
8888 atWorkingDir.set(layout.cache.resolve(paperTaskOutput(name = " ${name} _atWorkingDir" )))
89+ validateAts.convention(false )
8990 }
9091
9192 override fun run (outputPath : Path ) {
Original file line number Diff line number Diff line change @@ -258,7 +258,6 @@ abstract class RebuildFilePatches : JavaLauncherTask() {
258258 at,
259259 temporaryDir.toPath().resolve(" jst_work" ),
260260 singleFile = true ,
261- validate = false ,
262261 )
263262 println (" NEW: " + decomp.readText())
264263 }
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ abstract class ApplySourceATs {
5353 atFile : Path ,
5454 workDir : Path ,
5555 singleFile : Boolean = false,
56- validate : Boolean ,
56+ validate : Boolean = false ,
5757 ) {
5858 workDir.deleteRecursive()
5959 workDir.createDirectories()
@@ -71,7 +71,7 @@ abstract class ApplySourceATs {
7171 outputDir : Path ,
7272 atFile : Path ,
7373 singleFile : Boolean = false,
74- validate : Boolean ,
74+ validate : Boolean = false ,
7575 ): List <String > {
7676 val format = if (singleFile) " FILE" else " FOLDER"
7777 val validation = if (validate) " ERROR" else " LOG"
You can’t perform that action at this time.
0 commit comments