Fixed CSS file copying always.

This commit is contained in:
Christian P. MOMON 2020-01-23 16:57:13 +01:00
parent 3f74cab1bb
commit ebc17b6815
1 changed files with 6 additions and 3 deletions

View File

@ -204,9 +204,12 @@ public class AgirStatool
try
{
// Copy CSS file.
if (!new File(this.targetDirectory, "index.html").exists())
{
FileUtils.copyURLToFile(AgirStatool.class.getResource("/org/april/agirstatool/core/pages/index.html"), new File(this.targetDirectory, "index.html"));
FileUtils.copyURLToFile(AgirStatool.class.getResource("/org/april/agirstatool/core/pages/agirstatool.css"), new File(this.targetDirectory, "agirstatool.css"));
FileUtils.copyURLToFile(AgirStatool.class.getResource("/org/april/agirstatool/core/pages/Chart.bundle.min.js"), new File(this.targetDirectory, "Chart.bundle.min.js"));
}
//
Project root = listProjectsAsTree();