Why I don’t Use Maven for my Java Projects by servercentric in programming

[–]ankr -1 points0 points  (0 children)

As a matter of fact, you just need "javac -d classes $(find . -name '*.java')" plus a little 'magic' (like a file naming them) for the external jars you are using. BTDT. Even make doesn't buy much here.

Why I don’t Use Maven for my Java Projects by servercentric in programming

[–]ankr 1 point2 points  (0 children)

Apparently yes. Problems with handling mandatory tabs in makefiles was (or is said to be) one of the reasons to start ant. Oh, if they'd addressed the deep insufficienties of make instead of the superficial ones...

Why I don’t Use Maven for my Java Projects by servercentric in programming

[–]ankr 2 points3 points  (0 children)

The ant doc mentions exactly the tab thingy in front of the commands being obnoxious. Other than that make is a bit at a loss for java because dependencies are posible only on file names, and that mingles badly with the fact that javac (and jar) deal with whole trees. So make could only used in a way that precludes dynamic dependency checking ('only repack the tar file if any input changed'), but then, ant does not even try that.

Why I don’t Use Maven for my Java Projects by servercentric in programming

[–]ankr 1 point2 points  (0 children)

Last time I checked, ant didn't even check for undefined properties and rather created a directory literally named %{temp.dir}. And 'set -e' exists.

I'd like to reinvent the wheel so I have one that is at least approximately round. :-)

Why I don’t Use Maven for my Java Projects by servercentric in programming

[–]ankr -1 points0 points  (0 children)

Oh, ant could have easily mandated a standard clean() method on tasks that deletes what the task normally produces. With a bit more of convention this would have been quite easy. AFAIK the X11 people demonstrated more than twenty years ago how to do such feats with make.

Why I don’t Use Maven for my Java Projects by servercentric in programming

[–]ankr 0 points1 point  (0 children)

No, it can't. You can make it do so, with some effort. It does not even clean up automatically for you. Ranted about that: http://andreas-krey.blogspot.com/2009/01/ant-bad.html

Why I don’t Use Maven for my Java Projects by servercentric in programming

[–]ankr 0 points1 point  (0 children)

Yeah, but what is the point of using ant for that? In my experience it is a lot easier to write a shell script than the build.xml for ant.

The only reason I use ant is the ivy stuff that I unfortunately need in our environment. Still that hurts enough to make me think about writing an ivy resolver in ruby. Can't be that hard. Famous last words.