自动构建与手动构建 [英] Build Automatically versus Build Manually

查看:23
本文介绍了自动构建与手动构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您在缓慢的服务器上工作时,自动构建"是一个真正的痛苦,因为有时当您更改一小部分代码(甚至只是查看它)时,整个项目似乎都在重建 - 这可能需要几分钟和同时破坏数据库.

"Build Automatically" is a real pain when you are working on a slow server because sometimes when you change one small item of code (or even just look at it) the whole project seems to rebuild - which can take many minutes and breaks the database in the mean time.

如果我禁用自动构建"并手动构建单个元素,我需要做多少?

If I disable "Build Automatically" and build individual elements manually how much do I need to do?

例如,如果我修改自定义控件,是否需要重建父"Xpage?

For example if I modify a custom control do I need to rebuild the "parent" Xpage?

推荐答案

我的经验是,如果您关闭自动构建",您需要在修改任何自定义控件、XPage 或嵌入的 Java 代码后的某个时刻重新构建在您的应用程序中.这并不意味着在每个更改之后,而是在您可以测试更改之前.

My experience is that if you turn off "Build Automatically" you need to rebuild at some point after you have modified any Custom Controls, XPages, or Java code embedded in your application. This does not mean after each one, but clearly before you can test the changes.

修改主题、css 或 JS 脚本库(客户端或服务器)后,您似乎不需要重新构建.当然,对传统设计元素(表单、视图、代理、页面等)的更改不需要重新构建.

You do not seem to need to rebuild after modifying a theme, css, or JS script library (client or server). And, of course, changes to traditional design elements (forms, views, agents, pages, etc.) do not require a rebuild.

最好的办法是在本地(或在本地服务器上)工作和测试,并根据需要更新服务器.我在关闭自动构建的情况下这样做.

Best idea is to work and test locally (or on a local server) and update the server as needed. I do that with Build Automatically turned off.

/纽布斯

这篇关于自动构建与手动构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