You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Leszek Gawron <ou...@vip.net.pl> on 2003/04/09 13:26:33 UTC

Contributing to cocoon

Hello, 

Could anyone provide me with a description how to prepare a development
environment that would support contributing to cocoon. I tried to look into
nested action sets but really have no idea how I could develop anything. Some
months ago there was a special build target called "webapp-local" that did not
pack anything to jars so changes could be applied quite easily. Now do I
really have to rebuild whole cocoon even after small change? 

Is it possible to build and run cocoon under eclipse? I haven't tried it myself 
but I read a lot of posts here that there are problems with it.

	ouzo
-- 
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/      ouzo@vip.net.pl          _\\()//_
         .'/()\'.     Phone: +48(600)341118     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


Re: Contributing to cocoon

Posted by Sylvain Wallez <sy...@anyware-tech.com>.
Leszek Gawron wrote:

>On śro, kwi 09, 2003 at 01:57:47 +0200, Bertrand Delacretaz wrote:
>  
>
>>Le Mercredi, 9 avr 2003, ? 13:26 Europe/Zurich, Leszek Gawron a écrit :
>>
>>    
>>
>>>Could anyone provide me with a description how to prepare a development
>>>environment that would support contributing to cocoon....
>>>      
>>>
>>The bare minimum is a JDK (1.3.1 or later) and a CVS client.
>>
>>http://wiki.cocoondev.org/Wiki.jsp?page=WhereToGet21Dev contains 
>>up-to-date info about how to get the latest source code.
>>    
>>
>I am a cocoon user about 10 months now so I quite know how to get the snashot
>and build it. Lately I got stuck into some problems I wanted to solve myself
>and send a patch but the problem is that developing with current lifecycle
>would be a nightmare
>
>1. build cocoon
>2. debug component
>3. find a problem
>4. edit source code
>5. rebuild whole cocoon
>6. restart container or at least a webapp
>
>I am used to do little changes and a lot of testing. Using this approach it
>would take days to implement anything. Therefore I remember seeing something
>like "webapp-local" that compiled cocoon to .class files with no jar packaging
>which would speed up cocoon rebuilding a lot.
>

In 2.1, it's now called "build webapp", and the result of this build is 
used by "cocoon servlet".

To speed up build time, you may want to create a 
"local.build.properties" files containing the following :
exclude.javadocs=true
exclude.idldocs=true

>The second thing would be to be able to both edit and BUILD cocoon under
>eclipse. If that could be done cocoon could be develped as easily as a
>standard application under ie. VC++
>

I personally use Eclipse to edit and compile, but I build from the 
command line. To set up the Eclipse project, you have to run "build 
eclipse-project".

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



Re: Contributing to cocoon

Posted by Bertrand Delacretaz <bd...@codeconsult.ch>.
Le Mercredi, 9 avr 2003, à 14:05 Europe/Zurich, Leszek Gawron a écrit :

> ...I am used to do little changes and a lot of testing. Using this 
> approach it
> would take days to implement anything.

The new build is much faster than it was, and you can disable blocks 
that you don't need to optimize your build cycle time, this make a big 
difference if you're just working on a particular block.

Also, restarting using the cocoon.sh script is *much* faster than it 
was, helps a lot as well.

You might also want to use "cocoon.sh servlet-debug" which turns on 
remote debugging and should allow you to use the Eclipse debugger in 
remote mode (haven't tested it myself yet though).

> Therefore I remember seeing something
> like "webapp-local" that compiled cocoon to .class files with no jar 
> packaging
> which would speed up cocoon rebuilding a lot.

It's not in the build anymore, I don't know if there's an alternative.

>>
>> ...(I hope I'm not being too obvious here, don't know where you're
>> starting from ;-)
> a little further than you assumed :)

Good ;-)

-Bertrand


Re: Contributing to cocoon

Posted by Leszek Gawron <ou...@vip.net.pl>.
On śro, kwi 09, 2003 at 01:57:47 +0200, Bertrand Delacretaz wrote:
> Le Mercredi, 9 avr 2003, ? 13:26 Europe/Zurich, Leszek Gawron a écrit :
> 
> >Could anyone provide me with a description how to prepare a development
> >environment that would support contributing to cocoon....
> 
> The bare minimum is a JDK (1.3.1 or later) and a CVS client.
> 
> http://wiki.cocoondev.org/Wiki.jsp?page=WhereToGet21Dev contains 
> up-to-date info about how to get the latest source code.
I am a cocoon user about 10 months now so I quite know how to get the snashot
and build it. Lately I got stuck into some problems I wanted to solve myself
and send a patch but the problem is that developing with current lifecycle
would be a nightmare

1. build cocoon
2. debug component
3. find a problem
4. edit source code
5. rebuild whole cocoon
6. restart container or at least a webapp

I am used to do little changes and a lot of testing. Using this approach it
would take days to implement anything. Therefore I remember seeing something
like "webapp-local" that compiled cocoon to .class files with no jar packaging
which would speed up cocoon rebuilding a lot.

The second thing would be to be able to both edit and BUILD cocoon under
eclipse. If that could be done cocoon could be develped as easily as a
standard application under ie. VC++

> 
> >...Is it possible to build and run cocoon under eclipse? I haven't 
> >tried it myself
> >but I read a lot of posts here that there are problems with it.
> 
> Haven't tried it myself, but you can always use Eclipse or any IDE to 
> edit the code and switch to the command-line for compiling and running.
> If you search "eclipse" on the wiki there is some info.
> 
> (I hope I'm not being too obvious here, don't know where you're 
> starting from ;-)
a little further than you assumed :)
	ouzo

-- 
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/      ouzo@vip.net.pl          _\\()//_
         .'/()\'.     Phone: +48(600)341118     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


Re: Contributing to cocoon

Posted by Bertrand Delacretaz <bd...@codeconsult.ch>.
Le Mercredi, 9 avr 2003, à 13:26 Europe/Zurich, Leszek Gawron a écrit :

> Could anyone provide me with a description how to prepare a development
> environment that would support contributing to cocoon....

The bare minimum is a JDK (1.3.1 or later) and a CVS client.

http://wiki.cocoondev.org/Wiki.jsp?page=WhereToGet21Dev contains 
up-to-date info about how to get the latest source code.

> ...Is it possible to build and run cocoon under eclipse? I haven't 
> tried it myself
> but I read a lot of posts here that there are problems with it.

Haven't tried it myself, but you can always use Eclipse or any IDE to 
edit the code and switch to the command-line for compiling and running.
If you search "eclipse" on the wiki there is some info.

(I hope I'm not being too obvious here, don't know where you're 
starting from ;-)

-Bertrand