net.minecraftforge.gradle.delayed.DelayedFile Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of CelestiGradle Show documentation
Show all versions of CelestiGradle Show documentation
Gradle plugin for building Celestibytes projects. ForgeGradle included.
package net.minecraftforge.gradle.delayed;
import java.io.File;
import org.gradle.api.Project;
@SuppressWarnings("serial")
public class DelayedFile extends DelayedBase
{
public DelayedFile(Project owner, String pattern)
{
super(owner, pattern);
}
@SuppressWarnings({ "rawtypes", "unchecked" })
public DelayedFile(Project owner, String pattern, IDelayedResolver... resolvers)
{
super(owner, pattern, resolvers);
}
@Override
public File resolveDelayed()
{
return project.file(DelayedBase.resolve(pattern, project, resolvers));
}
public DelayedFileTree toZipTree()
{
return new DelayedFileTree(project, pattern, true, resolvers);
}
public DelayedFile forceResolving()
{
resolveOnce = false;
return this;
}
}