You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by nm...@apache.org on 2016/08/19 17:37:41 UTC

svn commit: r1756952 - /ofbiz/trunk/framework/webtools/groovyScripts/log/FetchLogs.groovy

Author: nmalin
Date: Fri Aug 19 17:37:40 2016
New Revision: 1756952

URL: http://svn.apache.org/viewvc?rev=1756952&view=rev
Log:
 correct typo error on commit r1755302 to resolve the ofbiz log dir when isn't end by /

Modified:
    ofbiz/trunk/framework/webtools/groovyScripts/log/FetchLogs.groovy

Modified: ofbiz/trunk/framework/webtools/groovyScripts/log/FetchLogs.groovy
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/groovyScripts/log/FetchLogs.groovy?rev=1756952&r1=1756951&r2=1756952&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/groovyScripts/log/FetchLogs.groovy (original)
+++ ofbiz/trunk/framework/webtools/groovyScripts/log/FetchLogs.groovy Fri Aug 19 17:37:40 2016
@@ -25,13 +25,13 @@ if (!ofbizLogDir.startsWith("/")) {
     ofbizLogDir = System.getProperty("ofbiz.home") + "/" + ofbizLogDir;
 }
 if (!ofbizLogDir.endsWith("/")) {
-    ofbizLogDir.concat("/");
+    ofbizLogDir = ofbizLogDir.concat("/");
 }
 
 File runTimeLogDir = FileUtil.getFile(ofbizLogDir);
 File[] listLogFiles = runTimeLogDir.listFiles();
 String ofbizLogRegExp = UtilProperties.getPropertyValue("debug", "log4j.appender.css.fileNameRegExp", "[(ofbiz)|(error)].*");
-List listLogFileNames = []
+List listLogFileNames = [];
 for (int i = 0; i < listLogFiles.length; i++) {
     if (listLogFiles[i].isFile()) {
         logFileName = listLogFiles[i].getName();