From f7dbf2b7b273107e95833e80820dfc053bdec859 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 2 Apr 2010 10:34:08 +0000 Subject: [PATCH] cli length limit --- src/jalview/util/Platform.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/jalview/util/Platform.java b/src/jalview/util/Platform.java index 2eec73c..283628e 100644 --- a/src/jalview/util/Platform.java +++ b/src/jalview/util/Platform.java @@ -41,4 +41,13 @@ public class Platform return hdls!=null && hdls.equals("true"); } + /** + * + * @return nominal maximum command line length for this platform + */ + public static int getMaxCommandLineLength() + { + // TODO: determine nominal limits for most platforms. + return 2046; // this is the max length for a windows NT system. + } } -- 1.7.10.2