You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Ross Gardler <rg...@apache.org> on 2005/06/27 13:35:25 UTC

Welcome Anil Ramnanan - Google Summer of Code Awardee

As most people here will know Google are running a "Summer of Code" 
programme - see code.Google.com. The idea is that Google pay a 410 
students to work on an Open Source project over the summer. The OS 
project must provide a mentor to help the student find their feet 
quickly and to support the student through the project.

Apache received over 870 projects and were given 38 awards by Google. 
These students applications have been reviewed by Apache and the 38 
students have been selected.

Apache Forrest received 11 proposals. These were of varying standard, 
from a simple cut and paste of the project outline that I wrote, through 
to three particularly exceptional proposals (two for a project I had 
outlined, one for a project created by the student). Unfortunately 
Apache Forrest was only able to accept one of the 38 awards made 
available to the ASF. I am contacting the other the best of the other 
applicants to try and find a way of getting them involved, we need 
people like them on our team.

So, I would like to welcome Anil Ramnanan to the Apache Forrest community.

Anil proposed a project to extend the Forrest Eclipse plugin (full 
details copied below). Anil created the original code for the plugin and 
donated it to Apache in July 2004 whilst he was employed on a short term 
contract. However, he has not been active within the Apache Forrest 
project directly. It is my hope that his involvement through the Google 
Summer of Code program will result in him becoming committed to the 
Forrest project on a more permanent basis. He has expressed an interest 
in this development as he uses Forrest within his own work.

For the dev community as a whole this has no real impact. Anil is to be 
treated like any other developer, the only real difference I have a 
responsibillity to assist in him learning the "Apache Way". All design 
discussion will be carried out in the normal way and patches will be 
submitted via our issue tracker (others are welcome to review/commit 
them, however, this is one of my responibilities as the mentor).

So, Apache Forrest, please welcome, Anil Ramnanan whose project proposal 
is provided below.

Ross

Project Description
===================

Apache Forrest is a flexible and powerful publishing framework. It has 
the ability to transform multiple formats into a unifying framework and 
is also able to publish in multiple formats. It has the ability to 
generate both static documents as well as dynamic sites. This publishing 
framework can be used alone or can be integrated into other products. 
The Eclipse Platform is an open extensible IDE which can be used to 
develop cross platform software applications as well as software 
development tools. At the core of Eclipse is it's powerful Plugin 
Development Environment (PDE) which allows developers to add a wide 
variety of functionality to the eclipse platform. Eclipse Plugins exist 
for a number of Apache projects including ANT, Maven, Tomcat and 
Forrest. This allows Eclipse to integrate tightly with these projects.


Problem Definition
==================

The Forrest Plugin is a new and still under development. It allows 
limited integration of Apache Forrest into the Eclipse environment. 
Currently, its functionality is limited to the viewing of a Forrest 
Project as a webapp and the building of a static Forrest site. While 
this functionality is useful, it is limited and does not allow the 
Eclipse application to take advantage of the full range of Forrest’s 
features.


Proposed Solution
==================
The purpose of this proposal is to develop the Apache Forrest plugin for 
Eclipse into a more functional plugin allowing more of the features of 
Forrest to become available within the Eclipse IDE. This will involve 
the development of a number of Wizards, Editors and other enhancements 
that would allow for greater integration of Forrest and Eclipse. I have 
worked with my mentor for this project to ensure that the work involved 
in the creation of these wizards and editors can be done within the time 
frame of the project. Eclipse provides a number of code generation tools 
such as the Eclipse Modeling Framework to help
with the development of these components. Most of the editors are custom 
XML editors which will be generated by the Eclipse Modeling Framework 
and customised to this particular task.


The proposed enhancements to the current Forrest Plugin are:

WIZARDS
-------

Wizards are commonly used in Eclipse to automate a variety of tasks. For 
example, Forrest requires a number of different files to be created when 
a project is created to manage it's skins, project structure and 
application configuration. This is usually done by editing template 
files which is not always an easy or elegant solution. The proposed 
wizards will help with tasks such as these.

The proposed wizards are:

Include from remote repository Wizard
-------------------------------------

This wizard will allow you to include a file from a remote repository. 
This functionality will be useful as part of the proposed Apache Wide 
documentation system incorporating Apache Cocoon (application 
framework), Apache Lenya (CMS) and Apache Forrest (publication).


New Site Wizard
---------------

This wizard will allow a new Forrest site to be seeded from within 
Eclipse and the automatic configuration of the configuration files for 
that site.



Add new Forrest Plugin Wizard
-----------------------------

Apache Forrest has it's own flexible plugin architecture to extend its 
functionality. This wizard will assist the user in managing the 
installed Forrest plugins.

Add new Views wizard
-------------------
Apache Forrest plans to replace it's current skinning system with a new 
system called 'views' in the Forrest 0.8 release. This wizard will allow 
you to import new views into Forrest projects.


EDITORS
-------
Forrest Properties Editor:
This editor will allow you to edit the forrest.properties file. The 
forrest.properties files contains configuration options that control how 
the Forrest applications runs. This will be a standard Java properties 
editor.

Site Editor:
This editor will allow you to easily edit the site.xml file:
The site.xml configuration file is used to define a site's menu. This 
will be customised XML editor using the Eclipse EMF framework.

Tabs Editor:
This editor will allow you to edit the Tabs.xml file: This file is used 
to define the tabs on a site. This will be customised XML editor using 
the Eclipse
EMF framework.

Locationmap editor:
This editor will allow you to edit the locationmap.xml file. This will 
be customised XML editor using the Eclipse

Skinconf Editor:
This editor will allow you to edit the Skinconf.xml file. This file is 
used to define the layout of the site. This will be customised XML 
editor using the Eclipse


Supporting Tools
-----------------

