+1 for Saminda’s idea

 

Instead of having src at the root node for the ‘core’ module core/src seems to be a better idea.

 

Thanks,

- Rajesh Koilpillai

 


From: Saminda Abeyruwan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 14, 2006 1:00 PM
To: [email protected]; [EMAIL PROTECTED]
Subject: Re: Mediators exposed as samples!

 

 

On 2/13/06, Eran Chinthaka <[EMAIL PROTECTED]> wrote:


>
>This is way Paul has suggested the following project structure.
>
>- src {all core classes and build in mediators}
>- samples
>            +- src
>- mediators
>            +- src
>- extension
>             +- src
>- {other stuff, maven.xml,...}
>
>
>
Are you gonna have multiple source folder and have another source folder
on top. I think its the best time to go for multiproject strucuture.
I know Synapse is a small project, compared to Axis2, but having more
than one src folder in a single module project is highly discouraged, at
least in maven world.
If you are using maven, you can not specify more than one src folder. So
you will have to hack maven to include the other src folders.
So I suggest Synapse devs to move in to maven multiproject.

my 2 cents..

-- Chinthaka


So instead of the above structure, can we look for a multimodule project structure as follows,

+-modules
                +-core
                          +-src {xml processing and build in mediators - spi}
                          +-test
                          +-test-resources
                +-mediators
                          +-src { api}
                          +-test
                          +-test-resources
                +-samples
                          +-src
                          +-scripts 
                +-extensions
                          +-src
                +-tools
                          +-src {if needed}
+-xdocs
+-bin
+-{maven.xml...stuff}

Above is the standard way of setting maven multimodules. With the above project structure, we can easily separate and build, synapse-core-XX.jar, synapse-mediators-XX.jar etc and distributions. 

Saminda


 

 

 

Reply via email to