Sacrificial RabbitCode.  Art.  Perversion.  Madness.

Tuesday, January 15. 2008

Cruise Control and Ant: OMG, XML DSLs... WTF?


Trackbacks

No Trackbacks

Comments
Display comments as (Linear | Threaded)

Ant is indeed a failure, as the author (James Duncan Davidson) admits. He has moved on to using rake, which is (as you surmise) an extension of a commonly-used general-purpose language. Ruby in this case.

I think the problem is that there's no way to extend the Java syntax to allow there to be a 'jake'. And Ant is probably at least better than make.
#1 Greg Pfeil (Link) on 2008-01-16 06:56 (Reply)
I'm using callouts to java code to do the more complex things. ie

[java classname="org.benow.web.ResourceUtility"]
[classpath refid="compile.classpath"/]
[/java]


I am using ant for compilation, but only after the fact. Eclipse does everything during development. I also tend to do more things at runtime, rather than relying on building caches during compile time... ie lists of what files are where, what mappings are available, etc. This makes for a slower initial startup, but also means that there is nothing to get out of sync... new code changes are immediately seen, and the build scripts don't have to worry about doing the generation. This reduces the complexity of ant.

I see a similar problem with XSL. It's nice to have a language that manipulates XML well, but logical constructs (if then case variables, etc) are too verbose and difficult to work with. With XSL you can't even change a variable once it's been set... wtf. I still use it, tho, as it works well with XML.
#2 Andrew Taylor (Link) on 2008-01-20 15:20 (Reply)

Add Comment

E-Mail addresses will not be displayed and will only be used for E-Mail notifications

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA