Daniele Madama wrote:
Daniele Madama wrote:

* Gianugo Rabellino:



I think  so, Cocoon  2.1 is  here to stay  for a  while. FWIW, a
colleague of mine  (Daniele Madama) wrote a small  GUI to manage
blocks selection  (think make xconfig for  the linux kernel). If
you  deem  it useful,  my  take  is  Daniele  would be  glad  to
contribute it.

On FreeBSD, there is a Cocoon  installer that has such a GUI.  See
attached screenshot.  This is based on a BSD Makefile.

My installer is similar to this, but it is written in SWING. It has a
selection of blocks (read and pre-selected from
[local.]blocks.properties)
with their description (read from gump.xml) and it will have a selection
from principal build.properties (like samples, javadoc, and more).

I hope to have time to finish some feature and donate it, if you want
and
if you think that it was useful. ;)

Since the scope of the work required of the AntInstaller and yours isn't
that different, I'd be interested to see yours.


Thanks for your interest, I really hope this small application might serve
the needs of the cocoon community.

If you think the application might suit your needs, I'll gladly post the
source to bugzilla. To try it out:

http://www.pronetics.it/transfer/cbuilder-0.1-idea.jar

For execute:
1) put the jar in $COCOON_HOME
2) backup your local.blocks.properties ;)
3) java -jar cbuilder-0.1-idea.jar

this work only on BRANCH_2_1_X version, if you have an older version,
execute it with 'java -cp lib/endorsed/x*.jar
org.apache.cocoon.builder.CocoonBuilder'.

I'm waiting for your hints or opinion.

Idea is simple, but works. I like the fact that it respects the dependency information. That will ease people's lives a lot. My Ant based installer didn't do that.

Here's a few thoughts:

 1. Could you show the dependency information in the right hand pane? It
    isn't always clear as to why a block's tick is grayed out.
 2. Could you add a page/tab for the basic options in build.properties?
 3. Could you add a pane that actually invokes Ant? If you could do
    that, and added a 'welcome' pane, you'd have written a full
    installer, which would be excellent. All it would need to do is set
    stdout to an output stream that gets written to a list box or text
    box, and has a cancel button.
 4. Could you make it use a more modern UI style?

I like the idea of what we have here. I'd be all for adding it to the Cocoon 2.1.X codebase.

What do others think?

Regards, Upayavira

P.S. My (Unix) command to invoke it was:

java -cp lib/endorsed/xalan-2.6.1-dev-20041008T0304.jar:lib/endorsed/xml-apis.jar:lib/endorsed/xercesImpl-2.7.1.jar:cbuilder-0.1-idea.jar org.apache.cocoon.builder.CocoonBuilder

Windows would be: java -cp lib/endorsed/xalan-2.6.1-dev-20041008T0304.jar;lib/endorsed/xml-apis.jar;lib/endorsed/xercesImpl-2.7.1.jar;cbuilder-0.1-idea.jar org.apache.cocoon.builder.CocoonBuilder

Reply via email to