--- Ben Gill <[EMAIL PROTECTED]> wrote: > That would certainly fix my problem nicely... (I > would not even have to > remove the jar file ant-apache-bsf.jar from my lib > dir as, for some > reason, it does not contain BSFException which is > the class it cannot > find!)
I think ant-apache-bsf.jar should be moved out from $ANT_HOME\lib to your custom location, where bsf.jar and js.jar are located say /home/user/thirdpartyjars. Next you redifine scriptdef in this way (pseudo code) <taskdef name="scriptdef" classname="..."> <classpath> <fileset dir="/home/user/thirdpartyjars"> <include name="apache-ant-bsf.jar"> <include name="bsf.jar"> <include name="js.jar"> </fileset> <classpath> </taskdef> AFAIK each taskdef is loaded with different classloader and if apache-ant-bsf.jar were left in $ANT_HOME\lib it would be loaded with Ant classloader and would clash with taskdef's classloader. > > But it seems there is a bug in the taskdef class > whereby it does not > load the classpath properly. > > I'll just copy them to ANT_HOME/lib and be done with > it! > Nice solution > Thanks > > > > -----Original Message----- > From: Ivan Ivanov > [mailto:[EMAIL PROTECTED] > Sent: 18 October 2004 11:26 > To: Ant Users List > Subject: RE: Appending to ANT classpath > > See this: > http://ant.apache.org/faq.html#delegating-classloader > > You can predefine <scriptdef> task to load bgs.jar > and > js.jar from your custom location but thus requires > copying ant-apache-bsf.jar out of ant distro to your > custom location. > > Sorry, cannot think of something better. > > --- Ben Gill <[EMAIL PROTECTED]> wrote: > > > The jar files are bsf.jar (apache BSF) and js.jar > > (rhino) ... > > > > The trouble is, the scriptdef tag does not allow > you > > to specify a > > classpath... > > > > > > > _______________________________ > Do you Yahoo!? > Declare Yourself - Register online to vote today! > http://vote.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]