-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move more to filament * Fix build * Mabye fix * Update enigma * Fix config caching warning. * Update engima again * Enable configuration cache * Update gradle * Update loom * Fixes and improvements. * Small cleanup * Fix typo
- Loading branch information
Showing
28 changed files
with
651 additions
and
462 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
filament_version=0.4.0 | ||
filament_version=0.5.0 |
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
24 changes: 24 additions & 0 deletions
24
filament/src/main/java/net/fabricmc/filament/task/ExtractZipEntryTask.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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package net.fabricmc.filament.task; | ||
|
||
import java.io.IOException; | ||
import java.nio.file.Files; | ||
|
||
import org.gradle.api.provider.Property; | ||
import org.gradle.api.tasks.Input; | ||
import org.gradle.api.tasks.TaskAction; | ||
|
||
import net.fabricmc.filament.task.base.FilamentTask; | ||
import net.fabricmc.filament.task.base.WithFileInput; | ||
import net.fabricmc.filament.task.base.WithFileOutput; | ||
import net.fabricmc.loom.util.ZipUtils; | ||
|
||
public abstract class ExtractZipEntryTask extends FilamentTask implements WithFileInput, WithFileOutput { | ||
@Input | ||
public abstract Property<String> getEntry(); | ||
|
||
@TaskAction | ||
public void run() throws IOException { | ||
byte[] bytes = ZipUtils.unpack(getInputPath(), getEntry().get()); | ||
Files.write(getOutputPath(), bytes); | ||
} | ||
} |
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
Oops, something went wrong.