Skip to content

Instantly share code, notes, and snippets.

@cappuccino
Created November 5, 2009 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cappuccino/226844 to your computer and use it in GitHub Desktop.
Save cappuccino/226844 to your computer and use it in GitHub Desktop.
public static void main(String[] args) {
Scanner scanner = new Scanner(new BufferedInputStream(System.in), "UTF-8");
String string = "";
while (true)
{
Scanner lineScanner = new Scanner(scanner.nextLine());
ArrayList options = new ArrayList();
while (lineScanner.hasNext())
options.add(lineScanner.next());
String[] stringArray = (String[])options.toArray(new String[options.size()]);
oldMain(stringArray);
}
}
public static void oldMain(String[] args) {
errorReporter = new ToolErrorReporter(false, global.getErr());
shellContextFactory.setErrorReporter(errorReporter);
IProxy iproxy = new IProxy(IProxy.PROCESS_FILES, processOptions(args));
global.init(shellContextFactory);
shellContextFactory.call(iproxy);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment