From e4bdd840d03dfca1ebc51818eb9c15400b06fd58 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 18 May 2007 11:41:01 +0000 Subject: [PATCH] better command line processing options (load, save) and slower update poll check. git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@393 be28352e-c001-0410-b1a7-c7978e42abec --- src/uk/ac/vamsas/test/ExampleApplication.java | 74 ++++++++++++++++++++++--- 1 file changed, 67 insertions(+), 7 deletions(-) diff --git a/src/uk/ac/vamsas/test/ExampleApplication.java b/src/uk/ac/vamsas/test/ExampleApplication.java index 18b6cac..6673129 100644 --- a/src/uk/ac/vamsas/test/ExampleApplication.java +++ b/src/uk/ac/vamsas/test/ExampleApplication.java @@ -10,6 +10,7 @@ import uk.ac.vamsas.test.objects.Core; import java.awt.Event; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; +import java.io.File; import java.io.IOException; import java.util.Vector; @@ -195,24 +196,44 @@ public class ExampleApplication } - public String Usage = "ExampleApplication [session urn] watch/n( future usage is :/n [+]\n" + public String Usage = "ExampleApplication :/n [-arena ][-session ] [+]\n" + " is one of :\n\tsave,update,close,watch"; String sess = null; - + String importFile=null; + String outputFile=null; private boolean parseArgs(String args[]) { if (args.length == 0) { return false; } - if (!args[0].toLowerCase().equals("watch")) + int cpos=0; + boolean parsed=false; + while (!parsed && cpos