buildbot success in on ofbizTrunkFrameworkPlugins

2020-09-25 Thread buildbot
The Buildbot has detected a restored build on builder 
ofbizTrunkFrameworkPlugins while building . Full details are available at:
https://ci.apache.org/builders/ofbizTrunkFrameworkPlugins/builds/1803

Buildbot URL: https://ci.apache.org/

Buildslave for this Build: asf946_ubuntu

Build Reason: forced: by IRC user  (privmsg): forces manual build 
after supposed BuildBot error
Build Source Stamp: HEAD
Blamelist: 

Build succeeded!

Sincerely,
 -The Buildbot





buildbot failure in on ofbizTrunkFrameworkPlugins

2020-09-25 Thread buildbot
The Buildbot has detected a new failure on builder ofbizTrunkFrameworkPlugins 
while building ofbiz-framework. Full details are available at:
https://ci.apache.org/builders/ofbizTrunkFrameworkPlugins/builds/1802

Buildbot URL: https://ci.apache.org/

Buildslave for this Build: asf947_ubuntu

Build Reason: downstream
Build Source Stamp: [branch trunk] 4b8dd2a06bb28bf14e350382432845143783b621
Blamelist: James Yong 

BUILD FAILED: failed testIntegration

Sincerely,
 -The Buildbot





[ofbiz-framework] branch trunk updated: Fixed: Open FTL File from browser (OFBIZ-12018)

2020-09-25 Thread jamesyong
This is an automated email from the ASF dual-hosted git repository.

jamesyong pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
 new 4b8dd2a  Fixed: Open FTL File from browser (OFBIZ-12018)
4b8dd2a is described below

commit 4b8dd2a06bb28bf14e350382432845143783b621
Author: James Yong 
AuthorDate: Fri Sep 25 22:44:46 2020 +0800

Fixed: Open FTL File from browser (OFBIZ-12018)

Unable to open file in Windows

Thanks Jacques for reporting.
---
 .../src/main/java/org/apache/ofbiz/common/CommonEvents.java   | 6 ++
 framework/widget/config/widget.properties | 8 ++--
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git 
a/framework/common/src/main/java/org/apache/ofbiz/common/CommonEvents.java 
b/framework/common/src/main/java/org/apache/ofbiz/common/CommonEvents.java
index 6313fbf..b8b9a2e 100644
--- a/framework/common/src/main/java/org/apache/ofbiz/common/CommonEvents.java
+++ b/framework/common/src/main/java/org/apache/ofbiz/common/CommonEvents.java
@@ -25,6 +25,7 @@ import java.awt.Graphics2D;
 import java.awt.geom.AffineTransform;
 import java.awt.image.BufferedImage;
 import java.io.BufferedReader;
+import java.io.File;
 import java.io.IOException;
 import java.io.InputStreamReader;
 import java.io.UnsupportedEncodingException;
@@ -459,6 +460,11 @@ public class CommonEvents {
 // find absolute path of file
 URL sourceFileUrl = 
FlexibleLocation.resolveLocation(sourceLocation);
 String location = sourceFileUrl.getFile();
+// ensure file separator in location is correct
+if (!location.contains(File.separator) && 
"\\".equals(File.separator)) {
+location = location.replaceAll("/", "");
+}
+location = "\"" + location + "\"";
 // prepare content map for string expansion
 Map sourceMap = new HashMap<>();
 sourceMap.put("sourceLocation", location);
diff --git a/framework/widget/config/widget.properties 
b/framework/widget/config/widget.properties
index 8d7a446..dc1be2c 100644
--- a/framework/widget/config/widget.properties
+++ b/framework/widget/config/widget.properties
@@ -33,13 +33,9 @@ widget.verbose=true
 # SOURCE - Show named border with link to open the source code
 widget.dev.namedBorder=NONE
 
-# Command template to open file with editor
-# Linux:
+# Command template to open file with editor. Make sure the program is in PATH.
 # idea ${sourceLocation}
-# eclipse --launcher.openFile ${sourceLocation}
-# Windows:
-# idea.exe ${sourceLocation}
-# eclipse.exe --launcher.openFile ${sourceLocation}
+# eclipse ${sourceLocation}
 widget.dev.cmd.openSourceFile=idea ${sourceLocation}
 
 # Default number of items to be displayed per page in a list form



[ofbiz-plugins] branch trunk updated: Improved: Open FTL File from browser (OFBIZ-12018)

2020-09-25 Thread jamesyong
This is an automated email from the ASF dual-hosted git repository.

jamesyong pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
 new 9c40c67  Improved: Open FTL File from browser (OFBIZ-12018)
9c40c67 is described below

commit 9c40c67e7a45f1cb8e9d13462567fb0eb1c772b6
Author: James Yong 
AuthorDate: Fri Sep 25 22:25:15 2020 +0800

Improved: Open FTL File from browser (OFBIZ-12018)

Add request map for ecommerce
---
 ecommerce/webapp/ecommerce/WEB-INF/controller.xml | 8 
 1 file changed, 8 insertions(+)

diff --git a/ecommerce/webapp/ecommerce/WEB-INF/controller.xml 
b/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
index d3401a7..a7c9b86 100644
--- a/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
+++ b/ecommerce/webapp/ecommerce/WEB-INF/controller.xml
@@ -182,6 +182,14 @@ under the License.
 
 
 
+
+
+
+
+
+
+
+