NetXMS Support Forum

English Support => General Support => Topic started by: Yarda on November 09, 2012, 06:11:27 PM

Title: Duplication of code in the repository / how to work as developer
Post by: Yarda on November 09, 2012, 06:11:27 PM
Hello geeks,

I am still completely new to NetXMS... Tho' I have the Eclipse/RAP environment up and running, all works as I imported existing projects from trunk/webui/webapp into workspace. It is fine. And now trying to prototype a bit...

I noticed a duplication of source code in the repository.

For example content of:

./webui/webapp/ObjectView/src/org/netxms/ui/eclipse/objectview/objecttabs/helpers/

is duplicated with

./src/java/netxms-eclipse/ObjectView/src/org/netxms/ui/eclipse/objectview/objecttabs/helpers/

Why is that duplication and what is the developement workflow I should follow?

I added a brand new "tab" to src/java/netxms-eclipse/ObjectView/src/org/netxms/ui/eclipse/objectview/objecttabs. It compiles from the command line, however, I cannot see that file in my eclipse nor I can debug it. As I said above, I am confused about the code duplication and how should I work as a potential developer when extending the existing code...

Thank you for your time and advices.

Yarda.
Title: Re: Duplication of code in the repository / how to work as developer
Post by: Victor Kirhenshtein on November 09, 2012, 11:42:03 PM
Hello!

Eclipse RAP and Eclipse RCP are not 100% compatible on source code level. Although most of the RCP code can be compiled for RAP without changes, there are always some code that has to be changes in RAP version. It is theoretically possible to move code which is different in RCP and RAP to plugin fragments and keep single core codebase. But I decide that it is much easier to have separate source trees for RCP and RAP version of the console, and merge them as necessary. My usual development pattern is to make changes in RCP version and then merge these changes into RAP version (usually with svn merge). I also have two different Eclipse instances for RCP and RAP development. And we are still using Eclipse Indigo for RCP version.

Best regards,
Victor

Title: Re: Duplication of code in the repository / how to work as developer
Post by: Yarda on November 13, 2012, 12:27:14 PM
Thank you Victor. The development setup is a bit clumsy (I am saying that without knowing details, just the first impression), however, all works just fine and its sufficient for my evaluation task. Regards, Yarda.