incubator-easyant-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1154179 - in /incubator/easyant/core/trunk/src/main/java/org/apache/easyant: core/menu/ tasks/RepositoryReport.java tasks/menu/
Date Fri, 05 Aug 2011 11:56:44 GMT
Author: hibou
Date: Fri Aug  5 11:56:44 2011
New Revision: 1154179

URL: http://svn.apache.org/viewvc?rev=1154179&view=rev
Log:
IP cleanup:
- remove the menu generator

Removed:
    incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/menu/
    incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/menu/
Modified:
    incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/RepositoryReport.java

Modified: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/RepositoryReport.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/RepositoryReport.java?rev=1154179&r1=1154178&r2=1154179&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/RepositoryReport.java
(original)
+++ incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/RepositoryReport.java
Fri Aug  5 11:56:44 2011
@@ -29,12 +29,9 @@ import java.util.Set;
 import java.util.TreeMap;
 
 import org.apache.easyant.core.EasyAntMagicNames;
-import org.apache.easyant.core.menu.MenuGenerator;
-import org.apache.easyant.core.menu.MenuGeneratorRegistry;
 import org.apache.easyant.core.report.EasyAntReport;
 import org.apache.easyant.core.report.XmlEasyAntReportOutputter;
 import org.apache.easyant.core.services.PluginService;
-import org.apache.easyant.tasks.menu.MenuGeneratorUtils;
 import org.apache.ivy.Ivy;
 import org.apache.ivy.core.cache.ResolutionCacheManager;
 import org.apache.ivy.core.module.descriptor.DefaultModuleDescriptor;
@@ -386,7 +383,6 @@ public class RepositoryReport extends Ab
         private Mapper linkMapper;
 
         private String context;
-        private MenuGeneratorRegistry registry;
 
         //TreeMap to sort menu entries in alphabetical order.  should this behavior be configurable
somehow?
         private Map<String,String> entries = new TreeMap<String,String>();
@@ -432,17 +428,8 @@ public class RepositoryReport extends Ab
 
         public void generate() throws IOException {
             for (Map.Entry<String,String> entry : entries.entrySet()) {
-                for (MenuGenerator generator : getRegistry().getMenuGenerators()) {
-                    generator.addEntry(entry.getValue(), entry.getKey());
-                }
-            }
-        }
-
-        private MenuGeneratorRegistry getRegistry() {
-            if (registry == null) {
-                registry = MenuGeneratorUtils.getRegistryForContext(getProject(), context,
false);
+            	// TODO
             }
-            return registry;
         }
 
         private void configureMapper(Mapper mapper, String typeName, String from, String
to) {



Mime
View raw message