Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Based on <a href="http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/downloadservletguide.html#requests" rel="nofollow">http://docs.oracle.com/javase/7/docs/technotes/guides/javaws/developersguide/downloadservletguide.html#requests</a> I think, that you are mixing two possible strategies for version based download. For any jar resource, you can use either filename convention, where you don't need a version.xml entry and your jnlp entry would read </p> <pre><code>&lt;jar href="AgeCalc.jar" version="1.0"/&gt; </code></pre> <p>and the servlet would automagically use AgeCalc__V1.0.jar.</p> <p>The other possible way would be to write</p> <pre><code>&lt;resource&gt; &lt;pattern&gt; &lt;name&gt;AgeCalc.jar&lt;/name&gt; &lt;version-id&gt;1.0&lt;/version-id&gt; &lt;/pattern&gt; &lt;file&gt;AgeCalc__V1.0.jar&lt;/file&gt; &lt;/resource&gt; </code></pre> <p>in your version.xml in combination with the changed jnlp from above. But since you are using the file name convention, I would suggest not using the version.xml at all.</p> <p>Maybe the DownloadServlet has problems when the href in the jnlp contains __V.</p> <p>But starting with Java 7 you don't even need the download servlet any more. Now the client can do the magic. All you have to do is add a system property jnlp.versionEnabled with value true to your jnlp. As long as the files on the server are in *__V${version}.jar form, <a href="http://docs.oracle.com/javase/tutorial/deployment/deploymentInDepth/avoidingUnnecessaryUpdateChecks.html" rel="nofollow">everything will work correctly</a>.</p> <p>But you can use <a href="http://github.com/tschulte/gradle-jnlp-plugin" rel="nofollow">my gradle plugin</a>, which will automatically create a correct webstart dir, ready to be packed for deployment.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload