ExportRoot.java
1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* Decompiled with CFR 0_118.
*
* Could not load the following classes:
* org.apache.jackrabbit.vault.fs.config.ExportRoot
* org.apache.jackrabbit.vault.fs.config.MetaInf
*/
package com.day.jcr.vault.fs.config;
import com.day.jcr.vault.fs.config.MetaInf;
import com.day.jcr.vault.fs.impl.JrVltMetaInfAdapter;
import java.io.File;
import java.io.IOException;
public class ExportRoot {
private final org.apache.jackrabbit.vault.fs.config.ExportRoot root;
public ExportRoot(File rootDir) {
this.root = new org.apache.jackrabbit.vault.fs.config.ExportRoot(rootDir);
}
private ExportRoot(org.apache.jackrabbit.vault.fs.config.ExportRoot root) {
this.root = root;
}
public boolean isValid() {
return this.root.isValid();
}
public void assertValid() throws IOException {
this.root.assertValid();
}
public void create() throws IOException {
this.root.create();
}
public MetaInf getMetaInf() {
return JrVltMetaInfAdapter.create(this.root.getMetaInf());
}
public File getRoot() {
return this.root.getRoot();
}
public File getJcrRoot() {
return this.root.getJcrRoot();
}
public File getMetaDir() {
return this.root.getMetaDir();
}
public static ExportRoot findRoot(File cwd) {
org.apache.jackrabbit.vault.fs.config.ExportRoot root = org.apache.jackrabbit.vault.fs.config.ExportRoot.findRoot((File)cwd);
return root == null ? null : new ExportRoot(root);
}
}