On Thu, 26 Feb 2004 00:50:10 +0000, Steve Loughran <[EMAIL PROTECTED]> wrote:


I have this custom task, which is loaded with a classloader that can declare not only the files containing the task, but implementing classes:


     <path id="smartfrog.tasks.classpath">
       <path refid="smartfrog.classpath"/>
       <pathelement location="${smartfrog.tasks.jar}"/>
     </path>
     <typedef
       resource="org/smartfrog/tools/ant/tasks.properties"
       classpathref="smartfrog.tasks.classpath"
       />


Only the task itself spawns a new JVM. How do I pass the classpath of the task itself down to the jvm? I cant use java.class.path as that is the classpath of ant, not the custom task. Do we explicitly or implicitly save the path used to declare a task?



If it is loaded through an AntClassLoader, you can ask that loader for it's effective classpath.


Conor

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to