svn commit: r615083 - /ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java

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

svn commit: r615083 - /ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java

adrianc
Author: adrianc
Date: Thu Jan 24 15:51:42 2008
New Revision: 615083

URL: http://svn.apache.org/viewvc?rev=615083&view=rev
Log:
Small enhancement to Webtools entity reference page - eliminated ofbiz home path from entity location.

Modified:
    ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java

Modified: ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java?rev=615083&r1=615082&r2=615083&view=diff
==============================================================================
--- ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java (original)
+++ ofbiz/trunk/framework/webtools/src/org/ofbiz/webtools/WebToolsServices.java Thu Jan 24 15:51:42 2008
@@ -762,7 +762,9 @@
                         entityMap.put("plainTableName", entity.getPlainTableName());
                         entityMap.put("title", entity.getTitle());
                         entityMap.put("description", entity.getDescription());
-                        entityMap.put("location", entity.getLocation());
+                        String entityLocation = entity.getLocation();
+                        entityLocation = entityLocation.replaceFirst(System.getProperty("ofbiz.home") + "/", "");
+                        entityMap.put("location", entityLocation);
                         entityMap.put("javaNameList", javaNameList);
                         entityMap.put("relationsList", relationsList);
                         entityMap.put("indexList", indexList);