"But Maven uses XML too" - since Maven 3 you can use Groovy, JRuby & Scala too.
Java Build Systems - a sad state of affairs
11–20 of 45 posts
Re: Java Build Systems - a sad state of affairs
#12I mean that the glass is half full. I wouldn't call a full dependency resolution system like maven's "a sad state of affairs."
Re: Java Build Systems - a sad state of affairs
#13"But Maven uses XML too" - since Maven 3 you can use Groovy, JRuby & Scala too.
I do wonder if Maven 3's flexibility will hurt it or help it in the long run. Yes pom.xml is XML, but at least there is only one dialect. If team A likes XML and team B likes Groovy, development manager C will have a fun time getting them to work together on project D.
Re: Java Build Systems - a sad state of affairs
#14So, the Java build systems suck? You should see the .NET ones - those make me cry. I mean that the glass is half full. I wouldn't call a full dependency resolution system like maven's "a sad state of affairs."
Re: Java Build Systems - a sad state of affairs
#15The article makes no mention of the solutions implemented in the newer languages on the JVM: - Groovy has Gant ( http://gant.codehaus.org/ ) - Clojure has Lancet ( http://github.com/stuarthalloway/lancet ) Both of these avoid the "XML tag soup" problem.
Re: Java Build Systems - a sad state of affairs
#16Re: Java Build Systems - a sad state of affairs
#17If you did start putting clever code into Ant files, they'd get so huge they'd be unmanageable. It's really really easy to just write your own Ant plugins in Java.
Then your build files are very straightforward and readable, and just look like a set of simple file operations and method calls.
Then Ant becomes really powerful - you can even write some plugins that take a web server out of service using telnet to Cisco LocalDirector, SCP a deployment build across and all sorts of other clever stuff.
Plugin example:
public class MyTask extends Task {
private String param1;
private String param2;
public void execute() throws BuildException {
// do something
}
}
Then in the XML: Re: Java Build Systems - a sad state of affairs
#18I still use Makefiles, and I like it!
Re: Java Build Systems - a sad state of affairs
#19Re: Java Build Systems - a sad state of affairs
#20I still use Makefiles, and I like it!
It can be a bit difficult, but I have written readable Makefiles that ran both on windows and linux, building latex files.