You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Oscar Picasso <os...@yahoo.com> on 2004/03/08 16:04:45 UTC

Packages naming best practises

Hi,

I am writing a Cocoon application.

I would like to avoid renaming my packages in case there are useful for the
cocoon community.

Let's say I have the following classes:

// Sitemap components
- com.mycompany.cocoon.generation.CacheableVelocityGenerator
- com.mycompany.cocoon.action.DefaultPathAction

// An avalon component (but not a sitemap one)
- com.mycompany.cocoon.components.DefaultPathProvider

1- Is it recommended or discouraged to use 'org.apache.cocoon..." instead of
'com.mycompany.cocoon...' if I make the code publicly available?

2- In case the 'org.apache.cocoon' naming is recommended and supposing my
classes are aimed at easing the creation of web sites.

Is it better to name them like this:
- org.apache.cocoon.generation.CacheableVelocityGenerator
- org.apache.cocoon.action.DefaultPathAction

or something like that:
- org.apache.cocoon.sitebuilder.generation.CacheableVelocityGenerator
- org.apache.cocoon.sitebuilder.action.DefaultPathAction

Thanks.



__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster
http://search.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Packages naming best practises

Posted by Oscar Picasso <os...@yahoo.com>.
Hi,

I have no problem to donate the code to Cocoon. 

Just want to know if the code needs to get some kind of approval before using
the 'org.apache.cocoon' name.

Oscar

--- Geoff Howard <co...@leverageweb.com> wrote:
> Oscar Picasso wrote:
> 
> > Hi,
> > 
> > I am writing a Cocoon application.
> > 
> > I would like to avoid renaming my packages in case there are useful for the
> > cocoon community.
> > 
> > Let's say I have the following classes:
> > 
> > // Sitemap components
> > - com.mycompany.cocoon.generation.CacheableVelocityGenerator
> > - com.mycompany.cocoon.action.DefaultPathAction
> > 
> > // An avalon component (but not a sitemap one)
> > - com.mycompany.cocoon.components.DefaultPathProvider
> > 
> > 1- Is it recommended or discouraged to use 'org.apache.cocoon..." instead
> of
> > 'com.mycompany.cocoon...' if I make the code publicly available?
> > 
> > 2- In case the 'org.apache.cocoon' naming is recommended and supposing my
> > classes are aimed at easing the creation of web sites.
> > 
> > Is it better to name them like this:
> > - org.apache.cocoon.generation.CacheableVelocityGenerator
> > - org.apache.cocoon.action.DefaultPathAction
> > 
> > or something like that:
> > - org.apache.cocoon.sitebuilder.generation.CacheableVelocityGenerator
> > - org.apache.cocoon.sitebuilder.action.DefaultPathAction
> 
> This boils down to a licensing question.  As I understand it, you cannot 
> use org.apache.cocoon package name unless your code is donated to Cocoon.
> 
> Geoff
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you�re looking for faster
http://search.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: Packages naming best practises

Posted by Geoff Howard <co...@leverageweb.com>.
Oscar Picasso wrote:

> Hi,
> 
> I am writing a Cocoon application.
> 
> I would like to avoid renaming my packages in case there are useful for the
> cocoon community.
> 
> Let's say I have the following classes:
> 
> // Sitemap components
> - com.mycompany.cocoon.generation.CacheableVelocityGenerator
> - com.mycompany.cocoon.action.DefaultPathAction
> 
> // An avalon component (but not a sitemap one)
> - com.mycompany.cocoon.components.DefaultPathProvider
> 
> 1- Is it recommended or discouraged to use 'org.apache.cocoon..." instead of
> 'com.mycompany.cocoon...' if I make the code publicly available?
> 
> 2- In case the 'org.apache.cocoon' naming is recommended and supposing my
> classes are aimed at easing the creation of web sites.
> 
> Is it better to name them like this:
> - org.apache.cocoon.generation.CacheableVelocityGenerator
> - org.apache.cocoon.action.DefaultPathAction
> 
> or something like that:
> - org.apache.cocoon.sitebuilder.generation.CacheableVelocityGenerator
> - org.apache.cocoon.sitebuilder.action.DefaultPathAction

This boils down to a licensing question.  As I understand it, you cannot 
use org.apache.cocoon package name unless your code is donated to Cocoon.

Geoff


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org