Support for Multiple webapps
---------------------------
This will allow you to run multiple webapps within Eclipse. This lets 
you view multiple lives Forrest sites within one environment.

Repository Browser
------------------
This will allow you to browse a remote repository and include the 
documents into a Forrest site. This browser will focus only on Apache 
Lenya at this point since this is the Content Management System most 
likely to become part of a proposed Apache wide documentation system. 
However, the framework will be flexible so that it can support other 
browsers e.g. for Webdav, svn, Apache Slide etc

Add WAR file builder to Forrest Menu.
-------------------------------------
Currently Forrest can start/stop a test server and build a static site. 
Functionality such as generating a WAR file to run a Forrest site 
dynamically can be added. Forrest already has the ability to Generate 
WAR files but this functionality is not available from within the 
Forrest Plugin


Advantage to the Apache Forrest Project and the Wider Community
===============================================================


Many developers use Eclipse as their IDE therefore this plugin will 
allow those users to develop documentation sites within their usual 
tool. Also, many Apache Projects use Forrest to generate documentation 
and use Eclipse as their IDE.

Forrest is a very powerful, but very complex publication framework. This 
plugins wizards will considerably lower the barrier to entry for new 
users whilst enabling power uses to leverage the advanced features of 
Forrest through the extensive range of file editors.

Since this plugin will make Apache Forrest more accessible to new users 
it will help strengthen the Apache brand. In particular, the close 
integration of Apache Forrest with Eclipse will bring this excellent 
publication framework to the attention of a large number of developers.

