Thanks Andrés!

Best regards,

C.

2006/10/24, Andrés <[EMAIL PROTECTED]>:


El 24/10/2006 13:24, Chris Michiels escribió:

> Thanks Andrés,
>
> I've got everything working, and am now facing the velocity template
(being
> a total newbie at velocity). Care to share your template.vm :o) ?
>
> I used the one from the repo jars and it produced a launch.jnlp like :
>
> <?xml version="1.0" encoding="utf-8"?>
> <jnlp  codebase="$$codebase" href="$outputFile.name">
>  <resources>
>  </resources>
>  <application-desc main-class="${config.jnlp.mainClass}"/>
> </jnlp>

My VM generates a JSP, which generates the JNLP itself. Besides, it gets
the web URI of the JNLP from a parameter. So, it's a bit "special" and
I'm not very sure it's going to help you, but here it is (note the
"$dependencies", it's quite important to load all the dependencies jar's):


<%@ page contentType="application/x-java-jnlp-file" %><?xml
version="1.0" encoding="iso-8859-1"?>
<%
     String url = getServletContext().getInitParameter("Web/Url");
%>
<jnlp spec="1.0+"
       codebase="<%= url %>"
       href="<%= url %>/jnlp.jsp">

     <information>
         <title>XXX</title>
         <description>XXX</description>
         <description kind="tooltip">XXX</description>
         <vendor>XXX</vendor>
         <icon href="XXX" />
         <offline-allowed/>
     </information>

     <security>
         <all-permissions/>
     </security>

     <resources>
         <j2se version="1.4+" max-heap-size="128m" />

$dependencies
     </resources>

     <application-desc main-class="$mainClass" />
</jnlp>


Hope it helps,

Andrés



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Chris MICHIELS
Scire tuum nihil est, nisi te scire hoc sciat alter.

Reply via email to