← Back to team overview

dhis2-devs team mailing list archive

Re: Change to source code projects / modules

 

2010/4/21 Lars Helge Øverland <larshelge@xxxxxxxxx>

>
> Hi,
> *
> *
> *I have made a change to the source code projects / modules. Those of you
> who have the source code in an IDE (eclipse, netbeans) should remove the *
> *
> *
> *1) dhis-useradminandsecurity*
> *2) dhis-service-user-hibernate*
> *3) dhis-service-jdbc*
> *4) dhis-service-jdbc-test*
> *5) dhis-options*
>
> *projects before updating the source code! (or just remove all)*
>
> If you don't do this you will get problems ala "Directory could not be
> deleted, not empty" from bazaar. If you get those the best solution is to
> delete the whole working copy and check out again.
>
>
> I have removed 1) and 2) and merged them into the dhis-service-core. This
> had to be done because we need the user-functionality in trunk (Viet's work
> on audit logging).
>
> I have also reamed and moved 3) and 4) (dhis-service-jdbc ->
> dhis-support-jdbc and dhis-service-jdbc-test -> dhis-support-jdbc-test) to
> dhis-support directory.
>
> I have renamed and moved 5) (dhis-options -> dhis-service-options) to
> dhis-services.
>
> All this to improve the dependency structure in the system. Now we have a
> layered structure with 5 levels:
>
> - Portal
> - Web modules
> - Service modules
> - Core module
> - Support modules
>
> See this image:
>
>
> http://docs.google.com/drawings/pub?id=1UyUUmGdngQeyWc5PY0F9JpvTRyzvUAY0AQ2gWP-mewY&w=960&h=720
>
> This implies that modules cannot have dependencies to modules at a higher
> level, only at the same or a lower level. This will reduce the chances of
> getting cyclic dependency issues in the future. All unit tests now run
> successfully. Will include this in the technical docs. I am sorry for the
> inconvenience this might mean for merging development branches.
>
>
> cheers,
>
> Lars
>
>
>
I have done a few more changes:

- dhis-i18n/dhis-i18n-static -> dhis-services/dhis-service-i18n
- dhis-i18n/dhis-i18n-db -> dhis-support/dhis-support-i18n
- dhis-i18n/dhis-18n-upgrader merged into dhis-service-i18n

Updated diagram:

https://docs.google.com/drawings/edit?id=1UyUUmGdngQeyWc5PY0F9JpvTRyzvUAY0AQ2gWP-mewY&hl=en_GB

The picture is now complete, modules are either web-, service- or
support-modules in separate layers.

Again please remove these modules from eclipse before updating source code
(or just remove all). You might have to remove un-versioned files/folders
from those directories too. Then do a mvn eclipse:eclipse and a new import
to get in the renamed ones.

I promise I won't do more radical changes now.

Lars

References