ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Mawson <>
Subject Access to custom task's classpath?
Date Mon, 13 Oct 2008 09:09:05 GMT

I have a custom task defined thus:

<taskdef resource="" classpathref="task.class.path"/>

The classpathref contains the jar which includes both my Task and a file 
resource. When I try to obtain the resource in the Task at runtime I'm 
unable to find it.

When I print out the java.class.path property in the task, it does not 
include the jar my Task is in!

The very task I'm running is not in the classpath. How is this the case? 
And more to the point, how can I obtain a reference to the task's jar 
during the task's runtime?


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

View raw message