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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

nmalin
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();