Developers have already begun integrating Forrest functionality within 
the Eclipse IDE of their application using the existing plugin. An 
example of a project that would have immediate benefit from these 
enhancements is the Burrokeet project (http://www.burrokeet.org) which 
uses Forrest as its publication engine. The enhancements to the Eclipse 
Plugin will bring immediate benefits to such a project.



Milestones and Deadlines
========================
July 6 - Editors of Site, Tabs, Locationmap and Skinconf
July 20 - Forrest.properties Editor and Add WAR file builder
August 3 - Wizards for New Site, Add Forrest Plugin and Add Views.
August 17 - Support of Multiple Web Apps
August 27 - Repository Browser and Include from Repository Wizard
August - Project Completed


Re: Requesting Comments on Eclipse Plugin Deliverables

Posted by Ross Gardler <rg...@apache.org>.
Anil Ramnanan wrote:
> Here are the current deliverables that I intend to produce for the 
> Summer of code project and the order in which I intend to do them. I was 
> wondering if there were any comments from the community on them. The 
> entire project proposal with details on each of the deliverables was 
> posted in Ross's welcome message earlier.

In particular, do we see any of these deliverables as being particularly 
important. We are able to move things around in the schedule to ensure 
the most important are done first.

> 
> July 6 - Editors of Site, Tabs, Locationmap and Skinconf
> July 20 - Forrest.properties Editor and Add WAR file builder
> August 3 - Wizards for New Site, Add Forrest Plugin and Add Views.
> August 17 - Support of Multiple Web Apps
> August 27 - Repository Browser and Include from Repository Wizard
> August - Project Completed
> 
> Thanks for your input.
> 
> Regards,
> Anil Ramnanan
> 
> 


Re: ASF Standard for site.xml aka sitetree.xml

Posted by Nicola Ken Barozzi <ni...@apache.org>.
Gregor J. Rothfuss wrote:
...
> i suppose you could do:
> 
>      <menu name="Maven 2.0">
>        <!-- this is the menu -->
>        <item id="intro" name="Introduction" href="index.html"/>
>        <item id="download" name="Download" href="download/">
>           <item id="1-4" name="1.4" href="1.4.html">
>           <item xml:lang="en" id="1-2" name="1.2" href="1.2.en.html">
>           <item xml:lang="de" id="1-2" name="1.2" href="1.2.de.html">
>        <item visibleinnav="false" name="Road Map" href="roadmap.html" />
>      </menu>
> 
> in essence, augment the maven format with additional attributes as
> required. 

Yes, that's it :-)

Just one thing: visibleinnav="false"... in Forrest we just delete the
@name to make it invisible...

> i suppose maven does not validate site.xml?

That's not so important, as they could do so easily if they want to be
able to render Forrest or Lenya sites. The goal is to not make a
completely different format just for the sake of it.

In any case, xml-lang is another namespace, and the id IIRC can always
be there, so probably it would still validate.

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Re: ASF Standard for site.xml aka sitetree.xml

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Nicola Ken Barozzi wrote:

>>> I would be even more supportive if Lenya and Cocoon adopt the Maven one,
>>> so that we would have a single format for all these projects.
>> You mean http://maven.apache.org/maven2/site.html ?

> And here is how we could do it instead:
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <project name="Maven">
>   <body>
>     <links>
>       <!-- these are the tabs -->
> 
>       <item id="apache" name="Apache" href="http://www.apache.org/" />
>       <item name="Maven 1.0" href="http://maven.apache.org/"/>
>     </links>
> 
>     <menu name="Maven 2.0">
>       <!-- this is the menu -->
> 
>       <item id="intro" name="Introduction" href="index.html"/>
>       <item id="download" name="Download" href="download.html"/>
>       <item name="Road Map" href="roadmap.html" />
>     </menu>
> 
>     ...
>   </body>
> </project>

that in itself would not be sufficient. i suppose you could do:

      <menu name="Maven 2.0">
        <!-- this is the menu -->
        <item id="intro" name="Introduction" href="index.html"/>
        <item id="download" name="Download" href="download/">
           <item id="1-4" name="1.4" href="1.4.html">
           <item xml:lang="en" id="1-2" name="1.2" href="1.2.en.html">
           <item xml:lang="de" id="1-2" name="1.2" href="1.2.de.html">
        <item visibleinnav="false" name="Road Map" href="roadmap.html" />
      </menu>

in essence, augment the maven format with additional attributes as 
required. i suppose maven does not validate site.xml?


Re: ASF Standard for site.xml aka sitetree.xml (was Re: Eclipse based site.xml editor)

Posted by Nicola Ken Barozzi <ni...@apache.org>.
Thorsten Scherler wrote:
> On Wed, 2005-06-29 at 08:43 +0200, Nicola Ken Barozzi wrote:
...
>>I would be even more supportive if Lenya and Cocoon adopt the Maven one,
>>so that we would have a single format for all these projects.
> 
> You mean http://maven.apache.org/maven2/site.html ?
> 
> The section "Creating a Site Descriptor" has an example. 

Yes, although we don't need to use all tags and can add others if we
wish so.

Here is the example:

<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="Maven">
  <bannerLeft>
    <name>Maven</name>
    <src>http://maven.apache.org/images/apache-maven-project.png</src>
    <href>http://maven.apache.org/</href>
  </bannerLeft>
  <bannerRight>
    <src>http://maven.apache.org/images/maven-small.gif</src>
  </bannerRight>
  <body>
    <links>
      <item name="Apache" href="http://www.apache.org/" />
      <item name="Maven 1.0" href="http://maven.apache.org/"/>
      <item name="Maven 2" href="http://maven.apache.org/maven2/"/>
    </links>

    <menu name="Maven 2.0">
      <item name="Introduction" href="index.html"/>
      <item name="Download" href="download.html"/>
      <item name="Release Notes" href="release-notes.html" />
      <item name="General Information" href="about.html"/>
      <item name="For Maven 1.0 Users" href="maven1.html"/>
      <item name="Road Map" href="roadmap.html" />
    </menu>

    ${reports}

    ...
  </body>
</project>

And here is how we could do it instead:

<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="Maven">
  <body>
    <links>
      <!-- these are the tabs -->

      <item id="apache" name="Apache" href="http://www.apache.org/" />
      <item name="Maven 1.0" href="http://maven.apache.org/"/>
      <item name="Maven 2" href="http://maven.apache.org/maven2/"/>
    </links>

    <menu name="Maven 2.0">
      <!-- this is the menu -->

      <item id="intro" name="Introduction" href="index.html"/>
      <item id="download" name="Download" href="download.html"/>
      <item name="Release Notes" href="release-notes.html" />
      <item name="General Information" href="about.html"/>
      <item name="For Maven 1.0 Users" href="maven1.html"/>
      <item name="Road Map" href="roadmap.html" />
    </menu>

    ...
  </body>
</project>

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Re: ASF Standard for site.xml aka sitetree.xml (was Re: Eclipse based site.xml editor)

Posted by Ross Gardler <rg...@apache.org>.
Thorsten Scherler wrote:
> On Wed, 2005-06-29 at 08:43 +0200, Nicola Ken Barozzi wrote:
> 
>>Ross Gardler wrote:
>>
>>>Gregor J. Rothfuss wrote:
>>>
>>>
>>>>Ross Gardler wrote:

...

>>>> The current practice is that if we need a valid site
>>>structure document then we simply create a internal plugin (like the
>>>IMSManifest plugin) for it.

...

>>I would be even more supportive if Lenya and Cocoon adopt the Maven one,
>>so that we would have a single format for all these projects.


If you want any site navigation format other than site.xml then simply 
write an Internal plugin for it. To see how see the IMSManifest plugin. 
There is no need for discussion since the plugin will be entirely optional.

Speaking personally I have no use cases that are not well supported by 
one of the two existing options. IMS Manifest is extremely powerful and 
is a standard, site.xml is extremely simple and flexible, as well as 
offering things like site: and ext:

If someone implements a new site structure plugin then we can talk about 
making it "the standard", but until then discussion is pointless, we've 
done it many times before. The conclusion was always "yeah there are 
some good reasons to change and some good reasons not to change", nobody 
has yet had a strong enough itch to build the alternative plugins. I 
encourage someone to do that, lets increase the options.

For Anils work he needs to get started so I think it is best he builds 
the site.xml editor. We can always change the XML structure it outputs 
at a later date if necessary.

Ross

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


ASF Standard for site.xml aka sitetree.xml (was Re: Eclipse based site.xml editor)

Posted by Thorsten Scherler <th...@apache.org>.
On Wed, 2005-06-29 at 08:43 +0200, Nicola Ken Barozzi wrote:
> Ross Gardler wrote:
> > Gregor J. Rothfuss wrote:
> > 
> >> Ross Gardler wrote:
> >>
> >>> Well, in that case I would avoid EMF for this instance and we need
> >>> not consider whether site.xml is to have a DTD or not. Just a tree
> >>> editor with configurable properties on each node will do just fine.
> >>
> >> the completely free-form site.xml where each node can have pretty much
> >> any element name doesn't lend itself to a schema / DTD easily. maybe
> >> it would be useful to revisit that decision and switch to a system
> >> where you have
> >>
> >> <node id="uniqueid" href="index.html" label="About"/>
> >>
> >> this would also enforce that each node has a unique id and is
> >> therefore addressable by site:uniqueid
> >>
> >> WDYT?
> > 
> > I think we discussed this to death already ;-)
> > 
> > There are good reasons for us not doing that (all related to the site:
> > protocol if I remember correctly). There have been a few proposals for a
> > DTD but none have had a strong enough use case to warrant us disabling
> > the site: protocol. The current practice is that if we need a valid site
> > structure document then we simply create a internal plugin (like the
> > IMSManifest plugin) for it.
> > 
> > Of course, no such decision is ever final. If someone wants to go
> > through the archives and make a new proposal we'll consider it.
> 
> Ok, here it comes :-)
> 
> One thing is the *internal* representation, that must be kept as now
> because of the way the site: protocol works. But this does not mean that
> we cannot decide to make the _default_ external representation be different.
> 
> Personally, I would support we change the default external
> representation to something akin to what Gregor proposes, and in
> particular the same as the Lenya one.
> 
> I would be even more supportive if Lenya and Cocoon adopt the Maven one,
> so that we would have a single format for all these projects.
> 

