# HG changeset patch # User Danesh Dadachanji # Date 1329923925 18000 # Node ID c9a253d0952b5baaf39c924e3fcce062dff5fd14 # Parent c959afd1eba7d540c996bf441274468316d1dcaf Add ability to check for use of jnlp_href outside of PluginBridge. diff -r c959afd1eba7 -r c9a253d0952b ChangeLog --- a/ChangeLog Mon Feb 13 11:35:49 2012 -0500 +++ b/ChangeLog Wed Feb 22 10:18:45 2012 -0500 @@ -1,3 +1,10 @@ +2012-02-22 Danesh Dadachanji + + Add ability to check for jnlp_href use outside of PluginBridge. + * netx/net/sourceforge/jnlp/PluginBridge.java + (PluginBridge): New boolean useJNLPHref is set if jnlp_href is used. + (useJNLPHref): New getter method, returns boolean useJNLPHref. + 2012-02-10 Danesh Dadachanji Fix path to NEW_LINE_IFS for when one builds outside of src directory. diff -r c959afd1eba7 -r c9a253d0952b netx/net/sourceforge/jnlp/PluginBridge.java --- a/netx/net/sourceforge/jnlp/PluginBridge.java Mon Feb 13 11:35:49 2012 -0500 +++ b/netx/net/sourceforge/jnlp/PluginBridge.java Wed Feb 22 10:18:45 2012 -0500 @@ -44,6 +44,7 @@ private boolean usePack; private boolean useVersion; private boolean codeBaseLookup; + private boolean useJNLPHref; public PluginBridge(URL codebase, URL documentBase, String jar, String main, int width, int height, Hashtable atts, @@ -56,6 +57,7 @@ this.atts = atts; if (atts.containsKey("jnlp_href")) { + useJNLPHref = true; try { URL jnlp = new URL(codeBase.toExternalForm() + atts.get("jnlp_href")); JNLPFile jnlpFile = new JNLPFile(jnlp, null, false, JNLPRuntime.getDefaultUpdatePolicy(), this.codeBase); @@ -80,6 +82,7 @@ } else { // Should we populate this list with applet attribute tags? info = new ArrayList(); + useJNLPHref = false; } // also, see if cache_archive is specified @@ -172,6 +175,10 @@ return codeBaseLookup; } + public boolean useJNLPHref() { + return useJNLPHref; + } + /** * {@inheritdoc } */