Author: hansbak Date: Sun Aug 11 07:11:49 2013 New Revision: 1512886 URL: http://svn.apache.org/r1512886 Log: also show the components without a webapp
Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ComponentList.groovy Modified: ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ComponentList.groovy URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ComponentList.groovy?rev=1512886&r1=1512885&r2=1512886&view=diff ============================================================================== --- ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ComponentList.groovy (original) +++ ofbiz/trunk/framework/webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ComponentList.groovy Sun Aug 11 07:11:49 2013 @@ -28,7 +28,6 @@ import javolution.util.FastList; import org.ofbiz.base.util.* Collection <ComponentConfig> components = ComponentConfig.getAllComponents(); - List componentList = FastList.newInstance(); components.each { component -> @@ -46,6 +45,19 @@ components.each { component -> componentMap.location = webApp.getLocation(); componentList.add(componentMap); } + if (UtilValidate.isEmpty(webApps)) { + componentMap = FastMap.newInstance(); + componentMap.compName = component.getComponentName(); + componentMap.rootLocation = component.getRootLocation(); + componentMap.enabled = (component.enabled() == true? "Y" : "N"); + componentList.add(componentMap); + componentMap.webAppName = ""; + componentMap.contextRoot = ""; + componentMap.location = ""; + componentMap.webAppName = ""; + componentMap.contextRoot = ""; + componentMap.location = ""; + } } // sort the entries