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

org.codehaus.plexus.archiver.util.DefaultFileSet Maven / Gradle / Ivy

The newest version!
package org.codehaus.plexus.archiver.util;

import javax.annotation.Nonnull;

import java.io.File;

import org.codehaus.plexus.archiver.FileSet;

/**
 * Default implementation of {@link FileSet}.
 *
 * @since 1.0-alpha-9
 */
public class DefaultFileSet extends AbstractFileSet implements FileSet {

    private File directory;

    public DefaultFileSet(File directory) {
        this.directory = directory;
    }

    public DefaultFileSet() {}

    /**
     * Sets the file sets base directory.
     */
    public void setDirectory(@Nonnull File directory) {
        this.directory = directory;
    }

    @Nonnull
    public File getDirectory() {
        return directory;
    }

    public static DefaultFileSet fileSet(File directory) {
        final DefaultFileSet defaultFileSet = new DefaultFileSet(directory);
        return defaultFileSet;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy