Hi Mangesh, Mangesh Moghe schrieb am 17.11.2010 um 15:17 (+0530): > Finally able to solve the problem. Yes, ant 1.6.5 can not work with > JDK 1.6 as far as javascript ant task is concerned. This is because > ant 1.6.5 supports <script> task in a Apache BSF supported language > only(refer apache ant 1.6.5 manual) whereas later versions i.e. from > ant 1.7, <script> task can be executed either with Apache BSF or JSR > 223 manager that is included in JDK 6 or higher (refer apache ant > 1.7.0 manual) and this can be controlled by "manager" attribute in > <script> task. The JSR 223 scripting manager is indicated by "javax". > For details refer " http://ant.apache.org/manual/Tasks/script.html". > > One more reason that ant 1.6.5 can not work with JDK 6 is since this > version of ant needs BSF engine and in turn needs Mozilla rhino > component of version 1.5R3 only. This is the only version of rhino > that contains " org.mozilla.javascript.Context.getDebuggableEngine()" > API needed by BSF engine. Later versions of rhino don't have this API > and ant <script> task will fail. JDK 6 contains rhino 1.6R2 which > doesn't contain this API and hence ant 1.6.5 <script> task will fail > if you use BSF engine + JDK6. > > Thanks for the help.
You're welcome. Thanks for reporting back. Best, -- Michael Ludwig --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org