Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this questionWhile similiar questions have been asked, this one's focused on which is best/easiest to teach.
I'm giving a weekly tutorial at my university focusing on data structures and algorithms. Fromn time to time I introduce tools which may prove helpful in future projects like JUnit, Mercurial, Eclipse etc.. I plan to show them some kind of build tool but I'm not sure which one to choose. I by myself have very little knowledge about build tools, except a little experience in using make. It's more the concept of a build tool I want to show them, not a special too开发者_开发问答l per se. Which would be the most easiest/future proof/whatever tool to show them?
I've read a little bit about Gradle, which looks nice, but so far I think Ant could be a good choice (it's a Java course I'm giving).
Ant is more likely to be used in their future employment. You may consider Maven, if you want to go through the problem of complex (and/or remote) dependency in projects
I will recommend Ant.
Just learn the basics with Ant. You can also show them an Eclipse project you're using and right-click on it and click export. Then write Ant buildfiles and export the Ant file Eclipse are using internally. Quite nice and can work for many as a good starting point.
You can also mention that Ant together with Ivy can handle dependencies quite similar to Maven.
And it's quite easy to write your own Ant tasks in Java.
You could give a brief introductory talk on make just to get the concept across of what a build tool is for and what problem it solves. I'd then focus most of the talk on Ant because it's a lot more common in Java development. Showing two tools will give you the opportunity to compare and contrast them. You could end the talk with a list of other build tools that are in common use, and maybe briefly discuss the strengths of each one.
精彩评论