From: <bi...@us...> - 2012-01-19 21:44:49
|
Revision: 3597 http://archive-access.svn.sourceforge.net/archive-access/?rev=3597&view=rev Author: binzino Date: 2012-01-19 21:44:43 +0000 (Thu, 19 Jan 2012) Log Message: ----------- Fix splitting of line to allow for collection names with spaces in them. Modified Paths: -------------- tags/nutchwax-0_13-JIRA-WAX-75/archive/src/java/org/archive/nutchwax/Importer.java Modified: tags/nutchwax-0_13-JIRA-WAX-75/archive/src/java/org/archive/nutchwax/Importer.java =================================================================== --- tags/nutchwax-0_13-JIRA-WAX-75/archive/src/java/org/archive/nutchwax/Importer.java 2012-01-12 22:22:43 UTC (rev 3596) +++ tags/nutchwax-0_13-JIRA-WAX-75/archive/src/java/org/archive/nutchwax/Importer.java 2012-01-19 21:44:43 UTC (rev 3597) @@ -200,7 +200,7 @@ } // Each line of the manifest is "<url> <collection>" where <collection> is optional - String[] parts = line.split( "\\s+" ); + String[] parts = line.split( "\\s+", 2 ); arcUrl = parts[0]; if ( parts.length > 1 ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |