ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Noack <>
Subject Re: Classpath for taskdef'd tasks
Date Sun, 10 Jun 2012 18:55:39 GMT
Maybe you will take a look at

a little older, but works fine.
(classloaderreport is broken with ant 1.8.x)

Am 10.06.2012 11:54, schrieb Peter West:
> I'm looking at a complex build that builds a jar file with a collection of classes, then
runs a series of tests on the distribution that will include that jar.  The tests affectively
mirror what users of the distribution will be doing.
> When I do not have the generated jar in the startup classpath for the build, I can generate
the jar file, define the tasks in terms of the jar file's classes, and begin to execute particular
taskdef'd tasks. All good, and the classes are discovered.
> However, within the executing task, other classes from the jar are required. The attempt
to load the first of these classes fails. It seems that within the executing task, even though
the classpath for the execution of that task requires the new jar file, that class environment
is lost. Hence the requirement for the initial classpath entry. Or so I believe.
> Is this correct? What is happening within the executing task that resets the classpath
> Is there a way around this, such that I can define the classpath within the build? One
possibility is to fork ant via a java task for the testing phase, but I am looking for other
> Is antlib relevant to this problem?
> Peter West
> "Are not all these who are speaking Galileans?"
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message