All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.minecraftforge.gradle.delayed.DelayedFile Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy