openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1841050 - /openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/Meecrowave.java
Date Mon, 17 Sep 2018 07:47:46 GMT
Author: struberg
Date: Mon Sep 17 07:47:46 2018
New Revision: 1841050

URL: http://svn.apache.org/viewvc?rev=1841050&view=rev
Log:
MEECROWAVE-130 no external dependencies

Modified:
    openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/Meecrowave.java

Modified: openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/Meecrowave.java
URL: http://svn.apache.org/viewvc/openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/Meecrowave.java?rev=1841050&r1=1841049&r2=1841050&view=diff
==============================================================================
--- openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/Meecrowave.java
(original)
+++ openwebbeans/meecrowave/trunk/meecrowave-core/src/main/java/org/apache/meecrowave/Meecrowave.java
Mon Sep 17 07:47:46 2018
@@ -55,7 +55,6 @@ import java.util.LinkedList;
 import java.util.List;
 import java.util.Map;
 import java.util.Objects;
-import java.util.Optional;
 import java.util.Properties;
 import java.util.ServiceLoader;
 import java.util.Set;
@@ -99,7 +98,6 @@ import org.apache.catalina.session.Stand
 import org.apache.catalina.startup.Catalina;
 import org.apache.catalina.startup.MeecrowaveContextConfig;
 import org.apache.catalina.startup.Tomcat;
-import org.apache.commons.lang3.StringUtils;
 import org.apache.commons.text.StrLookup;
 import org.apache.commons.text.StrSubstitutor;
 import org.apache.coyote.http2.Http2Protocol;
@@ -471,7 +469,7 @@ public class Meecrowave implements AutoC
             createDirectory(base, "work");
             createDirectory(base, "webapps");
 
-            if (StringUtils.isEmpty(configuration.getTempDir())) {
+            if (configuration.getTempDir() == null || configuration.getTempDir().length()
== 0) {
                 createDirectory(base, "temp");
             } else {
                 File tempDir = new File(configuration.getTempDir());



Mime
View raw message