You are viewing a plain text version of this content. The canonical link for it is here.
Posted to phoenix-dev@avalon.apache.org by Igor Fedorenko <if...@thinkdynamics.com> on 2002/08/15 01:19:36 UTC

configurable installer patch

Hi,

Attached is a patch that allows installation of applications from file 
structures other then packaged sar-file. Plus I've included _prototype_ 
of an installer that installs applications directly from Eclipse 
workspace. How to apply, install and test

1. Apply attached patch and rebuild phoenix
2. I assume that you are using eclipse 2.0 and your workspace is 
location is c:\temp\eclipse.workspace
3. Start eclipse, goto Window->Preferences->Java->Classpath_variables 
and add new variable PHONIX_HOME and point to your phoenix directory. It 
is used to locate phoenix libraries.
4. In eclipse, create two java projects phoenix-demo-app and 
phoenix-demo-blocks. Expand attached phoenix-demo.zip somewhere and 
inport projects from corresponding directories (i.e. phoenix-demo-app 
from zip:phoenix-demo-app and phoenix-demo-blocks from 
zip:phoenix-demo-blocks). It is important that both project were located 
inside eclipse workspace.
5. Copy attached eclipse-deployer.jar into $PHOENIX_HOME/bin/lib
6. Edit $PHOENIX_HOME/conf/kernel.xml, replace Installer with

  <component role="org.apache.avalon.phoenix.interfaces.Installer"
class="com.thinkdynamics.phoenix.components.installer.EclipseInstaller"
             logger="installer">
<eclipse-workspace>file:///c:/temp/eclipse.workspace/</eclipse-workspace>
         </component>
7. Start phoenix with
   run --application=c:\temp\eclipse.workspace\phoenix-demo-app

A word of disclaimer: eclipse-deployer.jar is a prototype so do not take 
it too seriously. It is neither robust, feature complete implementation 
nor an example of qaulity java code.

-- 
Igor Fedorenko
Think smart. Think automated. Think Dynamics.
www.thinkdynamics.com

Re: configurable installer patch

Posted by Paul Hammant <Pa...@yahoo.com>.
Igor,

> Attached is a patch that allows installation of applications from file 
> structures other then packaged sar-file. Plus I've included 
> _prototype_ of an installer that installs applications directly from 
> Eclipse workspace.
>
Excellent!

-ph


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: configurable installer patch

Posted by Peter Royal <pr...@apache.org>.
On Tuesday 27 August 2002 03:30 pm, Igor Fedorenko wrote:
> Are you still planning to commit configurable installer patched or plans
> have changed?

I got sick last week and I'm mostly better now and working through the backlog 
of things I have to do...
-pete

>
> Peter Royal wrote:
> > On Sunday 18 August 2002 05:05 pm, Peter Donald wrote:
> >>I would like to see this committed but don't run Eclipse (IDEA is soooo
> >>good) - so does any other committer use eclipse? If not I will try to
> >> have a play sometime this week.
> >
> > I'm a fellow IDEA junkie.. I downloaded Eclipse 2.0 but couldn't get it
> > going on my debian machine.
> >
> > I plan to test and commit the non-eclipse portions of the patch this
> > week. Once IDEA 3.0 comes out it I might make a plugin for it.
> > -pete

-- 
peter royal -> proyal@apache.org

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: configurable installer patch

Posted by Peter Donald <pe...@apache.org>.
On Tue, 20 Aug 2002 01:11, Igor Fedorenko wrote:
> Actually, I have another idea that is related to this configurable
> install stuff. Currently, Embedder is responsible for scanning apps/ dir
> and/or command line for applications to be deployed. Why do not we
> introduce a separate deployment scanner (the term borrowed from jboss)?
> It seems to fit nicely into your "Separation of Concerns" concept and
> provides some extra flexibility.

Great idea. Something we have been planning to do for ages. We even have a 
coponent in excalibur (jakarta-avalon-excalibur/monitor) that we planned to 
do it with. We never got around to actually doing it though. I would love to 
see it done though.

-- 
Cheers,

Peter Donald
"Artists can color the sky red because they know it's blue.  Those of us who
 aren't artists must color things the way they really are or people might 
 think we're stupid." -- Jules Feiffer 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: configurable installer patch

Posted by Igor Fedorenko <if...@thinkdynamics.com>.
Peter,

Are you still planning to commit configurable installer patched or plans 
have changed?

Peter Royal wrote:
> On Sunday 18 August 2002 05:05 pm, Peter Donald wrote:
> 
>>I would like to see this committed but don't run Eclipse (IDEA is soooo
>>good) - so does any other committer use eclipse? If not I will try to have
>>a play sometime this week.
> 
> 
> I'm a fellow IDEA junkie.. I downloaded Eclipse 2.0 but couldn't get it going 
> on my debian machine.
> 
> I plan to test and commit the non-eclipse portions of the patch this week. 
> Once IDEA 3.0 comes out it I might make a plugin for it.
> -pete
> 


-- 
Igor Fedorenko
Think smart. Think automated. Think Dynamics.
www.thinkdynamics.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: configurable installer patch

Posted by Peter Royal <pr...@apache.org>.
On Monday 19 August 2002 11:11 am, Igor Fedorenko wrote:
> > I plan to test and commit the non-eclipse portions of the patch this
> > week. Once IDEA 3.0 comes out it I might make a plugin for it.
>
> Eclipse is not an issue here and the patch (configurable-installer.diff)
> has nothing to do with it. In order to test the patch you could, for
> example, write ExpandedSarInstaller.

Right :)

There was an eclipse-related jar that you had attached to the msg with the 
non-eclipse-specific diff.

> Actually, I have another idea that is related to this configurable
> install stuff. Currently, Embedder is responsible for scanning apps/ dir
> and/or command line for applications to be deployed. Why do not we
> introduce a separate deployment scanner (the term borrowed from jboss)?
> It seems to fit nicely into your "Separation of Concerns" concept and
> provides some extra flexibility.

Good idea! Patches welcome! :)
-pete

-- 
peter royal -> proyal@apache.org

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: configurable installer patch

Posted by Igor Fedorenko <if...@thinkdynamics.com>.
Peter Royal wrote:
> On Sunday 18 August 2002 05:05 pm, Peter Donald wrote:
> 
>>I would like to see this committed but don't run Eclipse (IDEA is soooo
>>good) - so does any other committer use eclipse? If not I will try to have
>>a play sometime this week.
> 
> 
> I'm a fellow IDEA junkie.. I downloaded Eclipse 2.0 but couldn't get it going 
> on my debian machine.
> 
> I plan to test and commit the non-eclipse portions of the patch this week. 
> Once IDEA 3.0 comes out it I might make a plugin for it.

Eclipse is not an issue here and the patch (configurable-installer.diff) 
has nothing to do with it. In order to test the patch you could, for 
example, write ExpandedSarInstaller.

Actually, I have another idea that is related to this configurable 
install stuff. Currently, Embedder is responsible for scanning apps/ dir 
and/or command line for applications to be deployed. Why do not we 
introduce a separate deployment scanner (the term borrowed from jboss)? 
It seems to fit nicely into your "Separation of Concerns" concept and 
provides some extra flexibility.

-- 
Igor Fedorenko
Think smart. Think automated. Think Dynamics.
www.thinkdynamics.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: configurable installer patch

Posted by Peter Royal <pr...@apache.org>.
On Sunday 18 August 2002 05:05 pm, Peter Donald wrote:
> I would like to see this committed but don't run Eclipse (IDEA is soooo
> good) - so does any other committer use eclipse? If not I will try to have
> a play sometime this week.

I'm a fellow IDEA junkie.. I downloaded Eclipse 2.0 but couldn't get it going 
on my debian machine.

I plan to test and commit the non-eclipse portions of the patch this week. 
Once IDEA 3.0 comes out it I might make a plugin for it.
-pete

-- 
peter royal -> proyal@apache.org

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: configurable installer patch

Posted by Peter Donald <pe...@apache.org>.
I would like to see this committed but don't run Eclipse (IDEA is soooo good) 
- so does any other committer use eclipse? If not I will try to have a play 
sometime this week.

On Thu, 15 Aug 2002 09:19, Igor Fedorenko wrote:
> Hi,
>
> Attached is a patch that allows installation of applications from file
> structures other then packaged sar-file. Plus I've included _prototype_
> of an installer that installs applications directly from Eclipse
> workspace. How to apply, install and test
>
> 1. Apply attached patch and rebuild phoenix
> 2. I assume that you are using eclipse 2.0 and your workspace is
> location is c:\temp\eclipse.workspace
> 3. Start eclipse, goto Window->Preferences->Java->Classpath_variables
> and add new variable PHONIX_HOME and point to your phoenix directory. It
> is used to locate phoenix libraries.
> 4. In eclipse, create two java projects phoenix-demo-app and
> phoenix-demo-blocks. Expand attached phoenix-demo.zip somewhere and
> inport projects from corresponding directories (i.e. phoenix-demo-app
> from zip:phoenix-demo-app and phoenix-demo-blocks from
> zip:phoenix-demo-blocks). It is important that both project were located
> inside eclipse workspace.
> 5. Copy attached eclipse-deployer.jar into $PHOENIX_HOME/bin/lib
> 6. Edit $PHOENIX_HOME/conf/kernel.xml, replace Installer with
>
>   <component role="org.apache.avalon.phoenix.interfaces.Installer"
> class="com.thinkdynamics.phoenix.components.installer.EclipseInstaller"
>              logger="installer">
> <eclipse-workspace>file:///c:/temp/eclipse.workspace/</eclipse-workspace>
>          </component>
> 7. Start phoenix with
>    run --application=c:\temp\eclipse.workspace\phoenix-demo-app
>
> A word of disclaimer: eclipse-deployer.jar is a prototype so do not take
> it too seriously. It is neither robust, feature complete implementation
> nor an example of qaulity java code.

-- 
Cheers,

Peter Donald
*------------------------------------------------*
| The student who is never required to do what   |
|  he cannot do never does what he can do.       |
|                       - John Stuart Mill       |
*------------------------------------------------*


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>