Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D6FDA6104 for ; Thu, 21 Jul 2011 11:07:52 +0000 (UTC) Received: (qmail 44756 invoked by uid 500); 21 Jul 2011 11:07:51 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 44557 invoked by uid 500); 21 Jul 2011 11:07:47 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 44549 invoked by uid 99); 21 Jul 2011 11:07:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2011 11:07:46 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of peter.kitt.reilly@gmail.com designates 209.85.213.45 as permitted sender) Received: from [209.85.213.45] (HELO mail-yw0-f45.google.com) (209.85.213.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2011 11:07:39 +0000 Received: by ywb3 with SMTP id 3so666711ywb.4 for ; Thu, 21 Jul 2011 04:07:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=29tXojqLaJp0LtfP2OFZIamGuB0LB6VZ7Bcl71++bDw=; b=BMsunrKmK/5Aj9U7+xzPzO+oBNL4TphLlifxwz/bc0v+pJXwDbY7QGFBocslED8EqR ZZgWvnRU3NY7dSrg2c3VU5xTgVtkoT3ShVuonDD7ictKBpkE7r0va0Ys8QRk3KKHod+e htVnT7lt0WI/LEUwMFx60OtCXKTktR/XRqoO8= MIME-Version: 1.0 Received: by 10.150.179.18 with SMTP id b18mr522635ybf.130.1311246438911; Thu, 21 Jul 2011 04:07:18 -0700 (PDT) Received: by 10.151.14.4 with HTTP; Thu, 21 Jul 2011 04:07:18 -0700 (PDT) In-Reply-To: References: Date: Thu, 21 Jul 2011 12:07:18 +0100 Message-ID: Subject: Re: Beginner question: Ant+ Eclipse + script-task: BSF's & Rhino E4X issue From: Peter Reilly To: Ant Users List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The problem you are running into is that a version of rhino is in java itself (since jdk 6) and this version is in the root classloader and so using a different version is very hard (I cannot remember how to do it). The good news is that with jdk 7, the embedded rhino has been updated to a newer version see: http://bugs.sun.com/view_bug.do?bug_id=3D6980447 This means that using jdk 7 and ant 1.8 the following build.xml works: without messing around with bsf. since ant will in this case use javax.scripting Peter On Thu, Jul 21, 2011 at 10:02 AM, Bart van der Schoor wrote: > Hi, > > I'm new to Ant and advanced usage of Eclipse, and I got terribly lost whi= le > trying to solve the following. Worst of all i have no idea where to turn = to > solve this so i hope somebody here can help more of point me in the right > direction (so many projects). > > I have an Ant script-task using javascript where I want to parse XML usin= g > E4X. =C2=A0If I check the Ant project page I see it uses BSF which in tur= n uses > Rhino. But the E4X doesn't work: it seems like the Rhino it's using doesn= 't > have it supported. But when i browse Rhino's release I see it in 1.6, whi= ch > dates to 2004 (http://www.mozilla.org/rhino/rhino16R1.html). > > The i tried to find out which version of Rhino is being used by the Ant > that's in my Eclipse, and tthen it all goes foggy. I tried googling and > browsing the different projects, but it's so confusing. I also tried > browsing release notes, but i have no idea which project to look in. > > Can anyone give me some pointers on this? > > I'm using Ant 1.8.2 in FDT, which is a standalone version of an ActionScr= ipt > plugin for Eclipse. It's FDT 4.5, which runs on Eclipse 3.5.0. It origina= lly > shipped with Ant 1.7.1, but when solving an issue with the FTP task the > support guys send me an updated Ant 1.8.2 and the additional jar's > (commons-net and jakarta-oro). My workstation is an Windows XP machine, a= nd > is using Sun jdk1.6.0_21. > > Grtz, > > Bart > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org