Search in sources :

Example 21 with FileAttribute

use of java.nio.file.attribute.FileAttribute in project tomcat by apache.

the class TestFileResourceSetVirtual method before.

@BeforeClass
public static void before() throws IOException {
    tempDir = Files.createTempDirectory("test", new FileAttribute[0]);
    dir2 = new File(tempDir.toFile(), "dir2");
    TomcatBaseTest.recursiveCopy(new File("test/webresources/dir2").toPath(), dir2.toPath());
}
Also used : File(java.io.File) FileAttribute(java.nio.file.attribute.FileAttribute) BeforeClass(org.junit.BeforeClass)

Aggregations

FileAttribute (java.nio.file.attribute.FileAttribute)21 File (java.io.File)15 Path (java.nio.file.Path)8 ArrayList (java.util.ArrayList)7 HashSet (java.util.HashSet)7 BeforeClass (org.junit.BeforeClass)7 Test (org.junit.Test)5 IOException (java.io.IOException)4 PosixFilePermission (java.nio.file.attribute.PosixFilePermission)4 UserPrincipal (java.nio.file.attribute.UserPrincipal)4 Set (java.util.Set)4 Configuration (org.apache.hadoop.conf.Configuration)4 Path (org.apache.hadoop.fs.Path)4 LongWritable (org.apache.hadoop.io.LongWritable)4 InputSplit (org.apache.hadoop.mapreduce.InputSplit)4 Job (org.apache.hadoop.mapreduce.Job)4 JobContext (org.apache.hadoop.mapreduce.JobContext)4 TaskAttemptContext (org.apache.hadoop.mapreduce.TaskAttemptContext)4 TaskAttemptID (org.apache.hadoop.mapreduce.TaskAttemptID)4 JobContextImpl (org.apache.hadoop.mapreduce.task.JobContextImpl)4