java构建编译区别,构建与编译(Java)

Thinking that the answer to this is pretty obvious but here it goes:

When I am working on a small project for school (in java) I compile it.

On my coop we are using ant to build our project.

I think that compiling is a subset of building. Is this correct? What is the difference between building and compiling?

解决方案

The "Build" is a process that covers all the steps required to create a "deliverable" of your software. In the Java world, this typically includes:

Generating sources (sometimes).

Compiling sources.

Compiling test sources.

Executing tests (unit tests, integration tests, etc).

Packaging (into jar, war, ejb-jar, ear).

Running health checks (static analyzers like Checkstyle, Findbugs, PMD, test coverage, etc).

Generating reports.

So as you can see, compiling is only a (small) part of the build (and the best practice is to fully automate all the steps with tools like Maven or Ant and to run the build continuously which is known as Continuous Integration).

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值