From d98e5e4af563bc21960bf07f88fde8f8a593f102 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 13 Jan 2006 16:05:24 +0000 Subject: [PATCH] added command line definition git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@120 be28352e-c001-0410-b1a7-c7978e42abec --- src/org/vamsas/test/simpleclient/ArchiveWriter.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/org/vamsas/test/simpleclient/ArchiveWriter.java b/src/org/vamsas/test/simpleclient/ArchiveWriter.java index f7314fd..cfba99b 100644 --- a/src/org/vamsas/test/simpleclient/ArchiveWriter.java +++ b/src/org/vamsas/test/simpleclient/ArchiveWriter.java @@ -7,6 +7,7 @@ import java.io.PrintWriter; import java.text.DateFormat; import java.util.Date; import java.util.Hashtable; +import java.util.Vector; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -137,6 +138,14 @@ public class ArchiveWriter { return true; // success } + private static CommandProcessor cproc; + static { + cproc.addCommand("new", 0, "no args"); + cproc.addCommand("add", 1, "Need another vamsas document archive filename as argument."); + cproc.addCommand("repair", 0, "no args"); + cproc.addCommand("list", 0, "no args"); + cproc.addCommand("monitor", 0, "no args"); + } public static void main(String argv[]) { /** -- 1.7.10.2