You mean http://maven.apache.org/maven2/site.html ?

The section "Creating a Site Descriptor" has an example. 

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


ASF Standard for site.xml aka sitetree.xml (was Re: Eclipse based site.xml editor)

Posted by Thorsten Scherler <th...@apache.org>.
On Wed, 2005-06-29 at 08:43 +0200, Nicola Ken Barozzi wrote:
> Ross Gardler wrote:
> > Gregor J. Rothfuss wrote:
> > 
> >> Ross Gardler wrote:
> >>
> >>> Well, in that case I would avoid EMF for this instance and we need
> >>> not consider whether site.xml is to have a DTD or not. Just a tree
> >>> editor with configurable properties on each node will do just fine.
> >>
> >> the completely free-form site.xml where each node can have pretty much
> >> any element name doesn't lend itself to a schema / DTD easily. maybe
> >> it would be useful to revisit that decision and switch to a system
> >> where you have
> >>
> >> <node id="uniqueid" href="index.html" label="About"/>
> >>
> >> this would also enforce that each node has a unique id and is
> >> therefore addressable by site:uniqueid
> >>
> >> WDYT?
> > 
> > I think we discussed this to death already ;-)
> > 
> > There are good reasons for us not doing that (all related to the site:
> > protocol if I remember correctly). There have been a few proposals for a
> > DTD but none have had a strong enough use case to warrant us disabling
> > the site: protocol. The current practice is that if we need a valid site
> > structure document then we simply create a internal plugin (like the
> > IMSManifest plugin) for it.
> > 
> > Of course, no such decision is ever final. If someone wants to go
> > through the archives and make a new proposal we'll consider it.
> 
> Ok, here it comes :-)
> 
> One thing is the *internal* representation, that must be kept as now
> because of the way the site: protocol works. But this does not mean that
> we cannot decide to make the _default_ external representation be different.
> 
> Personally, I would support we change the default external
> representation to something akin to what Gregor proposes, and in
> particular the same as the Lenya one.
> 
> I would be even more supportive if Lenya and Cocoon adopt the Maven one,
> so that we would have a single format for all these projects.
> 

You mean http://maven.apache.org/maven2/site.html ?

The section "Creating a Site Descriptor" has an example. 

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: Eclipse based site.xml editor (Re: Requesting Comments on Eclipse Plugin Deliverables)

Posted by Nicola Ken Barozzi <ni...@apache.org>.
Ross Gardler wrote:
> Gregor J. Rothfuss wrote:
> 
>> Ross Gardler wrote:
>>
>>> Well, in that case I would avoid EMF for this instance and we need
>>> not consider whether site.xml is to have a DTD or not. Just a tree
>>> editor with configurable properties on each node will do just fine.
>>
>> the completely free-form site.xml where each node can have pretty much
>> any element name doesn't lend itself to a schema / DTD easily. maybe
>> it would be useful to revisit that decision and switch to a system
>> where you have
>>
>> <node id="uniqueid" href="index.html" label="About"/>
>>
>> this would also enforce that each node has a unique id and is
>> therefore addressable by site:uniqueid
>>
>> WDYT?
> 
> I think we discussed this to death already ;-)
> 
> There are good reasons for us not doing that (all related to the site:
> protocol if I remember correctly). There have been a few proposals for a
> DTD but none have had a strong enough use case to warrant us disabling
> the site: protocol. The current practice is that if we need a valid site
> structure document then we simply create a internal plugin (like the
> IMSManifest plugin) for it.
> 
> Of course, no such decision is ever final. If someone wants to go
> through the archives and make a new proposal we'll consider it.

Ok, here it comes :-)

One thing is the *internal* representation, that must be kept as now
because of the way the site: protocol works. But this does not mean that
we cannot decide to make the _default_ external representation be different.

Personally, I would support we change the default external
representation to something akin to what Gregor proposes, and in
particular the same as the Lenya one.

I would be even more supportive if Lenya and Cocoon adopt the Maven one,
so that we would have a single format for all these projects.

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Re: Eclipse based site.xml editor (Re: Requesting Comments on Eclipse Plugin Deliverables)

Posted by Ross Gardler <rg...@apache.org>.
Gregor J. Rothfuss wrote:
> Ross Gardler wrote:
> 
>> Well, in that case I would avoid EMF for this instance and we need not 
>> consider whether site.xml is to have a DTD or not. Just a tree editor 
>> with configurable properties on each node will do just fine.
> 
> 
> the completely free-form site.xml where each node can have pretty much 
> any element name doesn't lend itself to a schema / DTD easily. maybe it 
> would be useful to revisit that decision and switch to a system where 
> you have
> 
> <node id="uniqueid" href="index.html" label="About"/>
> 
> this would also enforce that each node has a unique id and is therefore 
> addressable by site:uniqueid
> 
> WDYT?

I think we discussed this to death already ;-)

There are good reasons for us not doing that (all related to the site: 
protocol if I remember correctly). There have been a few proposals for a 
DTD but none have had a strong enough use case to warrant us disabling 
the site: protocol. The current practice is that if we need a valid site 
structure document then we simply create a internal plugin (like the 
IMSManifest plugin) for it.

Of course, no such decision is ever final. If someone wants to go 
through the archives and make a new proposal we'll consider it.

Ross

Re: Eclipse based site.xml editor (Re: Requesting Comments on Eclipse Plugin Deliverables)

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Ross Gardler wrote:

> Well, in that case I would avoid EMF for this instance and we need not 
> consider whether site.xml is to have a DTD or not. Just a tree editor 
> with configurable properties on each node will do just fine.

the completely free-form site.xml where each node can have pretty much 
any element name doesn't lend itself to a schema / DTD easily. maybe it 
would be useful to revisit that decision and switch to a system where 
you have

<node id="uniqueid" href="index.html" label="About"/>

this would also enforce that each node has a unique id and is therefore 
addressable by site:uniqueid

WDYT?


Re: Eclipse based site.xml editor (Re: Requesting Comments on Eclipse Plugin Deliverables)

Posted by Ross Gardler <rg...@apache.org>.
Anil Ramnanan wrote:
> Ross Gardler wrote:
> 
>>
>> Here we have easy drag and drop between the file navigator and we can 
>> quickly switch the page being edited by clicking on the site editor. 
>> It will also allow us to quickly see a preview of the site structure 
>> when it is edited. However, we are limiting the space available for 
>> the file navigator and site editor.
>>
>>
> I prefer this method. Even if you needed more space like the second 
> version, you can always move the views around witin Eclipse to make more 
> space.

Well, in that case I would avoid EMF for this instance and we need not 
consider whether site.xml is to have a DTD or not. Just a tree editor 
with configurable properties on each node will do just fine.

Ross



Re: Eclipse based site.xml editor (Re: Requesting Comments on Eclipse Plugin Deliverables)

Posted by Anil Ramnanan <li...@peppersauce.org>.
Ross Gardler wrote:

>
> Here we have easy drag and drop between the file navigator and we can 
> quickly switch the page being edited by clicking on the site editor. 
> It will also allow us to quickly see a preview of the site structure 
> when it is edited. However, we are limiting the space available for 
> the file navigator and site editor.
>
>
I prefer this method. Even if you needed more space like the second 
version, you can always move the views around witin Eclipse to make more 
space.

Anil.

Eclipse based site.xml editor (Re: Requesting Comments on Eclipse Plugin Deliverables)

Posted by Ross Gardler <rg...@apache.org>.
Anil Ramnanan wrote:
> Ross Gardler wrote:
> 
>>
>> +1 - Anil this can be removed without any impact on the completeness of
>> your project, if we get time, and the discussion has been settled then
>> we will address this.
>>
> I will remove it. The first thing I would like to work on is the Site 
> editor. I had intended to do this using the Eclipse Modelling Framework 
> if there was and XML schema for the sitemap available. Otherwise I will 
> have to do a normal tree editor. Any comments ?

The sitemap and site.xml are two different things. The sitemap describes 
how Forrest should process requests - see

You will not be building an editor for this since the Lepido project 
already has one (I checked this morning their code is now in CVS, but it 
has not been publically announced yet).

Site.xml describes the structure the site, i.e. what files go where. 
There is no DTD for this file, we have discussed having one on occasion, 
but at present there isn't one. Since there is no DTD you have two choices:

a) start a discussion about whether we want one or not

b) go with a basic tree widget and ensure it creates valid XML

However, before doing that we really need to decide what the editor will 
look like as this will have an impact on the way you implement it. I see 
there being two options:

+------------+----------------------------------------------+
|            |                                              +
|            |                                              +
| File       |                                              +
| Navigator  |        Page Editor                           +
|            |                                              +
|            |                                              +
|            |                                              +
+------------+----------------------------------------------+
|            |                                              +
|            |                                              +
| Site       |                                              +
| Editor     |        Properties Editor                     +
|            |                                              +
|            |                                              +
|            |                                              +
+------------+----------------------------------------------+

Here we have easy drag and drop between the file navigator and we can 
quickly switch the page being edited by clicking on the site editor. It 
will also allow us to quickly see a preview of the site structure when 
it is edited. However, we are limiting the space available for the file 
navigator and site editor.


+------------+----------------------------------------------+
|            |                                              +
|            |                                              +
| File       |                                              +
| Navigator  |        Page * site Editor                    +
|            |                                              +
|            |                                              +
|            |                                              +
|            +----------------------------------------------+
|            |                                              +
|            |                                              +
|            |                                              +
|            |        Properties Editor                     +
|            |                                              +
|            |                                              +
|            |                                              +
+------------+----------------------------------------------+

Here the page/site editor is a tabbed editor, one tab providing access 
to the site structure, the other providing access to the page contents.
This set-up will increase the number of clicks needed to find/add a page 
in the site editor but it will allow more control over what the site 
editor looks like.

Note for technical reasons with Eclipse it is not possible to have an 
editor that will appear in both the views section (i.e. the left or 
bottom of the application) and the editor section (i.e. the top right in 
the above diagrams).

Personally I prefer the first method. However, the EMF will not create 
the view we need to do this. In Burrokeet I have tweaked the code to 
allow this to happen. However, I would not recomend doing that, it has 
caused all sorts of problems for us. In other words, if you go with the 
first route then I would recomend building a custom viewer.

Do others have any opinion on the best layout?

Ross

Re: Requesting Comments on Eclipse Plugin Deliverables

Posted by Anil Ramnanan <li...@peppersauce.org>.
Ross Gardler wrote:

>
> +1 - Anil this can be removed without any impact on the completeness of
> your project, if we get time, and the discussion has been settled then
> we will address this.
>
I will remove it. The first thing I would like to work on is the Site 
editor. I had intended to do this using the Eclipse Modelling Framework 
if there was and XML schema for the sitemap available. Otherwise I will 
have to do a normal tree editor. Any comments ?

Anil.


Re: Requesting Comments on Eclipse Plugin Deliverables

Posted by Ross Gardler <rg...@apache.org>.
David Crossley wrote:
> Thorsten Scherler wrote:
> 
>>Anil Ramnanan wrote:

...

> I suggest that "skinconf" gets removed from the list of deliverables.

+1 - Anil this can be removed without any impact on the completeness of
your project, if we get time, and the discussion has been settled then
we will address this.

> Locationmap Editor: Is it too early for that?

No it's not too early. The locationmap reuses loads of stuff from the
sitemap so although the lm is new, the format of the map file has been
in use for many years.

The Lepido project at Eclipse is providing things like sitemap editors 
and the like. We should be able to leverage that in creating our 
Locationmap Editor. I'll provide more info when the time is right.

Ross


Re: Requesting Comments on Eclipse Plugin Deliverables

Posted by Tim Williams <wi...@gmail.com>.
On 6/27/05, David Crossley <cr...@apache.org> wrote:
> Thorsten Scherler wrote:
> > Anil Ramnanan wrote:
> > >
> > > July 6 - Editors of Site, Tabs, Locationmap and Skinconf
> >
> > Hmm, actually I think the skinconf need discussion before you make a
> > wizard. IMO we need to use the proposed one from Nicola. I will prepare
> > a new thread for this.
> 
> Yes, my alarm bells started ringing too. There are a number of
> threads in the archives about re-designing skinconf.
> There is also a Jira Issue linking to some of those:
> http://issues.apache.org/jira/browse/FOR-144
> 
> It is a huge topic that needs a lot of work at the core of Forrest.
> 
> I suggest that "skinconf" gets removed from the list of deliverables.
> 
> Locationmap Editor: Is it too early for that?

I guess if it's a generic locationmap editor then it's not too early. 
I personally think with the refactoring of the sitemaps and making a
distinction between processing and location resolving that there will
utlimately be both an app locationmap and a project locationmap but
the format itself shouldn't change, and thus it should be safe to do a
generic locationmap editor at this point.  My opinion anyway...

--tim

Re: Requesting Comments on Eclipse Plugin Deliverables

Posted by David Crossley <cr...@apache.org>.
Thorsten Scherler wrote:
> Anil Ramnanan wrote:
> > 
> > July 6 - Editors of Site, Tabs, Locationmap and Skinconf
> 
> Hmm, actually I think the skinconf need discussion before you make a
> wizard. IMO we need to use the proposed one from Nicola. I will prepare
> a new thread for this.

Yes, my alarm bells started ringing too. There are a number of
threads in the archives about re-designing skinconf.
There is also a Jira Issue linking to some of those:
http://issues.apache.org/jira/browse/FOR-144

It is a huge topic that needs a lot of work at the core of Forrest.

I suggest that "skinconf" gets removed from the list of deliverables.

Locationmap Editor: Is it too early for that?

-David

Re: Requesting Comments on Eclipse Plugin Deliverables

Posted by David Crossley <cr...@apache.org>.
Ross Gardler wrote:
> 
> [mentor hat on] Anil, this is a perfect example of why we must conduct 
> all design discussion on list rather than via private email. I cannot 
> possibly remember everything that is going on with Forrest. With just a 
> few words Thortsen could have saved us lots of wasted effort. I am going 
> to try and do the majority of my "mentoring" onlist too so that others 
> can pull me up when I am wrong about that too (it will happen, but you 
> probably won't hear me admit it ;-)

Thank &deity; that this came out early. Today i sent my other reply
about the importance of online discussion, before reading this one.

Please ensure that this happens with the Cocoon project too.
No-one can afford to have you and Bertrand and Reinhard burnt out.

-David

Re: Requesting Comments on Eclipse Plugin Deliverables

Posted by Ross Gardler <rg...@apache.org>.
Thorsten Scherler wrote:
> Just some quick comments:
> 
> On Mon, 2005-06-27 at 10:08 -0400, Anil Ramnanan wrote:
> 
>>Here are the current deliverables that I intend to produce for the 
>>Summer of code project and the order in which I intend to do them. I was 
>>wondering if there were any comments from the community on them. The 
>>entire project proposal with details on each of the deliverables was 
>>posted in Ross's welcome message earlier.
>>
>>July 6 - Editors of Site, Tabs, Locationmap and Skinconf
> 
> 
> Hmm, actually I think the skinconf need discussion before you make a
> wizard. IMO we need to use the proposed one from Nicola. I will prepare
> a new thread for this.

Good point.

[mentor hat on] Anil, this is a perfect example of why we must conduct 
all design discussion on list rather than via private email. I cannot 
possibly remember everything that is going on with Forrest. With just a 
few words Thortsen could have saved us lots of wasted effort. I am going 
to try and do the majority of my "mentoring" onlist too so that others 
can pull me up when I am wrong about that too (it will happen, but you 
probably won't hear me admit it ;-)

Ross

Re: Requesting Comments on Eclipse Plugin Deliverables

Posted by Thorsten Scherler <th...@apache.org>.
On Mon, 2005-06-27 at 11:22 -0400, Anil Ramnanan wrote:
> Thorsten Scherler wrote:
> 
> >
> >Do you want to create a wizard for views? Maybe another for contracts? I
> >would be more then happy to give you a hand on that.
> >
> >  
> >
> That is my intention. I had originally planned a wizard for the skins 
> but Ross suggested that I focus on views instead.
> 

Yeah, that is right, views are our future. ;-)

BTW I am planing to create a cform based wizard for views. Maybe we can
reuse your wizard for that, or better said it would be nice to have a
common base for both. ;-)

> Regards,
> Anil Ramnanan

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Re: Requesting Comments on Eclipse Plugin Deliverables

Posted by Ross Gardler <rg...@apache.org>.
Anil Ramnanan wrote:
> Thorsten Scherler wrote:
> 
>>
>> Do you want to create a wizard for views? Maybe another for contracts? I
>> would be more then happy to give you a hand on that.
>>
>>  
>>
> That is my intention. I had originally planned a wizard for the skins 
> but Ross suggested that I focus on views instead.

Yes, I figured we would get more community support that way ;-) Thorsten 
is actively developing views right now.

However, we have to be careful about how much of this Anil can do in 
just two months. We will discuss these wizards in more detail when the 
time comes, but I was thinking of something like a check list of 
contracts and the creation of a *.fv file from that. In this case the 
contracts would be placed in their default location. I doubt we can come 
up with a full view editor in the time available.

Of course, if someone (Thorsten) has such a strong itch that they can 
help with coding, who knows what is possible.

Ross

Re: Requesting Comments on Eclipse Plugin Deliverables

Posted by Anil Ramnanan <li...@peppersauce.org>.
Thorsten Scherler wrote:

>
>Do you want to create a wizard for views? Maybe another for contracts? I
>would be more then happy to give you a hand on that.
>
>  
>
That is my intention. I had originally planned a wizard for the skins 
but Ross suggested that I focus on views instead.

Regards,
Anil Ramnanan

Re: Requesting Comments on Eclipse Plugin Deliverables

Posted by Thorsten Scherler <th...@apache.org>.
Just some quick comments:

On Mon, 2005-06-27 at 10:08 -0400, Anil Ramnanan wrote:
> Here are the current deliverables that I intend to produce for the 
> Summer of code project and the order in which I intend to do them. I was 
> wondering if there were any comments from the community on them. The 
> entire project proposal with details on each of the deliverables was 
> posted in Ross's welcome message earlier.
> 
> July 6 - Editors of Site, Tabs, Locationmap and Skinconf

Hmm, actually I think the skinconf need discussion before you make a
wizard. IMO we need to use the proposed one from Nicola. I will prepare
a new thread for this.

> July 20 - Forrest.properties Editor and Add WAR file builder
> August 3 - Wizards for New Site, Add Forrest Plugin and Add Views.

Do you want to create a wizard for views? Maybe another for contracts? I
would be more then happy to give you a hand on that.

> August 17 - Support of Multiple Web Apps
> August 27 - Repository Browser and Include from Repository Wizard
> August - Project Completed
> 
> Thanks for your input.
> 

That sounds sweet. Please be aware that *all* committers are more then
happy to help you with your question. Ross is your mentor but we all
will try to help you and Ross to make this project a success. ;-)

> Regards,
> Anil Ramnanan

Welcome Anil and to good cooperation. :)

salu2
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Re: Requesting Comments on Eclipse Plugin Deliverables

Posted by Anil Ramnanan <li...@peppersauce.org>.
Ross Gardler wrote:

>
> Anil has sent me a revised schedule based on the feedback in this 
> thread, he has tried to prioritise things for the community. Anil 
> could you post it here to see if everyone agrees. We want to ensure 
> that we put initial effort into what is important for the community.
>
Here is the revised schedule that I have created. I can always change it 
if you think a particular feature should be done sooner.

07/09/05 - Site Editor
07/15/05 - Tabs Editor
07/21/05 - Wizard to Add View
07/27/05 - Locationmap Editor   
07/30/05 - Forrest.properties Editor     
08/02/05 - Option to build WAR file    
08/08/05 - Wizard to Create New Site  
08/11/05 - Wizard to Add Plugin             
08/14/05 -  Support or Multiple Web Apps
08/26/05 -  Repository Browser  
08/29/05 - Wizard to Include fro Remote repository


Anil


Re: Requesting Comments on Eclipse Plugin Deliverables

Posted by Ross Gardler <rg...@apache.org>.
David Crossley wrote:
> Woops, i had this prepared days ago but forgot to send.
> 
> Anil Ramnanan wrote:
> 
>>Here are the current deliverables that I intend to produce for the 
>>Summer of code project and the order in which I intend to do them. I was 
>>wondering if there were any comments from the community on them.
> 
> 
> Good idea to call for comments early.
> 
> My first reaction is that it is very ambitous.

It is a considerable workload, but actually looks more than it really is.

The infrastructure for the wizards and editors are already in place 
either within Eclipse or within Lepido (which just released its initial 
code to CVS).

It's also worth noting that it is my decision, as mentor, as to whether 
Anil is deserving of the Google award at the end of the SoC period. I 
will, of course, be asking the PMC if we believe this to be the case. In 
other words, Anil need not necessarily implement everything, although 
clearly that is the objective.

Anil has sent me a revised schedule based on the feedback in this 
thread, he has tried to prioritise things for the community. Anil could 
you post it here to see if everyone agrees. We want to ensure that we 
put initial effort into what is important for the community.

>>July 20 - Forrest.properties Editor and Add WAR file builder
>>August 3 - Wizards for New Site, Add Forrest Plugin and Add Views.
>>August 17 - Support of Multiple Web Apps
> 
> 
> Don't know about this. Is that an issue that needs to get solved
> at the core of forrest? I think we might have a Jira Issue already.
> However, maybe you mean something else.

No, because it is not possible to safely start/stop Jetty from an Ant 
script in Eclipse the Burrokeet project has created the servletEngine 
plugin (we donated it here now). This plugin can be easily adapted to 
either:

a) start multiple instances of Jetty on different port numbers
b) add war files to an existing Jetty instance.

I'm not sure which is the best approach I think this will need 
discussing nearer the time.

>>August 27 - Repository Browser and Include from Repository Wizard
>>August - Project Completed
> 
> 
> These next comments are probably just implementation details
> but they seem to get forgotten on every project because they
> are not seen as milestones.
> 
> Documentation: In this case probably doesn't need much user
> docs - should be self-explanatory.

+1

It is important to understand that this does not mean highly detailed 
docs. But it does mean docs that will enable people to work with the 
products and build more detailed docs in the future.

