Revision: 16085 http://gate.svn.sourceforge.net/gate/?rev=16085&view=rev Author: valyt Date: 2012-09-19 10:33:49 +0000 (Wed, 19 Sep 2012) Log Message: ----------- Changed the main variant that builds directed indexes to allow the specification of multiple sub-indexes to be inverted sequentially.
Modified Paths: -------------- mimir/trunk/mimir-test/src/gate/mimir/test/Scratch.java Modified: mimir/trunk/mimir-test/src/gate/mimir/test/Scratch.java =================================================================== --- mimir/trunk/mimir-test/src/gate/mimir/test/Scratch.java 2012-09-19 10:32:14 UTC (rev 16084) +++ mimir/trunk/mimir-test/src/gate/mimir/test/Scratch.java 2012-09-19 10:33:49 UTC (rev 16085) @@ -49,7 +49,8 @@ public class Scratch { public static void main (String[] args) throws Exception { - mainSimple(args); + mainSimple(args); +// mainBuildDirectIndex(args); } @@ -193,14 +194,19 @@ new File("../plugins/sparql").toURI().toURL()); // the MÃmir index dir from params - if(args.length != 2) { + if(args.length < 2) { System.err.println( - "Parameters: <index directory> <sub-index basename>"); + "Parameters: <index directory> <sub-index basename>..."); return; } try { - MimirDirectIndexBuilder mdib = new MimirDirectIndexBuilder(new File(args[0]), args[1]); - mdib.run(); + for(int i = 1; i <args.length; i++) { + System.out.println("Inverting index " + args[i]); + MimirDirectIndexBuilder mdib = new MimirDirectIndexBuilder( + new File(args[0]), args[i]); + mdib.run(); + System.out.println("\n===============================\n"); + } } catch(Exception e) { e.printStackTrace(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ GATE-cvs mailing list GATE-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gate-cvs