Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一堆 java 项目,每个项目都有一个 build.xml 文件。
现在我通常做的是构建项目 A,然后使用另一个 java 项目中的不同 build-xml 文件部署项目 A。
有没有一种很好的方法来指定我想要运行的目标和文件,以及我想要运行它们的特定顺序?
谢谢!
如果您使用的是 Eclipse,您可以将 Builders 添加到您的项目 A 中,这将启动构建和部署。转到Properties -> Builders项目,您可以创建New...将使用您指定的 ant 构建文件调用目标的 ant 构建器。然后在Builders视图中,您可以指定顺序以确保在部署之前调用构建。
Properties -> Builders
New...
Builders