|
Welcome back old friend
[
kevin
]
In a moment of weakness at the start of a project I decided to use Maven for build management (hey all the cool kids were doing it and I felt really square). Now Maven is great as long as your happy to play in it's sandbox with the toys it provides. Beware if you step outside of the sandbox though. Nanny will come and slap your botty hard. You see nanny manges all the dependencies between "plugins" so if you want to use the new version of aspectj to weave some sexy aspects through your code and a couple of third party libs and that's not the way nanny does it, well put it this way, your bot bot is going to be sore. So I looked at adding custom targets to my My favorite thing about Maven is its jar loading. Add a dependency to your project and down comes the jar. It's added to your compile classpath and into your war lib dir, no mess, no fuss. I wanted this in Ant. I grabbed a copy of the latest and greatest source code and built a nice fresh version. 1.6 has some nice new features the one I was really interested in was I grabbed the dependency section out of my Maven
Then I created an XSLT (dependency-targets.xslt) that created the ant targets to make the project class path and fetch each of the jars I didn't have it in my local jar repository. All that was left was add the
45 minutes and it was all good. Now my friend Ant and I can play together and nannys spankings are a distant and best forgotten memory. TrackBackThanks for that interesting post. It makes great reading! Do you need a payday loans? --payday loans, November 30, 2004 11:11 AM
Thanks for that insightful comment! It makes interesting reading, especially when I need a payday advance . --payday advance , November 30, 2004 02:58 PM
Nanny --Jeff Anderson, August 3, 2005 08:18 PM
It was not that hard , ah? --Helen , December 17, 2005 05:21 PM
Post a comment
|