62 Treechildren children =
new Treechildren();
63 appendChild(children);
64 FilesItem configuration =
new FilesItem(
null, I_.get(
"Configuration"),
null);
65 configuration.addFile(
new FilesItem(
new File(
66 ElephantContext.getRealPath(
"/WEB-INF/elephant/conf/site.xml")),
68 configuration.addFile(
new FilesItem(
new File(
69 ElephantContext.getRealPath(
"/WEB-INF/elephant/conf/shop.xml")),
71 configuration.addFile(
new FilesItem(
new File(
72 ElephantContext.getRealPath(
"/WEB-INF/elephant/conf")),
73 I_.get(
"Properties"),
".*\\.properties"));
74 configuration.addFile(
new FilesItem(
new File(
75 ElephantContext.getRealPath(
"/WEB-INF/classes")),
76 I_.get(
"Resources"),
"by-key-site_en\\.properties"));
77 configuration.addFile(
new FilesItem(
new File(
78 ElephantContext.getRealPath(
"/WEB-INF/elephant/conf")),
79 I_.get(
"Search"),
"dao-search.*\\.xml"));
80 configuration.addFile(
new FilesItem(
new File(
81 ElephantContext.getRealPath(
"/WEB-INF/elephant/conf")),
82 "JSON",
".*\\.json"));
83 configuration.addFile(
new FilesItem(
new File(
84 ElephantContext.getRealPath(
"/WEB-INF/elephant/conf/mail")),
85 "Mail providers",
".*\\.json"));
86 File scripts =
new File(ElephantContext.getRealPath(
"/WEB-INF/elephant/scripts"));
87 if(scripts.exists()) {
88 configuration.addFile(
new FilesItem(scripts,
89 "Scripts",
".*\\.js"));
91 children.appendChild(configuration);
92 File support =
new File(ElephantContext.getRealPath(
"/WEB-INF/elephant/support"));
93 if(support.exists()) {
94 children.appendChild(
new FilesItem(support,
95 I_.get(
"Support"),
null));
97 FilesItem css =
new FilesItem(
null, I_.get(
"Cascading Style Sheets"),
null);
98 FilesItem cssTmpl =
new FilesItem(
null, I_.get(
"Templates"),
null);
99 cssTmpl.addFile(
new FilesItem(
new File(
100 ElephantContext.getRealPath(
"/_internal/css/elephant-branding-semantic.css")),
102 css.addFile(cssTmpl);
103 children.appendChild(css);
104 File tmplMail =
new File(ElephantContext.getRealPath(
"/WEB-INF/elephant/templates-mail"));
105 if(tmplMail.exists()) {
106 children.appendChild(
new FilesItem(tmplMail,
107 I_.get(
"Templates") +
"-mail",
null));
109 File tmplSemantic =
new File(ElephantContext.getRealPath(
"/WEB-INF/elephant/templates-semantic"));
110 if(tmplSemantic.exists()) {
111 children.appendChild(
new FilesItem(tmplSemantic,
112 I_.get(
"Templates") +
"-semantic",
null));
114 File tmplSemanticApp =
new File(ElephantContext.getRealPath(
"/WEB-INF/elephant/templates-semantic-app"));
115 if(tmplSemanticApp.exists()) {
116 children.appendChild(
new FilesItem(tmplSemanticApp,
117 I_.get(
"Templates") +
"-semantic-app",
null));
119 File reports =
new File(ElephantContext.getRealPath(
"/WEB-INF/elephant/reports/financials"));
120 if(reports.exists()) {
121 children.appendChild(
new FilesItem(reports,
122 I_.get(
"Reports"),
null));
124 File tou =
new File(ElephantContext.getRealPath(
"/_internal/terms"));
126 children.appendChild(
new FilesItem(tou,
127 I_.get(
"Terms of Use"),
null));
129 FilesItem wiki =
new FilesItem(
null,
"Wiki",
null);
130 File wtmpl =
new File(ElephantContext.getRealPath(
"/WEB-INF/elephant/wiki/templates"));
132 wiki.addFile(
new FilesItem(wtmpl,
"Templates",
".*\\.wiki"));
134 File wsnip =
new File(ElephantContext.getRealPath(
"/WEB-INF/elephant/wiki/snippets"));
136 wiki.addFile(
new FilesItem(wsnip,
"Snippets",
".*\\.wiki"));
138 children.appendChild(wiki);