-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move conventions for MergeTinyTask, MergeTinyV2Task, and MergeInterme…
…diaryTask to MappingsPlugin refine their and their superclass' properties
- Loading branch information
1 parent
3d15b0e
commit 6391a20
Showing
8 changed files
with
83 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 8 additions & 9 deletions
17
buildSrc/src/main/java/quilt/internal/tasks/build/AbstractHashedMergeTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
package quilt.internal.tasks.build; | ||
|
||
import org.gradle.api.file.RegularFileProperty; | ||
import org.gradle.api.tasks.InputFile; | ||
import quilt.internal.Constants; | ||
|
||
import java.io.File; | ||
|
||
public abstract class AbstractHashedMergeTask extends AbstractTinyMergeTask { | ||
public AbstractHashedMergeTask(String outputMappings) { | ||
super(outputMappings, Constants.PER_VERSION_MAPPINGS_NAME); | ||
@InputFile | ||
public abstract RegularFileProperty getHashedTinyMappings(); | ||
|
||
public AbstractHashedMergeTask() { | ||
super(Constants.PER_VERSION_MAPPINGS_NAME); | ||
} | ||
|
||
@Override | ||
public void mergeMappings() throws Exception { | ||
final File hashedTinyInput = | ||
this.getTaskNamed(InvertPerVersionMappingsTask.TASK_NAME, InvertPerVersionMappingsTask.class) | ||
.getInvertedTinyFile().get().getAsFile(); | ||
|
||
this.mergeMappings(hashedTinyInput); | ||
this.mergeMappings(this.getHashedTinyMappings().get().getAsFile()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters