1 package org.codehaus.plexus.archiver.util;
2
3 import javax.annotation.Nonnull;
4
5 import java.io.File;
6
7 import org.codehaus.plexus.archiver.FileSet;
8
9
10
11
12
13
14 public class DefaultFileSet extends AbstractFileSet<DefaultFileSet> implements FileSet {
15
16 private File directory;
17
18 public DefaultFileSet(File directory) {
19 this.directory = directory;
20 }
21
22 public DefaultFileSet() {}
23
24
25
26
27 public void setDirectory(@Nonnull File directory) {
28 this.directory = directory;
29 }
30
31 @Nonnull
32 public File getDirectory() {
33 return directory;
34 }
35
36 public static DefaultFileSet fileSet(File directory) {
37 final DefaultFileSet defaultFileSet = new DefaultFileSet(directory);
38 return defaultFileSet;
39 }
40 }