harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arc...@apache.org
Subject svn commit: r413337 - /incubator/harmony/enhanced/jchevm/libjc/jc_invoke.c
Date Sat, 10 Jun 2006 17:58:21 GMT
Author: archie
Date: Sat Jun 10 10:58:21 2006
New Revision: 413337

URL: http://svn.apache.org/viewvc?rev=413337&view=rev
Log:
Add support for the -showversion command line flag for JDK compatibility.

Modified:
    incubator/harmony/enhanced/jchevm/libjc/jc_invoke.c

Modified: incubator/harmony/enhanced/jchevm/libjc/jc_invoke.c
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/jchevm/libjc/jc_invoke.c?rev=413337&r1=413336&r2=413337&view=diff
==============================================================================
--- incubator/harmony/enhanced/jchevm/libjc/jc_invoke.c (original)
+++ incubator/harmony/enhanced/jchevm/libjc/jc_invoke.c Sat Jun 10 10:58:21 2006
@@ -96,6 +96,8 @@
 	"Show additional options" },
     {	'V', "version",		NULL,
 	"Display version and exit" },
+    {	'S', "showversion",	NULL,
+	"Display version then proceed" },
     {	'?', "help",		NULL,
 	"Display this help information" },
     {	0, NULL, NULL, NULL }
@@ -109,6 +111,7 @@
     {	"-cp",		"-c",		0,	NULL },
     {	"-classpath",	"-c",		0,	NULL },
     {	"-version",	"-V",		0,	NULL },
+    {	"-showversion",	"-S",		0,	NULL },
     {	"-help",	"-?",		0,	NULL },
     {	"-jar",		"-j",		0,	NULL },
     {	"-mx",		NULL,		0,	"jc.heap.size" },
@@ -406,14 +409,18 @@
 				goto done;
 			break;
 		    }
+		case 'S':
 		case 'V':
 			jc_print(printer, stdout,
 			    "JC virtual machine version %s (r%lu)\n"
-			    "Copyright (C) 2003-2006 Archie L. Cobbs\n"
+			    "Copyright (C) 2003-2006 Archie L. Cobbs.\n"
 			    "All rights reserved.\n", VERSION,
 			    _jc_svn_revision);
-			rtn = _JC_RETURN_NORMAL;
-			goto done;
+			if (opt->sform == 'V') {
+			    rtn = _JC_RETURN_NORMAL;
+			    goto done;
+			}
+			break;
 		case 'X':
 			jc_print(printer, stdout, "Additional options:\n");
 			jc_print(printer, stdout, "  %-16s", "-Dfoo=bar");



Mime
View raw message