Hi ALL :)
This is a question about best layout for a project.
My application is targetted for several platforms.
Because application needs in invokations of native platform APIs I created project for each targetted platform
and a project of type 'CodenameOne Library' that contains business logic.
The library is shared by platform dependent projects.
Dependencies between projects can be described by following diagram:
A ---+
+---> C
B ---+
Where A - project for J2ME, B - project for Android, C - shared 'CodenameOne Library' with business logic.
This schema works but it has one big disadvantage. The library C is in flux and changed very often.
And after any change in the library I must do following steps:
- Rebuild the library.
- Copy built library from (C)/dist/*.cn1lib to (A)/lib.
- In NetBeans IDE rigth click on project A and select menu item 'Refresh Libs'.
- Copy built library from (C)/dist/*.cn1lib to (B)/lib
- In NetBeans IDE rigth click on project B and select menu item 'Refresh Libs'.
Obviously this routine is tedious and error prone.
So the question is -- Is there any way to automate this process? Or should I use an another approach?
TIA
Dmitry