Skip to content
Snippets Groups Projects
Commit 8995ae75 authored by felmer's avatar felmer
Browse files

SP-239, SWE-6: create webapps folder if it doesn't exist.

SVN: 26475
parent cf23e0f2
No related branches found
No related tags found
No related merge requests found
......@@ -148,15 +148,18 @@ public class JettyWebAppPluginInjector
String jettyHome = System.getProperty("jetty.home");
if (jettyHome != null)
{
list.add(new File(jettyHome + "/webapps/openbis/" + WEBAPP_FOLDER));
File webappFolder = new File(jettyHome + "/webapps/openbis/" + WEBAPP_FOLDER);
webappFolder.mkdirs();
list.add(webappFolder);
} else
{
File[] files = new File("targets/www").listFiles();
for (File file : files)
{
File webappFolder = new File(file, WEBAPP_FOLDER);
if (webappFolder.isDirectory())
if (file.getName().equals("WEB-INF") == false)
{
File webappFolder = new File(file, WEBAPP_FOLDER);
webappFolder.mkdirs();
list.add(webappFolder);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment