harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apetre...@apache.org
Subject svn commit: r542499 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c
Date Tue, 29 May 2007 12:17:58 GMT
Author: apetrenko
Date: Tue May 29 05:17:57 2007
New Revision: 542499

URL: http://svn.apache.org/viewvc?view=rev&rev=542499
Log:
Patch for HARMONY-3876 "[classlib][launcher] 'java -help' does not print a list of options
end returns 1"

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c?view=diff&rev=542499&r1=542498&r2=542499
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c Tue
May 29 05:17:57 2007
@@ -205,6 +205,14 @@
 	* have a '-jar' argument.
 	*/
 	for (i = 1; i < argc; i++) {
+        if ((0 == strcmp ("-help", argv[i])) ||
+            (0 == strcmp ("-?", argv[i])) ||
+            (0 == strcmp ("-X", argv[i]))) {
+            printUsageMessage(PORTLIB);
+            rc = 0;
+            goto bail;
+        }
+        
 		if ((0 == strcmp ("-cp", argv[i])) ||
 		    (0 == strcmp ("-classpath", argv[i]))) {
 			/* Skip the classpath argument while looking for main class */



Mime
View raw message