[ 
http://jira.codehaus.org/browse/MOJO-943?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_112405
 ] 

Oleksandr Maksymchuk commented on MOJO-943:
-------------------------------------------

> 6) Processing the javaApplicationStub as a template
> Hmm.. It's not clear to me what the purpose of this template is. Is there 
> something you can't do in the main method?
Unfortunately I can't use standard native stub so I add custom bash script and 
path all variables to it that is where template is used.

The details of the problem if you interested are that when running with native 
stub my swt application has some graphical issues displaying image on 
background - it shows blank square on left top of the window. Not sure what can 
cause this, but running from command line works great.

Does it have sense to have such processing? Of course it's kind of exceptional 
issue. But what if one doesn't want to have binary executable and just a 
template which will work for them better?


> 3) Adding custom webapp resources.
> While I'm not sure I fully understand why you would want to do this, I've 
> been thinking about creating a more general way of specifying project 
> resources to add to the bundle. Perhaps you could expand a bit on why you 
> need to add webapp resources and how this is supposed to be used? 

I also thought whether to creates something general to attach additional 
resources, it could be any properties, images etc. In my example I have native 
libraries to attach (swt).
Do you have some plans when this can be implemented? Can I help with this?

> Wouldn't it be simpler just to add the war as a dependency and have a 
> separate project for generating the bundle? Then you can include the war as a 
> dependency and it will be added as a normal dependency. That's how I do it 
> anyway. I'm not too keen on adding special behavior checks for war projects.

Didn't tried this way... but if I attache the whole war and jar file with which 
will run this war it will delay application startup. But anyway thanks for this 
idea, I may try it when general resources will be implemented.


> Web applications and flexible relsources dependencies support with internet 
> enabling.
> -------------------------------------------------------------------------------------
>
>                 Key: MOJO-943
>                 URL: http://jira.codehaus.org/browse/MOJO-943
>             Project: Mojo
>          Issue Type: Improvement
>          Components: osxappbundle
>            Reporter: Oleksandr Maksymchuk
>            Assignee: Eirik Bjørsnøs
>         Attachments: osxappbundle-maven-plugin.patch
>
>
> I've used plugin you contributed to mojo and modified it greatly to be
> more flexible to package my web application having different structure
> from simple jar applications.
> Generealy I had issues running it and some confusion with version in
> svn and sources in repo, so I needed to change:
> -     * @component
> role="org.codehaus.plexus.velocity.VelocityComponent"
> role-hint="default"
> +        * @component role="org.codehaus.plexus.velocity.VelocityComponent"
>      * @readonly
>      */
>     private VelocityComponent velocity;
> +       // role-hint="default"
> Don't now how role-hint="default" is in effect but it were erroring
> when running maven with this plugin.
> Also I there were issue (which might be related) that velocity
> component looked at the template and needed relative path from
> _current_ directory, not the project base one.
> Were discovered as I have multiproject pom.
> Also I added:
> +       /**
> +        * Internet enables dmg files after one is created.
> +        *
> +        * @parameter expression="${internetEnable}"
> +        */
> +       private boolean internetEnable;
> -    /**
> +       /**
> +        * Is this webapp project. Default is [EMAIL PROTECTED] true} if 
> project
> packaging is 'war' and [EMAIL PROTECTED] false} otherwise.
> +        *
> +        * @parameter expression="${isWebapp}"
> +        */
> +       private boolean isWebapp = false;// 
> project.getPackaging().equals("war");
> +
> +       /**
> +        * The location of the produced Zip file containing the bundle.
> +        *
> +        * @parameter
> expression="${project.build.directory}/${project.build.finalName}"
> +        */
> +       private File resourcesDirectory;
> +
> +       /**
> +        * Web application directory to copy resources to. Used when [EMAIL 
> PROTECTED]
> isWebapp} set to [EMAIL PROTECTED] true}.
> +        * Default 'webapp'.
> +        *
> +        * @parameter expression="${webappDirectory}"
> +        */
> +       private String webappDirectory = "webapp";
> +
> +       /**
> +        * The comma separated list of tokens to include in the bundle.
> +        * Default is '**'.
> +        *
> +        * @parameter expression="${includes}"
> +        */
> +       private String includes = "**";
> +
> +       /**
> +        * The comma separated list of tokens to exclude from the bundle.
> +        *
> +        * @parameter expression="${excludes}"
> +        */
> +       private String excludes;
> for flexability to create web application.
> And fixed issue with command line that needed to have some wait time
> to execute before proceeding with the next command (so actually dmg
> command worked only on small build projects).
> One minus/todo I needed to use and build file to copy dependencies...
> wich might could be handled by plugin itself, ant were a quick
> solution here to exclude some not needed libraries and resources from
> final war.
> Thanks for your work,
> Oleksandr Maksymchuk,
> OMax

-- 
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