基于 JSON 的构建工具?
我正在寻找一个使用基于 JSON 的配置文件的构建工具(例如 ant、maven、make 等)?
存在这样的工具吗?
I'm looking for a build tool (such as ant, maven, make, etc.) that uses JSON-based configuration files?
Does such a tool exist?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Nokia/Qt 刚刚发布了他们的“QBS”构建系统,该系统基于 JSON,实际上是一个旨在方便 IDE 采用的构建引擎(采用 JSON 的主要原因)。
介绍 qbs
而不是 Makefile 的“预制作”生成器/vcprojs/等。 (如 CMake 和 QMake 等),qbs 实际上是构建引擎。
Nokia/Qt just announced their "QBS" build system, which is JSON-based, and is actually a build engine intended for easy adoption by IDEs (a principal reason for adopting JSON).
Introducing qbs
Rather than a "pre-make" generator of Makefiles/vcprojs/etc. (like CMake and QMake, etc.), qbs is intended to actually be the build engine.
Google 出现了 Gaudi,尽管它仍处于早期阶段。
Google turned up Gaudi though it is still in the early phases.
我认为您真正需要的是一个不会强迫您在 XML 中配置所有内容的构建工具?
在这种情况下,您最好的选择是 Gradle。它没有像 ANT 或 Maven,但确实具有从两者中吸取教训的优点。
我建议您小心偏离标准构建工具……这会让其他尝试构建您的代码的人的生活变得更加艰难。 Gradle 通过提供 构建包装器 解决了这个问题。
I think what you're really looking for is a build tool that doesn't force you to configure everything in XML?
In that case your best bet is Gradle. It doesn't have the same sort of adoption as ANT or Maven, but does have the advantage of learning lessons from both.
I would advise you to beware of straying from standard build tooling... It makes life tougher for others attempting to build your code. This is something Gradle solved by providing a build wrapper.