Working With A Codename One Project In Git/SVN version control

谁说我不能喝 提交于 2019-12-11 11:46:29

问题


We are trying to work on a Codename One project using git version control.

When I pull the project from git, the files (modified and newly added theme res files) are updated but they don't appear in the theme.

My changes aren't reflected when I try to run the project, how to refresh the project?

I tried to build/clean, refresh the cn1lib too but made no progress.


回答1:


Thankyou shai, i uncheck the xml team mode but that doesnt make any difference.. you gave the link (https://www.codenameone.com/team.html), what is this for?? sorry i didn't quite get it. And the solution isnt that clear. what do you mean by checking the res directory... Let me clear my problem here.. when my team member adds a form (eg main form) in the gui builder, it get pulled from git in my project. there r 2 files main.ui and main file but when i open my res file or gui builder, the main form is not there.




回答2:


This is actually triggered by a feature specifically designed for working with a team in version controlled environments. You can get this to work by unchecking File->XML Team Mode in the designer but that would "work around" this feature: http://www.codenameone.com/blog/teamwork-and-other-things.html

The solution would be to checkin the res directory, when it exists opening the res file refers to that instead of to the theme file. This allows your team to edit that directory together and avoid conflicts that will arise when sharing the binary res file.



来源:https://stackoverflow.com/questions/34101797/working-with-a-codename-one-project-in-git-svn-version-control

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!