[
https://jira.codehaus.org/browse/MWEBSTART-151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=278988#comment-278988
]
Tony Chemit commented on MWEBSTART-151:
---------------------------------------
there is 2 bugs for me :
- the one you gave (so now in the velocity context we inject the very boolean
value so default template works fine).
- the allPermissions parameter in velocity context was bind on jnlp.spec value
(so was not working at all)
Note that the default value for offlineAllowed is false and for allPermissions
is true.
> offlineAllowed and allPermissions don't have any effect
> -------------------------------------------------------
>
> Key: MWEBSTART-151
> URL: https://jira.codehaus.org/browse/MWEBSTART-151
> Project: Maven 2.x Webstart Plugin
> Issue Type: Bug
> Affects Versions: 1.0-beta-1
> Reporter: Sven Meier
> Assignee: Tony Chemit
>
> 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.
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