- Calling the class loader
- Running the main method
- $Id: cacao.c 3066 2005-07-19 12:35:37Z twisti $
+ $Id: cacao.c 3089 2005-07-21 11:00:15Z twisti $
*/
#define OPT_BOOTCLASSPATH_P 38
#define OPT_VERSION 39
#define OPT_SHOWVERSION 40
+#define OPT_FULLVERSION 41
#define OPT_HELP 100
#define OPT_X 101
{ "Xbootclasspath/p:", true, OPT_BOOTCLASSPATH_P },
{ "version", false, OPT_VERSION },
{ "showversion", false, OPT_SHOWVERSION },
+ { "fullversion", false, OPT_FULLVERSION },
{ "help", false, OPT_HELP },
{ "?", false, OPT_HELP },
{ "X", false, OPT_X },
printf(" -D<name>=<value> add an entry to the property list\n");
printf(" -verbose[:class|gc|jni] enable specific verbose output\n");
printf(" -version print product version and exit\n");
+ printf(" -fullversion print jpackage-compatible product version and exit\n");
printf(" -showversion print product version and continue\n");
printf(" -help, -? print this help message\n");
printf(" -X print help on non-standard Java options\n\n");
}
+/* fullversion *****************************************************************
+
+ Prints a Sun compatible version information (required e.g. by
+ jpackage, www.jpackage.org).
+
+*******************************************************************************/
+
+static void fullversion(void)
+{
+ printf("java full version \"cacao-1.4.2\"\n");
+
+ /* exit normally */
+
+ exit(0);
+}
+
+
#ifdef TYPECHECK_STATISTICS
void typecheck_print_statistics(FILE *file);
#endif
exit(0);
break;
+ case OPT_FULLVERSION:
+ fullversion();
+ break;
+
case OPT_SHOWVERSION:
version();
break;