This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Issues with an acquired build.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Issues with an acquired build.xml" Watch "Issues with an acquired build.xml" New topic
Author

Issues with an acquired build.xml

Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

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
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

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.
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

Thanks Tim.

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...

Sigh.
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

Just an update; I re-read the docs and discovered I needed Ant 1.5. I updated to 1.7, corrected a few environment variables, et voila. Thanks Tim.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issues with an acquired build.xml