I really like the way Eclipse handles this. They have a concept similar 
to our status.xml file and then use this to create a list of changes, 
much like we do with out projectInfo plugin. However, rather than 
entries that look like SVN commit messages they write basic 
documentation for new features and add notes on how it changes old 
behaviour.

For an example see: 
http://download.eclipse.org/eclipse/downloads/drops/R-3.1-200506271435/eclipse-news-part2.html

Note that many entries include screen shots.

Other users then use this content to create the basis of user documentation.

I would love to see Forrest adopting this same process.

> It would be good to see that known lacks and assumptions
> are registered as Jira issues. Not expecting everything.

+1

Ross

Re: Requesting Comments on Eclipse Plugin Deliverables

Posted by David Crossley <cr...@apache.org>.
Woops, i had this prepared days ago but forgot to send.

Anil Ramnanan wrote:
> Here are the current deliverables that I intend to produce for the 
> Summer of code project and the order in which I intend to do them. I was 
> wondering if there were any comments from the community on them.

Good idea to call for comments early.

My first reaction is that it is very ambitous.

> The 
> entire project proposal with details on each of the deliverables was 
> posted in Ross's welcome message earlier.
> 
> July 6 - Editors of Site, Tabs, Locationmap and Skinconf

See other comments about skinconf.

> July 20 - Forrest.properties Editor and Add WAR file builder
> August 3 - Wizards for New Site, Add Forrest Plugin and Add Views.
> August 17 - Support of Multiple Web Apps

Don't know about this. Is that an issue that needs to get solved
at the core of forrest? I think we might have a Jira Issue already.
However, maybe you mean something else.

> August 27 - Repository Browser and Include from Repository Wizard
> August - Project Completed

These next comments are probably just implementation details
but they seem to get forgotten on every project because they
are not seen as milestones.

Documentation: In this case probably doesn't need much user
docs - should be self-explanatory.

It would be good to see that known lacks and assumptions
are registered as Jira issues. Not expecting everything.

Anyway, 

Requesting Comments on Eclipse Plugin Deliverables

Posted by Anil Ramnanan <li...@peppersauce.org>.
Here are the current deliverables that I intend to produce for the 
Summer of code project and the order in which I intend to do them. I was 
wondering if there were any comments from the community on them. The 
entire project proposal with details on each of the deliverables was 
posted in Ross's welcome message earlier.

July 6 - Editors of Site, Tabs, Locationmap and Skinconf
July 20 - Forrest.properties Editor and Add WAR file builder
August 3 - Wizards for New Site, Add Forrest Plugin and Add Views.
August 17 - Support of Multiple Web Apps
August 27 - Repository Browser and Include from Repository Wizard
August - Project Completed

Thanks for your input.

Regards,
Anil Ramnanan

Re: Welcome Anil Ramnanan - Google Summer of Code Awardee

Posted by Ross Gardler <rg...@apache.org>.
Anil Ramnanan wrote:
> Ross Gardler wrote:
> 
>>
>> So, I would like to welcome Anil Ramnanan to the Apache Forrest 
>> community.
>>
> Thank you for the welcome. I look forward to working with Forrest and 
> the Forrest community. Just be warned that I will be asking many 
> questions. :)

Well, it is my role as mentor to ensure all your questions get answered. 
However, you are in the lucky position of being in a very welcoming 
community, I am sure you will find others will have things to say too. 
In fact, I hope that when you have started to get to grips with Forrest 
you will find a little time to help us answer other peoples questions.

I'd ask that you ensure your questions are aimed at the right list. If 
they are regarding development (i.e. "should I implement it like this or 
that") then the question should come here (the dev list). On the other 
hand, if it is a question about how to use Forrest (i.e. "How do I make 
this appear there") then please ask on the user list.

Ross

Re: Welcome Anil Ramnanan - Google Summer of Code Awardee

Posted by David Crossley <cr...@apache.org>.
Anil Ramnanan wrote:
> Ross Gardler wrote:
> 
> >So, I would like to welcome Anil Ramnanan to the Apache Forrest 
> >community.
> >
> Thank you for the welcome. I look forward to working with Forrest and 
> the Forrest community. Just be warned that I will be asking many 
> questions. :)

That is exactly what we want. All developers should read documentation
and ask questions on the mailing lists [*].

One power of opensource is in the act of people asking well-prepared
questions. The ensuing discussion helps everybody to understand,
even those that thought they knew it all.

One key outcome of every discussion is that we must fill our
documentation lack that resulted in this need for a question.
Even if we just grab some words into a <pre> tag in an html doc,
or a url to the online discussion, or a Jira issue to remind us.
That is is an ideal, we don't do it often enough. Actually our
mail archives are a gold-mine for anyone wanting to enhance the
core documentation.

[*] Too many ill-prepared questions will waste the community time
and cause confusion in the mail archives. Please strive to be
efficient.

However, don't be frightened to ask questions. Even some totally
misguided statement will lead to enhancement.

We try to discuss everything on the relevant dev or user list.
We discourage off-list, personal discussions for various reasons:
- denies other people the chance to listen, learn, contribute;
- puts undue load on that single person: community shares load;
- leads to incomplete solutions because no group input;
- causes a vacuum in the mail archives.

Of course personal contact can be appropriate. We need to build
bonds in many ways.

-David

Re: Welcome Anil Ramnanan - Google Summer of Code Awardee

Posted by Anil Ramnanan <li...@peppersauce.org>.
Ross Gardler wrote:

>
> So, I would like to welcome Anil Ramnanan to the Apache Forrest 
> community.
>
Thank you for the welcome. I look forward to working with Forrest and 
the Forrest community. Just be warned that I will be asking many 
questions. :)

Regards,
Anil Ramnanan