开发者

Can Eclipse build specific packages in a project?

开发者 https://www.devze.com 2023-04-04 11:23 出处:网络
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

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

精彩评论

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