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 "staticContent/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"));
	}
}

@@ -326,20 +326,33 @@
  %22webui%22
+, %22templates%22
 ));%0A
-
 %09%7D%0A%0A%09@Ov
@@ -494,16 +494,26 @@
 nt/webui
+/templates
 %22;%0A%09%7D%0A%0A%09
@@ -643,191 +643,8 @@
 %09%7D%0A%0A
-%09/**%0A%09 * Returns the directory containing all static resources.%0A%09 */%0A%09public File getStaticDir() %7B%0A%09%09return new File(FileUtility.joinPath(getRoot().getAbsolutePath(), %22static%22));%0A%09%7D%0A%0A
 %09/**
@@ -734,24 +734,24 @@
 lateDir() %7B%0A
+
 %09%09return new
@@ -804,29 +804,16 @@
 tePath()
-, %22templates%22
 ));%0A%09%7D%0A%7D

Remove extraction of static resources from bootstrap resource.