Would GIT submodules be a good idea?
doob at me.com
Wed Aug 17 12:16:58 PDT 2011
On 2011-08-17 18:58, torhu wrote:
> Okay, I think I get the picture now. Sounds like a good plan, then.
> Would DWT become a single repository with all platform implementations
> and snippets in it, that has the base Java library as a submodule? Or
> would it be dwt-win, dwt-linux, dwt-snippets, etc.? The former sounds
> simpler, but the latter could make it possible to get rid of the extra
> directory levels that DWT2 uses currently.
I haven't decided this yet and it's this I'm trying to figure out, what
will be the best. This is also why I'm asking here what people think.
I'm not sure what you mean with "extra directory levels that DWT2 uses
currently". Do you mean that org.eclipse.swt.gtk.linux.x86 contains:
This will most likely not change. When all platforms were in their own
repositories (DWT1) we just had "dwt" as the root directory. The current
package layout, in DWT2, is what the original SWT sources use and it was
decided that it was best to follow the original sources as closely as
possible to ease porting future versions of SWT.
In DWT1 most classes containing "SWT" was renamed to "DWT" but this just
caused more problems. I guess it would be easier to rename the root
package to DWT then renaming all classes containing "SWT". But it would
be an additional step when porting future versions. I do agree that this
deep package level is annoying.
More information about the Digitalmars-d-dwt