offlineAllowed and allPermissions don't have any effect
-------------------------------------------------------
Key: MWEBSTART-151
URL: http://jira.codehaus.org/browse/MWEBSTART-151
Project: Maven 2.x Webstart Plugin
Issue Type: Bug
Affects Versions: 1.0-beta-1
Reporter: Sven Meier
There's no way currently to control JNLPs offlineAllowed and allPermissions
reliably. The default JNLP template checks existance of these settings:
#if($offlineAllowed)
<offline-allowed/>
#end
#if($allPermissions)
<security>
<all-permissions/>
</security>
#end
But AbstractJnlpMojo returns Strings "false" or "true" which are not
interpreted as false/true by Velocity:
public String getOfflineAllowed()
{
if ( jnlp.getOfflineAllowed() != null )
{
return jnlp.getOfflineAllowed();
}
return "false";
}
public String getAllPermissions()
{
if ( jnlp.getAllPermissions() != null )
{
return jnlp.getAllPermissions();
}
return "true";
}
Currently I have to use a custom template to circumvent this bug.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email