File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/common/java/net/minecraftforge/gradle/common/util/runs Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 1414import org .gradle .api .provider .ListProperty ;
1515import org .gradle .api .provider .Property ;
1616import org .gradle .api .tasks .Input ;
17- import org .gradle .api .tasks .InputDirectory ;
1817import org .gradle .api .tasks .InputFiles ;
1918import org .gradle .api .tasks .Internal ;
2019import org .gradle .api .tasks .TaskAction ;
2827abstract class GenIDERunsTask extends DefaultTask {
2928 public GenIDERunsTask () {
3029 this .setGroup (RunConfig .RUNS_GROUP );
30+ this .getRunConfigurationsFolderName ().set (this .getRunConfigurationsFolder ().map (dir -> dir .getAsFile ().getAbsolutePath ()));
3131 }
3232
3333 @ TaskAction
@@ -48,9 +48,14 @@ public void run() {
4848 additionalClientArgs , minecraftArtifacts , runtimeClasspathArtifacts );
4949 }
5050
51- @ InputDirectory
51+ @ Internal
5252 public abstract DirectoryProperty getRunConfigurationsFolder ();
5353
54+ // Gradle doesn't seem to have a good way to declare an input on the location of a path without caring about its contents (or whether it exists).
55+ // This serves as a workaround to still support up-to-date checking (although this task should always re-run anyways!)
56+ @ Input
57+ protected abstract Property <String > getRunConfigurationsFolderName ();
58+
5459 @ Internal
5560 public abstract Property <RunConfigGenerator > getRunConfigGenerator ();
5661
You can’t perform that action at this time.
0 commit comments