[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Conditional disabling of unused Ant targets



Hello,

I'm working on a few packages related to JBoss. One problem is that the
build files often contain targets and taskdefs which depend on lots of
external JAR files, but which are really not needed to build the package.
The problem is that Ant tries to load those external classes on each run,
even if they are not needed for the target I want to call (such
as "clean").

Is there a way to conditionally disable this class loading (by testing on
some property value, for example), without cutting them out of the build
file entirely?

Thanks,

Marcus




Reply to: