Retest... BSF 2.3.0 from http://cvs.apache.org/dist/jakarta/bsf/v2.3.0rc1/bin/bsf-bin-2.3.0.zip Rhino 1.5R4 from ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino15R4.zip Ant 1.6.5 Java 1.5.0-b64 bsf.jar + js.jar in %USERPROFILE%\.ant\lib --> same problem
change rhino to 1.6R2 ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_6R2.zip --> same problem A quick search gave http://mail-archives.apache.org/mod_mbox/jakarta-bsf-user/200306.mbox/[EMAIL PROTECTED] Victor J. Orlikowski; Fri, 13 Jun 2003 06:44:14 GMT "The error stems from the fact that the debug interface for Javascript currently in place in BSF is based on Rhino version 1.5R4. The error you are reporting suggests that you are using an earlier version of Rhino, which may not have debugging support, or may have a version incompatible with the current version. I suggest using Rhino 1.5R4, or awaiting a new BSF release - I intend to remove the debugging support that is currently in place, due to the limited functionality it provides." http://java2.5341.com/msg/81816.html gave a hint "Try with rhino15R3 it has the method getDebuggableEngine()" change rhino to 1.5R3 ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino15R3.zip --> works!! BSF 2.3.0 + Rhino 1.5R3. Jan >-----Ursprüngliche Nachricht----- >Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED] >Gesendet: Montag, 17. Oktober 2005 12:47 >An: Ant Users List >Betreff: RE: make properites of data in file > >Hi, > >I have already tried to install that from lib-dependency in Ant manual. > >I get: > >BUILD FAILED >java.lang.NoSuchMethodError: >org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozill >a/javascript/debug/DebuggableEngine; > >Seems to be a common error for a lot of javascript users ( >check with a little google) but without a solution. > >cheers, > >//mikael > >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: den 17 oktober 2005 12:28 >To: [email protected] >Subject: AW: make properites of data in file > > >Dont know - have installed that long time ago and the jars >havent any version info inside. >But just install the versions described in the lib-dependency >in the Ant manual. > >Jan > >>-----Ursprüngliche Nachricht----- >>Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED] >>Gesendet: Montag, 17. Oktober 2005 12:17 >>An: Ant Users List >>Betreff: RE: make properites of data in file >> >>Hi, >> >>which version of rhino(js) and bsf do you use? >> >>cheers, >> >>//mikael >> >>-----Original Message----- >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >>Sent: den 17 oktober 2005 11:23 >>To: [email protected] >>Subject: AW: make properites of data in file >> >> >>The easiest way is defining the Ant properties and creating the >>product.attributes. >>But you can parse that file and assign properties ... using your own >>task. >> >>Quick hack (without any error handling). It parses the first line to >>get the meta data and parses the second line for the data. After that >>it stores the values. >> >> >>Jan >> >><project> >> >><scriptdef name="getProductInfos" language="javascript"> >> <attribute name="prefix"/> >> <attribute name="file"/> >> <![CDATA[ >> // imports >> importClass(Packages.org.apache.tools.ant.util.FileUtils); >> >> // constants >> splitChar = ":"; >> >> // arguments >> prefix = attributes.get("prefix"); >> file = attributes.get("file"); >> >> // read the file >> rdr = new java.io.FileReader(file); >> content = FileUtils.readFully(rdr); >> >> // split into metadata and content data >> lines = content.split( >project.getProperty("line.separator") ); >> header = lines[0]; >> body = lines[1]; >> >> // get the metadata >> metaData = header.split(splitChar); >> >> // get the content data and save as Ant properties >> contentData = body.split(splitChar); >> for (i=0; i<contentData.length; i++) { >> project.setNewProperty(prefix + "." + metaData[i], >>contentData[i]); >> } >> ]]> >></scriptdef> >> >><getProductInfos prefix="prod" file="product.attributes"/> >><echoproperties prefix="prod"/> >> >></project> >> >> >> >> >>>-----Ursprüngliche Nachricht----- >>>Von: Mikael Petterson (KI/EAB) [mailto:[EMAIL PROTECTED] >>>Gesendet: Montag, 17. Oktober 2005 10:38 >>>An: [email protected] >>>Betreff: make properites of data in file >>> >>>Hi, >>> >>>I have the following properties in my build.xml: >>> >>><property name="target" value="xxx"/> >>><property name="productnumber" value="yyy"/> <property >>>name="productrevision" value="zzz"/> >>> >>>In a file called product.attribues I have the following information: >>> >>>TARGET:PRODUCT_NUMBER:PRODUCT_REVISION >>>jvm:CXC1327714/22:R1A01 >>> >>>Is it possible to assign ant properties with the values in my files? >>> >>>cheers, >>> >>>//mikael >>> >>> >>>--------------------------------------------------------------------- >>>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] >> >> >>--------------------------------------------------------------------- >>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] > > >--------------------------------------------------------------------- >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]
