You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mick Knutson <mi...@hotmail.com> on 2005/12/22 02:06:04 UTC

[m2] where to put common javescript and ui tools

I have common JavaScript tools, images and other common elements/resources that I want to reuse in various projects. How should I store this in m2?



--------------------------------------------------------------------------------
Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: mickknutson@hotmail.com
--------------------------------------------------------------------------------

Re: [m2] where to put common javescript and ui tools

Posted by Grégory Joseph <jo...@gmail.com>.
> > > You can package them in a jar, then you define a listener which can read
> > > the
> > > JavaScript , images from the jar and write them into a Dir  when the web
> > > server is starting.

Seems pretty much out of topic here, but you could also very well
write a servlet or filter which is gonna read those from the jar, as
classpath resources and spit them out back to the browser.

g

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] where to put common javescript and ui tools

Posted by chang wei <ch...@gmail.com>.
Here is an example:  org/ditchnet/
jsp/taglib/tabs/listener/TabServletContextListener

在05-12-22,Mick Knutson <mi...@hotmail.com> 写道:
>
> Do you have an example listener please?
>
> ------------------------------------------------------------
> --------------------
> Thanks
> Mick Knutson
>
> http://www.BASELogic.com
> http://www.MickKnutson.com
>
> MSN Messenger: mickknutson@hotmail.com
> ------------------------------------------------------------
> --------------------
>
> ----- Original Message -----
> From: "chang wei" <ch...@gmail.com>
> To: "Maven Users List" <us...@maven.apache.org>; "Mick Knutson"
> <mi...@hotmail.com>
> Sent: Wednesday, December 21, 2005 5:43 PM
> Subject: Re: [m2] where to put common javescript and ui tools
>
>
> > You can package them in a jar, then you define a listener which can read
> > the
> > JavaScript , images from the jar and write them into a Dir  when the web
> > server is starting.
> >
> > 2005/12/22, Mick Knutson <mi...@hotmail.com>:
> >>
> >> I have common JavaScript tools, images and other common
> >> elements/resources
> >> that I want to reuse in various projects. How should I store this in
> m2?
> >>
> >>
> >>
> >> ------------------------------------------------------------
> >> --------------------
> >> Thanks
> >> Mick Knutson
> >>
> >> http://www.BASELogic.com
> >> http://www.MickKnutson.com
> >>
> >> MSN Messenger: mickknutson@hotmail.com
> >> ------------------------------------------------------------
> >> --------------------
> >>
> >>
> >
> >
> > --
> > Will Chang( 常 伟 )
> > changwei007@gmail.com
> > standino@msn.com
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
Will Chang( 常 伟 )
changwei007@gmail.com
standino@msn.com

Re: [m2] where to put common javescript and ui tools

Posted by Mick Knutson <mi...@hotmail.com>.
Do you have an example listener please?

--------------------------------------------------------------------------------
Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: mickknutson@hotmail.com
--------------------------------------------------------------------------------

----- Original Message ----- 
From: "chang wei" <ch...@gmail.com>
To: "Maven Users List" <us...@maven.apache.org>; "Mick Knutson" 
<mi...@hotmail.com>
Sent: Wednesday, December 21, 2005 5:43 PM
Subject: Re: [m2] where to put common javescript and ui tools


> You can package them in a jar, then you define a listener which can read 
> the
> JavaScript , images from the jar and write them into a Dir  when the web
> server is starting.
>
> 2005/12/22, Mick Knutson <mi...@hotmail.com>:
>>
>> I have common JavaScript tools, images and other common 
>> elements/resources
>> that I want to reuse in various projects. How should I store this in m2?
>>
>>
>>
>> ------------------------------------------------------------
>> --------------------
>> Thanks
>> Mick Knutson
>>
>> http://www.BASELogic.com
>> http://www.MickKnutson.com
>>
>> MSN Messenger: mickknutson@hotmail.com
>> ------------------------------------------------------------
>> --------------------
>>
>>
>
>
> --
> Will Chang( 常 伟 )
> changwei007@gmail.com
> standino@msn.com
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] where to put common javescript and ui tools

Posted by chang wei <ch...@gmail.com>.
You can package them in a jar, then you define a listener which can read the
JavaScript , images from the jar and write them into a Dir  when the web
server is starting.

2005/12/22, Mick Knutson <mi...@hotmail.com>:
>
> I have common JavaScript tools, images and other common elements/resources
> that I want to reuse in various projects. How should I store this in m2?
>
>
>
> ------------------------------------------------------------
> --------------------
> Thanks
> Mick Knutson
>
> http://www.BASELogic.com
> http://www.MickKnutson.com
>
> MSN Messenger: mickknutson@hotmail.com
> ------------------------------------------------------------
> --------------------
>
>


--
Will Chang( 常 伟 )
changwei007@gmail.com
standino@msn.com

RE : [m2] where to put common javescript and ui tools

Posted by Olivier Lamy <ol...@accor.com>.
Hi,
I have provided a patch [1] which implements a zip packaging and made
some improve on the war plugin.
My use case was the following : I need to separate the html content (in
production it's deployed in a http server) from the war content (in
production it's deployed in a appserver).
In developpemnent phase, I need to deploy the the two in the same app
server (because I don't want to install all servers in my pachine).
With the proposed patch you can :
- made an artifact (zip packaging) which contains all
html/javascripts/images contents. As it's an artifact, you can share it
with others.
- include/unzip this artifact to the webapp directory in the war plugin.

As I don't have response concerning this, I have made my own company war
packaging/plugin to use it.

Try the patch (which include a simple use case) and push a comment or a
vote.

HTH,

- Olivier


[1] http://jira.codehaus.org/browse/MNG-1683

-----Message d'origine-----
De : Mick Knutson [mailto:mickknutson@hotmail.com] 
Envoyé : jeudi 22 décembre 2005 02:06
À : Maven Users List
Objet : [m2] where to put common javescript and ui tools


I have common JavaScript tools, images and other common
elements/resources that I want to reuse in various projects. How should
I store this in m2?



------------------------------------------------------------------------
--------
Thanks
Mick Knutson

http://www.BASELogic.com
http://www.MickKnutson.com

MSN Messenger: mickknutson@hotmail.com
------------------------------------------------------------------------
--------



This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
--------------------------------------------------------------------------------------------------------------
Ce message électronique et tous les fichiers joints ainsi que  les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites.
-------------------------------------------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org