blob: deab4c666e6e387568218919856787f6c6daa0f2 [file] [log] [blame]
//------------------------------------------------------------------------------
// Copyright (c) 2005, 2006 IBM Corporation and others.
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Eclipse Public License v1.0
// which accompanies this distribution, and is available at
// http://www.eclipse.org/legal/epl-v10.html
//
// Contributors:
// IBM Corporation - initial implementation
//------------------------------------------------------------------------------
package org.eclipse.epf.publishing.services.index;
// Debug.// import javax.swing.*;
public class KeyWordIndex
{
static public KeyWordHolder holder = new KeyWordHolder();
static public DefinitionObject defObj=null;
private static String deffile = null;
private static String charSet = null;
private static String helpFile = null;
private static boolean showUsage = false;
// static public void main(String argv[])
// {
// if(!parseArgs(argv))
// {
// KeyWordIndex.showUsage();
// System.exit(0);
// }
//
// if(showUsage)
// {
// KeyWordIndex.showUsage();
// System.exit(0);
// }
//
// if(deffile==null)
// {
// System.out.println(HelpMessages.MISSING_RESPONSE_FILE );
// KeyWordIndex.showUsage();
// System.exit(0);
// }
//
// //start the file processing
// try {
//
// KeyWordIndexHelper theKeyWordIndexHelper = new KeyWordIndexHelper(
// deffile,
// charSet,
// helpFile );
//
// //KeyWordIndexHelper theHelper = new KeyWordIndexHelper();
// //theHelper.setDeffile( deffile );
// //theHelper.execute();
//
// theKeyWordIndexHelper.execute();
// } catch ( KeyWordIndexException kwe ) {
// System.out.println( kwe.toString() );
// }
//
// System.exit(0);
// }
// //----------------------------------------------------------------------------------------------------------
// private static void showUsage()
// {
// System.out.println("Usage: java com.rational.rpw.applets.KeyWordIndex -r filename [options]"); //$NON-NLS-1$
// System.out.println(" -r filename definition file (required)"); //$NON-NLS-1$
// System.out.println("Options: -c characterset the characterset used to read input files"); //$NON-NLS-1$
// System.out.println(" -l filename the file with language dependent messages"); //$NON-NLS-1$
// System.out.println(" -h display this messages"); //$NON-NLS-1$
// }
// //----------------------------------------------------------------------------------------------------------
// private static boolean parseArgs(String[] args)
// {
// int argc = 0;
//
// while(argc < args.length)
// {
// if(args[argc].startsWith(Def.ArgumentPrefix))
// {
// if(args[argc].equals(Def.ResponseFileArg)) deffile = MiscStatic.trimQuotes(args[++argc]);
// else if(args[argc].equals(Def.CharacterSetArg)) charSet = MiscStatic.trimQuotes(args[++argc]);
// else if(args[argc].equals(Def.LanguageFileArg)) helpFile = MiscStatic.trimQuotes(args[++argc]);
// else if(args[argc].equals(Def.ShowUsageArg)) showUsage = true;
// else if(args[argc].equals(Def.PrintDebugArg)) IO.debug(true);
// else
// {
// System.out.println(HelpMessages.INVALID_PARAMETER_NAME + args[argc]);
// return false;
// }
// }
// else
// {
// System.out.println(HelpMessages.INVALID_PARAMETER_NAME + args[argc]);
// return false;
// }
// argc++;
// }
// return true;
//}
}