I figured out why the web app I was trying to build before broken when I used the exported build script. Turns out that you need to run a setup script to get your environment “just right” before running the build.
Continue reading “Well, at least I’ve answered one question”
Tag: ant
Ant 1.6.2 doesn’t work on Java 1.4.1
Little warning for anyone else who stumbles across this problem: the stylesheet used for <junitreport> in Ant 1.6.2 does not work with Xalan 2.2. Unfortunately, this is the version that’s bundled inside the rt.jar in Java 1.4.1.
Ant 1.6.2 is out
Yep, Ant 1.6.2 has been released. And the forkmode option for JUnit is there!. I’m really happy.
Controlling your log4j settings
Nick over at the System Mobile Web Log was having trouble with Log4J and his unit tests. Seems that he was getting the log4j.properties file from XDoclet, instead of the one he wanted.
Mixing and leads to confusion…
Update: It’s not a bug, it’s a feature! Seriously. 😉 It turns out that the <ant> task effectively sets the basedir property as a user-property, which means that it can’t be changed. User-properties are propogated through regardless of the inheritAll flag. The doco could have been clearer, but that’s life.
The easy work around: don’t use the dir attribute to locate the file, actually specify it in full (see the bug report for the example).
I lodged a bug report with Apache Ant today; first one in a long while. It turns out the the <ant> and <subant> tasks aren’t entirely compatible.
I love the task in Ant 1.6…
What can I say? I love the <import> task. 🙂 If the Jolt Awards were accepting nominations at the moment, I’d be nominating that one bit of Ant 1.6 all by itself. 🙂
A Weblogic “Kitchen Sink” episode
I encountered a lovely piece of Classpath Hell thanks to Weblogic (7.0) today. Or rather a colleague of mine did; I just helped him figure it out.