forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
Subject svn commit: r688075 - /forrest/branches/update_cocoon_2.1.12-dev/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/solr/client/SolrUpdateGenerator.java
Date Fri, 22 Aug 2008 12:29:19 GMT
Author: thorsten
Date: Fri Aug 22 05:29:18 2008
New Revision: 688075

URL: http://svn.apache.org/viewvc?rev=688075&view=rev
Log:
Fixing resolver bugs around the solr plugin

Modified:
    forrest/branches/update_cocoon_2.1.12-dev/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/solr/client/SolrUpdateGenerator.java

Modified: forrest/branches/update_cocoon_2.1.12-dev/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/solr/client/SolrUpdateGenerator.java
URL: http://svn.apache.org/viewvc/forrest/branches/update_cocoon_2.1.12-dev/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/solr/client/SolrUpdateGenerator.java?rev=688075&r1=688074&r2=688075&view=diff
==============================================================================
--- forrest/branches/update_cocoon_2.1.12-dev/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/solr/client/SolrUpdateGenerator.java
(original)
+++ forrest/branches/update_cocoon_2.1.12-dev/whiteboard/plugins/org.apache.forrest.plugin.output.solr/src/java/org/apache/forrest/solr/client/SolrUpdateGenerator.java
Fri Aug 22 05:29:18 2008
@@ -51,7 +51,6 @@
     public void generate() throws IOException, SAXException, ProcessingException {
         Source inputSource = null;
         try {
-            resolver = (SourceResolver) manager.lookup(SourceResolver.ROLE);
             inputSource = resolver.resolveURI(this.source);
             if (inputSource.exists()) {
                 post = new PostFile(destination, inputSource.getInputStream());
@@ -68,6 +67,9 @@
           if (null!=post){
             post.releaseConnection();
           }
+          if (inputSource!=null){
+            resolver.release(inputSource);
+          }
         }
         
     }



Mime
View raw message