ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Williams <m...@bigfoot.com>
Subject Re: Trying to re-use taskdef's classpath with the task
Date Mon, 21 Oct 2002 11:54:39 GMT
  >>> On 18 Oct 2002 00:42:44 +1000,
  >>> "Mike" == Mike Williams <mdub@bigfoot.com> wrote:

  Mike> Is there some way my [Ant task] determine it's own classpath?

Just to answer my own question, this seems to do the trick:

    AntClassLoader classLoader = 
        (AntClassLoader) getClass().getClassLoader();
    String taskPath = classLoader.getClasspath();

-- 
cheers, Mike

"And so, may evil beware, and may good dress warmly and eat lots 
 of fresh vegetables."
        -- The Tick 



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message