On 4/12/07, Kevin Stembridge <[EMAIL PROTECTED]> wrote:
Hi all, Jerome, I remember reading somewhere on the plugin site that you plan on implementing the creation of a version.xml file
The only reference to it I made was: http://mojo.codehaus.org/webstart-maven-plugin-parent/webstart-maven-plugin/howto.html "in the future, it may also generate other files: version.xml, index.html,..."
. I'm going to be needing this soon so I'm happy to implement it.
Hope that you don't depend on it in a released version too soon. I want to stabilize the code more before releasing and that would require implementing integration tests (and am very busy right now...). See http://jira.codehaus.org/browse/MWEBSTART-21
I thought I'd check with you first to see if its something you've already started
Not started. Go ahead. Create an issue in Jira and start working on it. Then come with a patch for your issue with doc + tests + javadoc and the feature will come in faster :)
and if you had any ideas about the best way to do it?
The relevant 'spec' is this one: http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/downloadservletguide.html ------------------------------- In each directory, a version.xml file can be placed to describe the additional properties, such as a version-id, for files in that particular directory. This is an alternative to the file naming convention. For example, placing the file application-1_2-us.jar in a directory, along with a version.xml with the following content: <jnlp-versions> <resource> <pattern> <name>application.jar</name> <version-id>1.2</version-id> <locale>en_US</locale> <locale>en</locale> </pattern> <file>application-1_2-us.jar</file> </resource> </jnlp-versions> will be the same as having placed the file application__V1.2__Len_US__Len.jar in the directory. ------------------------------------ So for this to work i believe we need to do several things: - rename the jars to follow either Sun's conventions (no need for a version.xml) - or generate the version.xml and modify the jnlp file to not use the version number in the href - but still use it in the version attribute). (*) As for testing the feature, if you could come up with some integration tests that use the JnlpDownloadServlet (packaged under the webstart mojo), either running inside the container (i.e. you create a war) or by exercising the jnlp servlet directly. Hope that is enough. Feel free to ask again for help. Jerome (*) I don't get why the JnlpDownloadServlet spec couldn't just allow for the files to be named after their href in the JNLP spec but it seems like if we keep it as the webstart plugin works today, the servlet won't pick the files.... --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
