开发者

Can Eclipse build specific packages in a project?

I'm curious if there's a way to build specific packages in eclipse. For instance, if I have a project with a src folder containing

c开发者_如何学Pythonom.example.a
com.example.b
com.example.c

Is there a way to build/compile just com.example.a and com.example.c? I know there's a way to do it in ant, but hopefully there's an eclipse solution too.


Yes.

  • File
  • Export...
  • Java
  • Jar File

There you can select exactly what to build in Eclipse.

For exampe check only com.example.a and com.example.c.


You can exclude com.example.b from the build path.

For different builds/packages/assemblies (jar files?) you should use ant. That's one reason why it is integrated in eclipse.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