Menu

[7cef54]: / src / staticResources / WebUIResources.java  Maximize  Restore  History

Download this file

50 lines (39 with data), 995 Bytes

 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
package staticResources;
import java.io.File;
import utilities.FileUtility;
public class WebUIResources extends AbstractBootstrapResource {
@Override
protected boolean correctExtension(String name) {
return true;
}
@Override
protected File getExtractingDest() {
return new File(FileUtility.joinPath("resources", "webui"));
}
@Override
protected String getName() {
return "WebUI";
}
@Override
protected String getRelativeSourcePath() {
return "staticResources/webui";
}
/**
* Returns the directory containing all web UI resources.
*/
public File getRoot() {
return getExtractingDest();
}
/**
* Returns the directory containing all static resources.
*/
public File getStaticDir() {
return new File(FileUtility.joinPath(getRoot().getAbsolutePath(), "static"));
}
/**
* Returns the directory containing all HTML templates.
*/
public File getTemplateDir() {
return new File(FileUtility.joinPath(getRoot().getAbsolutePath(), "templates"));
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.