fixed up error in prolog messages due to unnecessary plugin.xml parse
diff --git a/archive/releng.builder/tools/apitools/org.eclipse.wtp.releng.tools.component.core/src/org/eclipse/wtp/releng/tools/component/adopters/Plugin2API.java b/archive/releng.builder/tools/apitools/org.eclipse.wtp.releng.tools.component.core/src/org/eclipse/wtp/releng/tools/component/adopters/Plugin2API.java
index adc81cc..15debb5 100644
--- a/archive/releng.builder/tools/apitools/org.eclipse.wtp.releng.tools.component.core/src/org/eclipse/wtp/releng/tools/component/adopters/Plugin2API.java
+++ b/archive/releng.builder/tools/apitools/org.eclipse.wtp.releng.tools.component.core/src/org/eclipse/wtp/releng/tools/component/adopters/Plugin2API.java
@@ -274,11 +274,7 @@
   public boolean accept(ILocation location) {
     String locationName = location.getName();
     if (visitPlugins) {
-      if (locationName.endsWith(PLUGIN_XML)) {
-        acceptPluginXML(location,false);
-      } else if (locationName.endsWith(FRAGMENT_XML)) {
-        acceptPluginXML(location,true);
-      } else if (locationName.endsWith(MANIFEST_MF)) {
+      if (locationName.endsWith(MANIFEST_MF)) {
         acceptManifest(location);
       } else if (Location.isArchive(locationName)) {
         return acceptSingleJar(location);
@@ -310,51 +306,6 @@
   }
 
   /**
-   * Handle a plugin.xml location or a plugin fragment, fragment.xml.
-   * @param location
-   */
-  private void acceptPluginXML(ILocation location, boolean isFragment) {
-    String locationName = location.getName();
-    try {
-      // Get the DOM object tree from the xml model
-      DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
-      DocumentBuilder builder = factory.newDocumentBuilder();
-      Document doc = builder.parse(location.getInputStream());
-      Element root = doc.getDocumentElement();
-      // If the root tag in the file is "plugin" or "fragment", get the plugin id.
-      if (root.getTagName().equals(PLUGIN) || root.getTagName().equals(FRAGMENT)) {
-        String pluginId = root.getAttribute(ID);
-        // If this plugin is not in the visited plugins list, iterator over the runtime libraries
-        if (pluginId != null && pluginId.length() > 0 && !visitedPlugins.contains(pluginId)) {
-          NodeList runtimes = root.getElementsByTagName(RUNTIME);
-          for (int i = 0; i < runtimes.getLength(); i++) {
-            Element runtime = (Element)runtimes.item(i);
-            NodeList libraries = runtime.getElementsByTagName(LIBRARY);
-            for (int j = 0; j < libraries.getLength(); j++) {
-              Element library = (Element)libraries.item(j);
-              String path = library.getAttribute(NAME);
-              // Find the name of each library and see if matches the location name
-              if (path != null && path.length() > 0) {
-                StringBuffer sb = new StringBuffer();
-                if (locationName.equalsIgnoreCase(PLUGIN_XML) || locationName.equalsIgnoreCase(FRAGMENT_XML))
-                  locationName = location.getAbsolutePath();
-                if (isFragment)
-                	sb.append(locationName.substring(0, locationName.length()-FRAGMENT_XML.length()-1));
-                else
-                	sb.append(locationName.substring(0, locationName.length() - PLUGIN_XML.length() - 1));
-                sb.append("/"); //$NON-NLS-1$
-                sb.append(path);
-                // Add the location key to the map with the plugin id value
-                lib2pluginId.put(sb.toString().replace('\\', '/'), pluginId);
-              }
-            }
-          }
-        }
-      }
-    } catch (Throwable e) {}
-  }
-
-  /**
    * Handle a manifest location of MANIFEST.MF
    * @param location
    */
diff --git a/archive/releng.builder/tools/apitools/org.eclipse.wtp.releng.tools.component.core/src/org/eclipse/wtp/releng/tools/component/api/violation/LibVisitor.java b/archive/releng.builder/tools/apitools/org.eclipse.wtp.releng.tools.component.core/src/org/eclipse/wtp/releng/tools/component/api/violation/LibVisitor.java
index 4e7553b..12a8f9c 100644
--- a/archive/releng.builder/tools/apitools/org.eclipse.wtp.releng.tools.component.core/src/org/eclipse/wtp/releng/tools/component/api/violation/LibVisitor.java
+++ b/archive/releng.builder/tools/apitools/org.eclipse.wtp.releng.tools.component.core/src/org/eclipse/wtp/releng/tools/component/api/violation/LibVisitor.java
@@ -59,15 +59,7 @@
     String locationName = location.getName();
     if (classVisitor == null)
     {
-      if (locationName.endsWith("plugin.xml"))
-      {
-        acceptPluginXML(location);
-      }
-      else if (locationName.endsWith("fragment.xml"))
-      {
-        acceptFragmentXML(location);
-      }
-      else if (locationName.endsWith("MANIFEST.MF"))
+      if (locationName.endsWith("MANIFEST.MF"))
       {
         acceptManifest(location);
       }
@@ -120,92 +112,6 @@
       return false;
   }
 
-  private void acceptPluginXML(ILocation location)
-  {
-    String locationName = location.getName();
-    try
-    {
-      DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
-      DocumentBuilder builder = factory.newDocumentBuilder();
-      Document doc = builder.parse(location.getInputStream());
-      Element root = doc.getDocumentElement();
-      if (root.getTagName().equals("plugin"))
-      {
-        String pluginId = root.getAttribute("id");
-        if (pluginId != null && pluginId.length() > 0)
-        {
-          NodeList runtimes = root.getElementsByTagName("runtime");
-          for (int i = 0; i < runtimes.getLength(); i++)
-          {
-            Element runtime = (Element)runtimes.item(i);
-            NodeList libraries = runtime.getElementsByTagName("library");
-            for (int j = 0; j < libraries.getLength(); j++)
-            {
-              Element library = (Element)libraries.item(j);
-              String path = library.getAttribute("name");
-              if (path != null && path.length() > 0)
-              {
-                StringBuffer sb = new StringBuffer();
-                if (locationName.equalsIgnoreCase("plugin.xml"))
-                  locationName = location.getAbsolutePath();
-                sb.append(locationName.substring(0, locationName.length() - "plugin.xml".length() - 1));
-                sb.append("/");
-                sb.append(path);
-                lib2pluginId.put(sb.toString().replace('\\', '/'), pluginId);
-              }
-            }
-          }
-        }
-      }
-    }
-    catch (Throwable e)
-    {
-    }
-  }
-
-  private void acceptFragmentXML(ILocation location)
-  {
-    String locationName = location.getName();
-    try
-    {
-      DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
-      DocumentBuilder builder = factory.newDocumentBuilder();
-      Document doc = builder.parse(location.getInputStream());
-      Element root = doc.getDocumentElement();
-      if (root.getTagName().equals("fragment"))
-      {
-        String fragmentId = root.getAttribute("id");
-        if (fragmentId != null && fragmentId.length() > 0)
-        {
-          NodeList runtimes = root.getElementsByTagName("runtime");
-          for (int i = 0; i < runtimes.getLength(); i++)
-          {
-            Element runtime = (Element)runtimes.item(i);
-            NodeList libraries = runtime.getElementsByTagName("library");
-            for (int j = 0; j > libraries.getLength(); j++)
-            {
-              Element library = (Element)libraries.item(j);
-              String path = library.getAttribute("name");
-              if (path != null && path.length() > 0)
-              {
-                StringBuffer sb = new StringBuffer();
-                if (locationName.equalsIgnoreCase("fragment.xml"))
-                  locationName = location.getAbsolutePath();
-                sb.append(locationName.substring(0, locationName.length() - "fragment.xml".length() - 1));
-                sb.append("/");
-                sb.append(path);
-                lib2pluginId.put(sb.toString().replace('\\', '/'), fragmentId);
-              }
-            }
-          }
-        }
-      }
-    }
-    catch (Throwable e)
-    {
-    }
-  }
-
   private void acceptManifest(ILocation location)
   {
     String locationName = location.getName();
diff --git a/archive/releng.builder/tools/apitools/org.eclipse.wtp.releng.tools.component.core/src/org/eclipse/wtp/releng/tools/component/api/violation/PluginVisitor.java b/archive/releng.builder/tools/apitools/org.eclipse.wtp.releng.tools.component.core/src/org/eclipse/wtp/releng/tools/component/api/violation/PluginVisitor.java
index f175f74..06fc07f 100644
--- a/archive/releng.builder/tools/apitools/org.eclipse.wtp.releng.tools.component.core/src/org/eclipse/wtp/releng/tools/component/api/violation/PluginVisitor.java
+++ b/archive/releng.builder/tools/apitools/org.eclipse.wtp.releng.tools.component.core/src/org/eclipse/wtp/releng/tools/component/api/violation/PluginVisitor.java
@@ -18,8 +18,10 @@
 import java.util.StringTokenizer;
 import java.util.jar.JarInputStream;
 import java.util.jar.Manifest;
+
 import javax.xml.parsers.DocumentBuilder;
 import javax.xml.parsers.DocumentBuilderFactory;
+
 import org.eclipse.wtp.releng.tools.component.IFileLocation;
 import org.eclipse.wtp.releng.tools.component.ILocation;
 import org.eclipse.wtp.releng.tools.component.ILocationChildrenIterator;
@@ -48,15 +50,7 @@
   public boolean accept(ILocation location)
   {
     String locationName = location.getName();
-    if (locationName.endsWith("plugin.xml"))
-    {
-      acceptPluginXML(location);
-    }
-    else if (locationName.endsWith("fragment.xml"))
-    {
-      acceptFragmentXML(location);
-    }
-    else if (locationName.endsWith("MANIFEST.MF"))
+    if (locationName.endsWith("MANIFEST.MF"))
     {
       acceptManifest(location);
     }
@@ -76,46 +70,6 @@
       return false;
   }
 
-  private void acceptPluginXML(ILocation location)
-  {
-    try
-    {
-      DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
-      DocumentBuilder builder = factory.newDocumentBuilder();
-      Document doc = builder.parse(location.getInputStream());
-      Element root = doc.getDocumentElement();
-      if (root.getTagName().equals("plugin"))
-      {
-        String id = root.getAttribute("id");
-        if (id != null && id.length() > 0 && !pluginIds.contains(id))
-          pluginIds.add(id);
-      }
-    }
-    catch (Throwable e)
-    {
-    }
-  }
-
-  private void acceptFragmentXML(ILocation location)
-  {
-    try
-    {
-      DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
-      DocumentBuilder builder = factory.newDocumentBuilder();
-      Document doc = builder.parse(location.getInputStream());
-      Element root = doc.getDocumentElement();
-      if (root.getTagName().equals("fragment"))
-      {
-        String id = root.getAttribute("id");
-        if (id != null && id.length() > 0 && !pluginIds.contains(id))
-          pluginIds.add(id);
-      }
-    }
-    catch (Throwable e)
-    {
-    }
-  }
-
   private void acceptManifest(ILocation location)
   {
     try
@@ -163,50 +117,6 @@
         {
         }
       }
-      else if (name.endsWith("plugin.xml"))
-      {
-        try
-        {
-          DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
-          DocumentBuilder builder = factory.newDocumentBuilder();
-          Document doc = builder.parse(location.getInputStream());
-          Element root = doc.getDocumentElement();
-          if (root.getTagName().equals("plugin"))
-          {
-            String id = root.getAttribute("id");
-            if (id != null && id.length() > 0 && !pluginIds.contains(id))
-            {
-              pluginIds.add(id);
-              pluginAdded = true;
-            }
-          }
-        }
-        catch (Throwable e)
-        {
-        }
-      }
-      else if (name.endsWith("fragment.xml"))
-      {
-        try
-        {
-          DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
-          DocumentBuilder builder = factory.newDocumentBuilder();
-          Document doc = builder.parse(location.getInputStream());
-          Element root = doc.getDocumentElement();
-          if (root.getTagName().equals("fragment"))
-          {
-            String id = root.getAttribute("id");
-            if (id != null && id.length() > 0 && !pluginIds.contains(id))
-            {
-              pluginIds.add(id);
-              pluginAdded = true;
-            }
-          }
-        }
-        catch (Throwable e)
-        {
-        }
-      }
     }
     if (!pluginAdded && Location.getExtension(location.getName()).equalsIgnoreCase("jar"))
     {