Desktop shortcut tag in the generated jnlp
niteesh19 opened this issue · 2 comments
niteesh19 commented
Is it possible to have the following structure in the JNLP generated by this plugin :
...
<information>
<title>My App</title>
<vendor>My Company</vendor>
<homepage href="http://example.com"/>
<description>My Description</description>
<description kind="short">desc short</description>
<icon href="splash.png" kind="splash"/>
<icon kind="shortcut" href="icon.png" />
<shortcut online="false" install="true">
<desktop/>
<menu submenu="My APP"/>
</shortcut>
</information>
...
Basically, the <shortcut>
tag is what I need for deploying a desktop shortcut of my app on the client machine.
Can someone please help me on this ?
tschulte commented
Yes, that is possible.
jnlp {
withXml {
information {
title "My App"
vendor "My Company"
homepage href: "http://example.com"
description "My Description"
description kind: "short", "desc short"
icon href: "splash.png", kind: "splash"
icon kind: "shortcut", href: "icon.png"
shortcut online: "false", install: "true", {
desktop()
menu submenu: "My APP"
}
}
}
}
or, with some parens
jnlp {
withXml {
information {
title("My App")
vendor("My Company")
homepage(href: "http://example.com")
description("My Description")
description(kind: "short", "desc short")
icon(href: "splash.png", kind: "splash")
icon(kind: "shortcut", href: "icon.png")
shortcut(online: "false", install: "true") {
desktop()
menu(submenu: "My APP")
}
}
}
}
decide by yourself, which style you like more.
niteesh19 commented
Wow, thanks for the solution.