changeset 2058:38c9e6307044

PR icedtea/491: pass java_{code,codebase,archive} paramters to java 2010-07-20 Omair Majid <omajid@redhat.com> PR icedtea/491 * plugin/icedteanp/IcedTeaNPPlugin.cc (plugin_create_applet_tag): Accept and pass on java_{code,codebase,archive} tags to the java side of the plugin.
author Omair Majid <omajid@redhat.com>
date Tue, 20 Jul 2010 13:50:16 -0400
parents 162af9c88f31
children 2489bca2d112
files ChangeLog plugin/icedteanp/IcedTeaNPPlugin.cc
diffstat 2 files changed, 28 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu May 13 15:53:35 2010 +0100
+++ b/ChangeLog	Tue Jul 20 13:50:16 2010 -0400
@@ -1,3 +1,10 @@
+2010-07-20  Omair Majid  <omajid@redhat.com>
+
+	PR icedtea/491
+	* plugin/icedteanp/IcedTeaNPPlugin.cc
+	(plugin_create_applet_tag): Accept and pass on
+	java_{code,codebase,archive} tags to the java side of the plugin.
+
 2010-07-19  Gary Benson  <gbenson@redhat.com>
 
 	PR icedtea/483
--- a/plugin/icedteanp/IcedTeaNPPlugin.cc	Thu May 13 15:53:35 2010 +0100
+++ b/plugin/icedteanp/IcedTeaNPPlugin.cc	Tue Jul 20 13:50:16 2010 -0400
@@ -1625,6 +1625,13 @@
           g_free (code);
           code = NULL;
     }
+      else if (!g_ascii_strcasecmp (argn[i], "java_code"))
+    {
+          gchar* java_code = g_strdup_printf ("JAVA_CODE=\"%s\" ", argv[i]);
+          applet_tag = g_strconcat (applet_tag, java_code, NULL);
+          g_free (java_code);
+          java_code = NULL;
+    }
       else if (!g_ascii_strcasecmp (argn[i], "codebase"))
     {
           gchar* codebase = g_strdup_printf ("CODEBASE=\"%s\" ", argv[i]);
@@ -1632,6 +1639,13 @@
           g_free (codebase);
           codebase = NULL;
     }
+      else if (!g_ascii_strcasecmp (argn[i], "java_codebase"))
+    {
+          gchar* java_codebase = g_strdup_printf ("JAVA_CODEBASE=\"%s\" ", argv[i]);
+          applet_tag = g_strconcat (applet_tag, java_codebase, NULL);
+          g_free (java_codebase);
+          java_codebase = NULL;
+    }
       else if (!g_ascii_strcasecmp (argn[i], "classid"))
     {
           gchar* classid = g_strdup_printf ("CLASSID=\"%s\" ", argv[i]);
@@ -1646,6 +1660,13 @@
           g_free (archive);
           archive = NULL;
     }
+      else if (!g_ascii_strcasecmp (argn[i], "java_archive"))
+    {
+          gchar* java_archive = g_strdup_printf ("JAVA_ARCHIVE=\"%s\" ", argv[i]);
+          applet_tag = g_strconcat (applet_tag, java_archive, NULL);
+          g_free (java_archive);
+          java_archive = NULL;
+    }
       else if (!g_ascii_strcasecmp (argn[i], "width"))
     {
           gchar* width = g_strdup_printf ("width=\"%s\" ", argv[i]);