Submitted JNLP patch to correct icon problems with non-png images

View: New views
1 Messages — Rating Filter:   Alert me  

Submitted JNLP patch to correct icon problems with non-png images

by Derek J. Witt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Good afternoon, all.

I have encountered a very serious bug with the JNLP ant script.
NetBeans 6.x allows you to select a JPG, GIF, or a PNG for use as the
application icon (the filename is assigned to ${app.icon}.

However, jnlp.xml makes a rather bad assumption that only PNG images
will be selected.  Problem being is that many developers may choose to
use JPG or a GIF for that icon. Jnlp.xml simply copies the icon image
and renames it with a .png extension with no regard to the image's
actual format. I have found this issue with NetBeans 6.0.1, 6.1, and 6.5
Beta.  JNLP 1.5 cannot read png files. It appears to refuse to load the
image solely based on the file extension. However, JNLP 1.6 is able to
read the badly named file with no problems.

Thus, I have created a .diff to correct this issue. This is the same
patch that I have attached to Issue #145446.

-- Derek W.