manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1418138 - in /manifoldcf/branches/CONNECTORS-578/connectors: connector-build.xml livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
Date Thu, 06 Dec 2012 23:52:07 GMT
Author: kwright
Date: Thu Dec  6 23:52:06 2012
New Revision: 1418138

URL: http://svn.apache.org/viewvc?rev=1418138&view=rev
Log:
Fix documentum build issue

Modified:
    manifoldcf/branches/CONNECTORS-578/connectors/connector-build.xml
    manifoldcf/branches/CONNECTORS-578/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java

Modified: manifoldcf/branches/CONNECTORS-578/connectors/connector-build.xml
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-578/connectors/connector-build.xml?rev=1418138&r1=1418137&r2=1418138&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-578/connectors/connector-build.xml (original)
+++ manifoldcf/branches/CONNECTORS-578/connectors/connector-build.xml Thu Dec  6 23:52:06
2012
@@ -103,11 +103,11 @@
 
     <path id="mcf-connector-build.implementation-classpath">
         <pathelement location="build/interface/classes"/>
+        <pathelement location="build/stubclasses"/>
     </path>
 
     <path id="implementation-classpath">
         <path refid="mcf-connector-build.implementation-classpath"/>
-        <pathelement location="build/stubclasses"/>
     </path>
 
     <path id="mcf-connector-build.interface-classpath">

Modified: manifoldcf/branches/CONNECTORS-578/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-578/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java?rev=1418138&r1=1418137&r2=1418138&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-578/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
(original)
+++ manifoldcf/branches/CONNECTORS-578/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
Thu Dec  6 23:52:06 2012
@@ -895,7 +895,7 @@ public class LivelinkConnector extends o
     // So that the version strings are comparable, we will put them in an array first, and
sort them.
     String pathAttributeName = null;
     String pathSeparator = null;
-    HashMap holder = new HashMap();
+    Set<String> holder = new HashSet<String>();
     MatchMap matchMap = new MatchMap();
     boolean includeAllMetadata = false;
     int i = 0;
@@ -925,14 +925,14 @@ public class LivelinkConnector extends o
             {
               attributeName = attrs[j++];
               String metadataName = packCategoryAttribute(category,attributeName);
-              holder.put(metadataName,metadataName);
+              holder.add(metadataName);
             }
           }
         }
         else
         {
           String metadataName = packCategoryAttribute(category,attributeName);
-          holder.put(metadataName,metadataName);
+          holder.add(metadataName);
         }
       }
       else if (n.getType().equals("pathnameattribute"))
@@ -962,10 +962,9 @@ public class LivelinkConnector extends o
       // Put into an array
       String[] sortArray = new String[holder.size()];
       i = 0;
-      Iterator iter = holder.keySet().iterator();
-      while (iter.hasNext())
+      for (String attrName : holder)
       {
-        sortArray[i++] = (String)iter.next();
+        sortArray[i++] = attrName;
       }
 
       // Sort!



Mime
View raw message