Avoid overwriting of build.xml by Codename One

独自空忆成欢 提交于 2019-12-23 01:41:41

问题


The answer to the question Multiple Codename One CSS works fine (I prefer multiple CSSes than an unmanageable single CSS of thousands of lines...), but it relies on the fact that Codename One will not overwrite my manually edited build.xml.

How can I avoid at all that Codename One will overwrite that file? I set it as read-only, but I don't know if it's enough.

Moreover, is there any good reason to allow Codename One to overwrite that file?


回答1:


This file is overwritten when we have new features that should be expressed there e.g. new build targets etc.

Before overwriting we prompt the user. So this would happen when you open Codename One Settings and save. You can always say "No". I suggest backing up the file and doing relatively simple changes.

One future change we intend to make is stripping the file of most of it's content similarly to the build.xml/build-impl.xml relation in netbeans. This will allow us to update the impl XML file seamlessly and allow you to customize the XML file.



来源:https://stackoverflow.com/questions/53505171/avoid-overwriting-of-build-xml-by-codename-one

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