I'm trying to play with a few betas I came across recently, which require me to know more about ANT than how to run it.
I've installed this download on Windows and Solaris both. I was able to build on Windows, albeit with lots of warnings and minor failures. On Solaris, however, I'm getting the error 'Unexpected element "condition"'
Elsewhere I learned condition tags have to be nested in target tags -- fine. In this build.xml, the condition tag that excepted clearly is not. I don't know what to do about that, other than comment it out and hope for the best.
But...how did I build on Windows then? Are there different ANT differents or interpreters that might allow an unnested condition?
Make visible what, without you, might perhaps never have been seen. - Robert Bresson
Ant's been around quite a while and seen quite a few changes. So I'd do a quick version check.
It's possible (though probably not in good taste) to create an external task named "condition". Maybe someone did and it wasn't installed on the failing system. Since literally "condition" is a test, not an action, it really shouldn't be a task-level tag. Although I have vague memories of doing something similar long ago.
I've created Ant scripts that when run on Windows created JAR files, when run on Solaris created Solaris packages and when run on Linux created RPM install packages. I have full confidence in its portability.
Customer surveys are for companies who didn't pay proper attention to begin with.
All I wanted to do was run Fortress, a language under development at Sun. To do that, I gotta install Cygwin or build a Solaris box, so I go Cygwin. Then I need subversion to check it out, then I need Ant to build it. And of course every tool along the way has some obscure need or complaint to track down...