>> I don't know this plugin, but eclipse 3.3 JEE edition provide the WTP
>> plugin.
>>
>> This plugin had many features and allow to run also an embedded (in
>> eclipse) tomcat or an external server.
> Sounds good - I'll check that out
>>
>> I found a solution (not very elegant for the moment) for run lenya in
>> eclipse. I will write this in documentation this week... and ask some
>> another questions ! :)
> Are you able to get lenya to build inside eclipse? - as I am having some
> problems with that.

How I proceed :

1 - compile and run Lenya on our tomcat serveur

2 - open eclipse 3.3 JEE edition (a new version of eclipse now exist but I
don't test it)

3 - create a new Web dynamic project in eclipse : a create wizard appear

3.1 - Give a name to your project
3.2 - In "target runtime" click "New" : a new wizard appear. This wizard
will create an instance of tomcat in eclipse
3.2.1 - open the folder "Apache" an select Tomcat 5.5. Note : If you don't
have the tomcat's folder click on the link "Download additional server
adapter" and wait
3.2.2 - check "Also create new local server" (I do that, it should also
work if uncheked). Click next.
3.2.3 - Now you have to select your tomcat installation directory and clic
finish
3.3 - Now you can clic finish or next and next if you want...

4 - You new projet appear in the workbench... Now go on the file system

5 - copy the content of the folder tomcat/webapps/Lenya (on our tomcat
server) in eclipse-workspace/YourProject/WebContent

6 - copy the endorsed libraries required by lenya in the tomcat
installation directory used by eclipse

7 - Go on eclipse, clic on your project and type "F5" (or right clic -->
refresh)

8 - Now test the run : right clic on your project run as -> run on server
--> a wizard appear, clic finish

9 - wait... and your lenya is here !! 

In this case, lenya just run with the compiled libraries... We now compile
some of this libraries with eclipse : 

10 - go on the file system and copy the Lenya folder in
eclipse-workspace/YourProject/SOURCES/lenya (folder SOURCES in an example)

11 - For example you want to compile sources in news modules. The jar that
containing this sources is
WebContent/WEB-INF/lib/lenya-module-org.apache.lenya.modules.news-impl.jar.
Delete this jar or move it out of the eclipse project.

12 - go on eclipse --> right clic on your project --> build path -->
configure build path : Welcome wizard ! 
12.1 - in the panel "Source", select the default entry and clic on "Remove"
12.2 - clic on "Add folder" --> deploy SOURCES/Lenya/src/modules/news/java
; check "src" and clic "OK"
12.3 - on the bottom of the source panel clic on "Browse" in order to
define a new Default output folder
12.4 - Select the folder WebContent/WEB-INF/classes

13 - build your project and run Lenya


note :
* Don't try to compile cocoon sources with this procedure, some other
manipulations are needed.


It's clear ? It's work for you ?

regards


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to