[ 
http://jira.codehaus.org/browse/MWEBSTART-38?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevin Stembridge updated MWEBSTART-38:
--------------------------------------

    Attachment: MWEBSTART-38-1.patch

Attaching MWEBSTART-38-1.patch, which was run in the plugin directory.

This patch contains several new classes:
* JnlpDownloadServletMojo - The new mojo for use in webapp projects.
* AbstractJnlpMojoNew - This is the new top-level superclass for all 
Jnlp-generating Mojos. It is the parent class of the new Mojo and the existing 
AbstractJnlpMojo. The name is temporary, I suggest naming this class 
AbstractJnlpMojo and renaming the existing AbstractJnlpMojo to 
AbstractStandaloneJnlpMojo. 
* JarResource - Used as a config element that represents a jar file that must 
be included in the JNLP bundle, the generated JNLP file and the generated 
version.xml file.
* JnlpFile - Used as a config element that represents a JNLP file to be 
generated by the mojo. This is now required because it must be possible for 
multiple JNLP files to be included in a webapp.
* VersionXmlGenerator - Generates the version.xml file.
* Generator2 - A copy of the existing Generator class, but it does things 
slightly different because the new Mojo uses JarResources instead of project 
dependencies. Again, the name is temporary. I think the existing mojos should 
be refactored to use JarResources. Then we won't need 2 generator classes.

The patch doesn't contain any test cases or documentation. I'll get started on 
them but I don't want to document or test something that is going to change. So 
let me know if you're happy with the patch and what you want to change.


I'll get to work on some test cases 

> Create a new mojo for use within JnlpDownloadServlet webapp projects
> --------------------------------------------------------------------
>
>                 Key: MWEBSTART-38
>                 URL: http://jira.codehaus.org/browse/MWEBSTART-38
>             Project: Maven 2.x Webstart Plugin
>          Issue Type: New Feature
>    Affects Versions: 1.0-alpha-1
>         Environment: n/a
>            Reporter: Kevin Stembridge
>             Fix For: 1.0-alpha-2
>
>         Attachments: AbstractJnlpMojo2.java, Generator2.java, 
> JarResource.java, JnlpDownloadServletMojo.java, MWEBSTART-38-1.patch, 
> VersionXmlGenerator.java
>
>
> The plugin doesn't currently cater for jnlp projects that will be bundled in 
> a webapp and served up by the JnlpDownloadServlet.
> To be suitable for this type of project, the following features are required:
> - The mojo should be usable within a war project.
> - It won't produce its own artifact. The jars will be processed and stored in 
> a subdirectory of the exploded war target directory.
> - A version.xml file is optionally generated.
> - Enables multiple versions of an artifact to be included in the bundle. This 
> is to allow the JnlpDownloadServlet to provide jardiff updates to clients.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
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

Reply via email to