Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: code base(not a technical question) Date: Wed, 24 Aug 2011 13:09:20 -0700 Organization: A noiseless patient Spider Lines: 29 Message-ID: References: <5a3429f6-8b58-423a-a51b-13c66e5db4ac@glegroupsg2000goo.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 24 Aug 2011 20:09:33 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="XjIWM99mD7Ijfdu600oVPA"; logging-data="17809"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ALAoy5odO5ppRzqgsiSqunZZguD7xtMc=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20110812 Thunderbird/6.0 In-Reply-To: <5a3429f6-8b58-423a-a51b-13c66e5db4ac@glegroupsg2000goo.googlegroups.com> Cancel-Lock: sha1:uYqA8p2jVp0swQ+LrV6pwjUYY/0= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7352 On 8/24/2011 12:03 PM, Asit Dhal wrote: > code snippets are stored in small text files. File name is what the > snippet is about. e.g.:- CounDownLatch.java HorseRace.java > SingletonThreaSafe.java > > What I need is every file should be associated with some index > string, which is search able. grep and other unix tools are of course available for Windows. I don't understand what you think you're going to build the index string with. What goes in the index string? All symbols in the file? Just the file names? Please be as specific as possible. For example, here's a code snippet: hw.java: package simple; public class Hello { public static void Main( String... args ) { System.out.println( "Hello world" ); } } What precisely would go in your index string for this example?