On Fri, May 30, 2008 at 11:00 PM, Danilo Tuler <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using maven-webstart-plugin to generate a zip file with all
> dependencies and pack200 versions of each jar.
> On the server side I'm not using JnlpDownloadServlet. I'm using apache
> to handle pack200 delivery, as described in [1].

That sounds like an interesting feature.

> What I wanted is to generate each jar with the ".unpacked" extension,
> i.e. instead of xyz-1.0.0.jar and xyz-1.0.0.jar.pack.gz I would get
> xyz-1.0.0.jar.unpacked and xyz-1.0.0.jar.pack.gz. How can I do this?

By opening an issue in Jira and providing a patch (with an integration
test - I won't commit the code without one) :)
And please consider giving an example in the documentation (the link
you gave above is interesting).

If you want some tips on how to do it, read below.












It shouldn't be too hard to change the code itself. The simplest way I
think is to add an optional step in

execute() of the AbstractJnlpMojo (no point making this in
AbstractBaseJnlpMojo as we don't need it for the download servlet one

after
            signOrRenameJars();
            packJars();

you could add something like:

            if ( jarPrefix != null)
            {
             renameProcessedJars( jarPrefix );
            }

(find a better name for the variable)

And to implement renameProcessjars, you can reuse the
processedJarFileFilter in the parent class to identify those files
that need to be renamed.

Good luck !

Jerome

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to