ant-dev mailing list archives

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

I have a custom task defined thus:

<taskdef resource="task.properties" 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?

Thanks
Jem

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message